Run a primer puppet run before parallel puppet
We are seeing races in the puppet apply test to create /opt/system-config/hieradata. Avoid this by running a simple hello world puppet manifest prior to running all of our test manifests in parallel. This should force the ansible puppet role to populate all the things on disk first avoiding races. Change-Id: If3946f561535ba315f018ab3122dcde56144240f
This commit is contained in:
parent
4a0661aac8
commit
8b642ecacc
@ -59,8 +59,16 @@ if [[ $FOUND == "0" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cat > applytest/primer.pp << EOF
|
||||
class helloworld {
|
||||
notify { 'hello, world!': }
|
||||
}
|
||||
EOF
|
||||
|
||||
sudo mkdir -p /var/run/puppet
|
||||
sudo -E bash -x ./install_modules.sh
|
||||
echo "Running apply test primer to avoid setup races when run in parallel."
|
||||
./tools/test_puppet_apply.sh applytest/primer.pp
|
||||
echo "Running apply test on these hosts:"
|
||||
find applytest -name 'puppetapplytest*.final' -print0
|
||||
find applytest -name 'puppetapplytest*.final' -print0 | \
|
||||
|
Loading…
Reference in New Issue
Block a user