aboutsummaryrefslogtreecommitdiff
path: root/share/hydra/init
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-27 10:00:01 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-27 10:00:01 -0300
commit77226079874216a22563cff089fcc4b2211bf30d (patch)
tree59c525125fb53ba97d7dab1bf731106f2371675c /share/hydra/init
parent62ebbcf86b038fd01891a154c203f58ad434d89e (diff)
downloadhydra-77226079874216a22563cff089fcc4b2211bf30d.tar.gz
hydra-77226079874216a22563cff089fcc4b2211bf30d.tar.bz2
Ansible support at init and newnode
Diffstat (limited to 'share/hydra/init')
-rwxr-xr-xshare/hydra/init7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/hydra/init b/share/hydra/init
index 80dd449..3cf3074 100755
--- a/share/hydra/init
+++ b/share/hydra/init
@@ -107,12 +107,17 @@ else
# Create puppet repository
if [ ! -d "$BASEDIR/puppet" ]; then
echo "Cloning initial puppet repository..."
- git clone git://git.fluxo.info/puppet-bootstrap.git $BASEDIR/puppet
+ git clone https://git.fluxo.info/puppet-bootstrap $BASEDIR/puppet
# Config puppet
echo "Configuring puppet repository..."
hydra_bootstrap_config $BASEDIR/puppet
fi
+
+ # Create ansible repository
+ mkdir -p $BASEDIR/ansible
+ cp -r $APP_BASE/share/ansible $BASEDIR/ansible
+ hydra_git_init $BASEDIR/ansible
fi
# Reparse basedir to force absolute folder