diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/provision | 7 |
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 |