Revision 1d88dd2fd725e4b4602cb49cd2b2931e7b3daac8 authored by andrewbogott on 07 June 2017, 17:07:22 UTC, committed by andrewbogott on 07 June 2017, 17:07:40 UTC
Change-Id: I2d85218aa366bb21a50f3ad9cea6378dffaaec23
1 parent 5cfe915
Raw File
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 --modulepath=../modules $@ ../manifests/site.pp 2>&1 | grep  -v 'exported resources'
back to top