https://github.com/wikimedia/operations-puppet
Raw File
Tip revision: 038cc7b0d17ad03eaa178fb787a7941247e43900 authored by Ottomata on 12 September 2017, 16:22:46 UTC
role::kafka::jumbo::broker - Don't include standard if already included
Tip revision: 038cc7b
localrun
#!/bin/bash
usage ()
{
  echo "${0} -- running puppet locally"
  echo ''
  echo '        ./localrun [lint] [-h] -- runs puppet against local host'
  echo ''
  exit
}

PUPPET_BINARY=/usr/bin/puppet
#test -x $PUPPET_BINARY || { echo "$PUPPET_BINARY not installed";
#        if [ "$1" = "-h" ]; then exit 0;
#        else usage; exit 1; fi; }

if [ "$1" == "-h" ]
  then
    usage
    exit 0
fi

if [ "$1" == "lint" ]
  then
  "$PWD""/linter"
fi

puppet apply --show_diff --hiera_config=../modules/puppetmaster/files/production.hiera.yaml --modulepath=../modules $@ ../manifests/site.pp 2>&1 | grep  -v 'exported resources'
back to top