aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-10-19 15:07:43 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-10-19 15:07:43 -0200
commit9f82b59de71def509f531c54496e20552c085c1b (patch)
treeebbbeef64ba5b9c37e5b9a885fbf10f56ab00169
parent7b26418c6e5cf39ec3aa7606a6af9e29601c585a (diff)
downloadhydra-9f82b59de71def509f531c54496e20552c085c1b.tar.gz
hydra-9f82b59de71def509f531c54496e20552c085c1b.tar.bz2
Deploy: dependencies
-rw-r--r--lib/hydra/deploy1
-rwxr-xr-xshare/hydra/deploy2
-rwxr-xr-xshare/hydractl/deploy6
3 files changed, 6 insertions, 3 deletions
diff --git a/lib/hydra/deploy b/lib/hydra/deploy
index 5fecafd..05479fe 100644
--- a/lib/hydra/deploy
+++ b/lib/hydra/deploy
@@ -4,6 +4,7 @@
function hydra_deploy_setup {
# Common parameters
# Exclude eventual keys and version control files
+ DEPLOY_DEPENDENCIES="puppet ruby-sqlite3 ruby-activerecord ruby-activerecord-deprecated-finders"
DEPLOY_RSYNC="rsync -CrltDv --no-perms --exclude=ssl --exclude=keys --exclude=hiera/secrets --delete --rsync-path"
RSYNC_PATH="rsync"
COPY_PATH=""
diff --git a/share/hydra/deploy b/share/hydra/deploy
index d7d4d95..7943a7a 100755
--- a/share/hydra/deploy
+++ b/share/hydra/deploy
@@ -48,7 +48,7 @@ for node in $NODES; do
if ! which puppet &> /dev/null; then
echo "Installing puppet..."
sudo aptitude update
- sudo aptitude install puppet -y
+ sudo aptitude install $DEPLOY_DEPENDENCIES
fi
##### END REMOTE SCRIPT #######
EOF
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