Skip to content
Snippets Groups Projects
Commit 2de4a3ab authored by Filip Strömbäck's avatar Filip Strömbäck
Browse files

Updated the validate script (for things with yum in them) and added an apply...

Updated the validate script (for things with yum in them) and added an apply script for quicker testing.
parent ef2c0c86
No related branches found
No related tags found
No related merge requests found
apply.sh 0 → 100755
#!/bin/bash
modulepath="$(pwd)/.."
set -x
puppet parser validate --strict_variables --modulepath="$modulepath" manifests/
for file in $*
do
class=$(basename $file .pp)
# Sudo is needed for modules that do something with yum for example.
sudo /opt/puppetlabs/bin/puppet apply --test --modulepath="$modulepath" -e "include aes::$class"
done
......@@ -9,5 +9,6 @@ puppet parser validate --strict_variables --modulepath="$modulepath" manifests/
for file in $*
do
class=$(basename $file .pp)
puppet apply --noop --test --modulepath="$modulepath" -e "include aes::$class"
# Sudo is needed for modules that do something with yum for example.
sudo /opt/puppetlabs/bin/puppet apply --noop --test --modulepath="$modulepath" -e "include aes::$class"
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment