-
Notifications
You must be signed in to change notification settings - Fork 2
/
apply_puppet.sh
executable file
·21 lines (18 loc) · 792 Bytes
/
apply_puppet.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#
# (c) WesseldR, 2014
# Easy to reuse commandline for applying the full puppet cycle. Use for changes and for initial instalation
#
echo " "
echo "Applying Puppet...."
echo "==================="
cp ./puppet/puppet.conf /etc/puppet/puppet.conf
cp -r ./puppet/manifests/files /etc/puppet/
cp -r ./puppet/hiera/* /etc/puppet/
rm /etc/hiera.yaml
ln -s /etc/puppet/hiera.yaml /etc/hiera.yaml
puppet apply --modulepath ./puppet/modules:/etc/puppet/modules:/usr/share/puppet/modules --fileserverconfig=./puppet/fileserver.conf ./puppet/manifests/site.pp
echo "================================================================="
echo "|| Puppet Applied! Installation and box Configuration Finished ||"
echo "================================================================="
echo " "