aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-02 12:05:43 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-02 12:05:43 -0200
commit6993d7ac4c3b939500758c79f12d94171c2c0435 (patch)
tree7294c4f16de6ac591bc411d782f3665d439cba4c /share
parent36670df5de8c5afdf88d0aa4bccbeaf5fb939221 (diff)
downloadtemplater-6993d7ac4c3b939500758c79f12d94171c2c0435.tar.gz
templater-6993d7ac4c3b939500758c79f12d94171c2c0435.tar.bz2
Puppet: copy box.example.org.yaml
Diffstat (limited to 'share')
-rwxr-xr-xshare/templater/puppet/setup6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/templater/puppet/setup b/share/templater/puppet/setup
index b71fbdb..5821ae7 100755
--- a/share/templater/puppet/setup
+++ b/share/templater/puppet/setup
@@ -5,6 +5,7 @@
# Parameters
SHARE="$1"
+PROJECT="`pwd`"
BOOTSTRAP="https://git.fluxo.info/puppet-bootstrap"
# Include basic functions
@@ -30,6 +31,11 @@ function templater_puppet {
#git submodule add $BOOSTRAP puppet
git remote add puppet $BOOTSTRAP
git subtree add --prefix puppet $BOOTSTRAP master --squash
+
+ # Setup node config
+ if [ -e "puppet/config/node/box.example.org.yaml" ]; then
+ cp puppet/config/node/box.example.org.yaml puppet/config/node/$PROJECT.example.org.yaml
+ fi
else
__templater_echo "Puppet already set"
fi