Revision 6404e320def556ce2231381be62c4d43f97f56bc authored by Brandon Black on 07 June 2017, 21:28:19 UTC, committed by Brandon Black on 07 June 2017, 21:28:19 UTC
Bug: T164608
Change-Id: Ic03feb53326be861f4938520bfecd89f50ce8767
1 parent a4ed78d
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