From cedac90b22bdd0ff823729b096e961685d5c25c7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 3 Mar 2014 14:35:46 -0300 Subject: Init: generate puppet repository --- share/hydractl/bootstrap | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'share/hydractl') diff --git a/share/hydractl/bootstrap b/share/hydractl/bootstrap index 6658e4e..c83a4b0 100755 --- a/share/hydractl/bootstrap +++ b/share/hydractl/bootstrap @@ -21,14 +21,15 @@ STAGE="$1" if [ "$STAGE" == "repository" ]; then hydractl puppet-install - mkdir -p /etc/puppet/modules - git clone git://git.sarava.org/puppet-bootstrap /etc/puppet/modules/bootstrap + rm -rf /etc/puppet && git clone git://git.sarava.org/puppet-bootstrap /etc/puppet + chown -R puppet. /etc/puppet - echo "Editing /etc/puppet/modules/bootstrap/manifests/config.pp to suit your needs..." + echo "Please edit /etc/puppet/manifests/config.pp to suit your needs..." + echo "Press any key to continue, Ctrl-C to abort..." + read option $EDITOR /etc/puppet/modules/bootstrap/manifests/config.pp fi if [ -e "/etc/puppet/modules/bootstrap/manifests/$stage.pp" ]; then - puppet agent --no-daemonize --debug --verbose --onetime /etc/puppet/modules/bootstrap/manifests/$stage.pp - puppet agent --no-daemonize --debug --verbose + puppet apply /etc/puppet/modules/bootstrap/manifests/$stage.pp fi -- cgit v1.2.3