From 8f82dc0117e86c914cfe79a38fb3145f62fbbb61 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Thu, 21 Feb 2019 11:54:34 -0500 Subject: [PATCH] Download any new forge modules on pup-tests apply If a forge module is added to the Puppetfile after the pup-tests script is used to "create" the environment, pup-tests "apply" will now download and install them. --- pup-tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pup-tests.sh b/pup-tests.sh index e9b6ed4..8eed2a6 100755 --- a/pup-tests.sh +++ b/pup-tests.sh @@ -36,6 +36,8 @@ then vagrant ssh backups -c "sudo puppet agent -t" elif [ "$1" == "apply" ] then + vagrant ssh master -c "cd /etc/puppet/code/environments/production && \ + r10k puppetfile install" vagrant rsync if [ -z "$2" ]; then vagrant ssh webserver -c "sudo puppet agent -t"