# # }
#
- #config.vm.provision :puppet do |puppet|
+ # Install relevant puppet modules
+
+ config.vm.provision :shell, :run => "always" do |shell|
+ shell.inline = %{
+ mkdir -p /etc/puppet/modules;
+ function install_module {
+ folder=`echo $1 | sed s/.*-//`
+ if [ ! -d /etc/puppet/modules/$folder ]; then
+ puppet module install $1
+ fi
+ }
+ install_module puppetlabs-vcsrepo
+# install_module stdlib
+# install_module apt
+# install_module ruby
+ }
+ end
+
+
+ # Now run puppet
+
+ config.vm.provision :puppet do |puppet|
#puppet.facter = {
# "kiosk_url" => "http://map.ipviking.com/",
#}
- # puppet.manifests_path = "puppet/manifests"
+ puppet.manifests_path = "puppet/manifests"
- # puppet.module_path = "puppet/modules"
- # puppet.manifest_file = "init.pp"
- # puppet.options = "--verbose --debug"
- #end
+ puppet.module_path = "puppet/modules"
+ puppet.manifest_file = "init.pp"
+ puppet.options = "--verbose --debug"
+ end
end