From 9f82b59de71def509f531c54496e20552c085c1b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 19 Oct 2015 15:07:43 -0200 Subject: Deploy: dependencies --- share/hydractl/deploy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'share/hydractl/deploy') diff --git a/share/hydractl/deploy b/share/hydractl/deploy index a500a6e..85745ca 100755 --- a/share/hydractl/deploy +++ b/share/hydractl/deploy @@ -39,7 +39,7 @@ if [ ! -z "$FOLDER" ]; then # Check if puppet is installed if [ ! -e "$FOLDER/usr/bin/puppet" ]; then - $DEPLOY_COMMAND apt-get install puppet -y + $DEPLOY_COMMAND apt-get install $DEPLOY_DEPENDENCIES -y fi # Run puppet, overriding FQDN @@ -51,7 +51,9 @@ elif [ -e "$HYDRA_FOLDER/puppet/manifests/nodes/$FQDN.pp" ]; then hydra_deploy_setup # Check if puppet is installed - hydra_install_package puppet + for dep in $DEPLOY_DEPENDENCIES; do + hydra_install_package $dep + done # Run puppet $DEPLOY_APPLY -- cgit v1.2.3