]> gitweb.fluxo.info Git - puppet-bootstrap.git/commitdiff
Provision: link puppet config
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 1 Oct 2014 16:33:11 +0000 (13:33 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 1 Oct 2014 16:33:11 +0000 (13:33 -0300)
bin/provision

index 7fa056b30306a5269fa68d3699c4f6bbdf3d2757..61acf5971cb36eb14d3cd92021b2b165b977c679 100755 (executable)
@@ -14,8 +14,14 @@ for package in sqlite3 libsqlite3-ruby libactiverecord-ruby ruby-sqlite3 usbutil
   provision_package $package
 done
 
-# Make sure we have an initial hiera configuration.
+# Link hiera configuration.
 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
+
+# Link puppet configuration.
+if [ ! -h "/etc/puppet/puppet.conf" ]; then
+  sudo rm -f /etc/puppet/puppet.conf
+  sudo ln -s /vagrant/puppet/hiera/puppet.conf /etc/puppet/hiera.yaml
+fi