aboutsummaryrefslogtreecommitdiff
path: root/bin/provision
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-06-02 15:03:14 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-06-02 15:03:14 -0300
commitbb2eae6f3a1f44fef0a05000d79c298442fa24c7 (patch)
treeda86fdf7c5e9fa6ebf752ffdd6515400057757a8 /bin/provision
parentc47363ad53fbe2795e4533a29478210923b6ec54 (diff)
downloadpuppet-bootstrap-bb2eae6f3a1f44fef0a05000d79c298442fa24c7.tar.gz
puppet-bootstrap-bb2eae6f3a1f44fef0a05000d79c298442fa24c7.tar.bz2
Provision: make hiera.yaml as a symlink
Diffstat (limited to 'bin/provision')
-rwxr-xr-xbin/provision7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/provision b/bin/provision
index 6b9fbbe..7fa056b 100755
--- a/bin/provision
+++ b/bin/provision
@@ -15,8 +15,7 @@ for package in sqlite3 libsqlite3-ruby libactiverecord-ruby ruby-sqlite3 usbutil
done
# Make sure we have an initial hiera configuration.
-if [ ! -e "/etc/puppet/hiera.yaml" ]; then
- sudo cp /vagrant/puppet/hiera/hiera.yaml /etc/puppet/hiera.yaml
- sudo chown root. /etc/puppet/hiera.yaml
- sudo chmod 644 /etc/puppet/hiera.yaml
+if [ ! -h "/etc/puppet/hiera.yaml" ]; then
+ sudo rm -f /etc/puppet/hiera.yaml
+ sudo ln -s /vagrant/puppet/hiera/hiera.yaml /etc/puppet/hiera.yaml
fi