diff options
Diffstat (limited to 'deploy.sh')
-rwxr-xr-x | deploy.sh | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -1,3 +1,21 @@ -#!/bin/sh +#!/bin/sh -x +# +# missing: header, licence, usage + +PUPPET_ENV='--confdir=puppet' + +install_prerequisites () { + apt-get update + apt-get install puppet + + # lsb is needed for a first puppet run + puppet apply $PUPPET_ENV --execute 'include lsb' +} + +# main + +# commented for testing purposes +#install_prerequisites + +puppet apply $PUPPET_ENV puppet/manifests/site.pp $@ -puppet apply --modulepath=$PWD/puppet/modules $PWD/puppet/manifests/site.pp $@ |