lib/catfish/templates/Vagrantfile.tt in catfish-0.0.4 vs lib/catfish/templates/Vagrantfile.tt in catfish-0.0.5

- old
+ new

@@ -2,15 +2,23 @@ # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "tknerr/managed-server-dummy" -<% config[:provisioners].each do |provisioner| -%> -<% if provisioner == 'shell' -%> +<% if config[:provisioners].include? 'shell' -%> <% config[:shell_paths].each do |path| -%> config.vm.provision 'shell', path: '<%= path %>' <% end -%> <% end -%> +<% if config[:provisioners].include? 'puppet' -%> + config.vm.provision 'puppet' do |puppet| +<% if config[:puppet_hiera] -%> + puppet.hiera_config_path = 'hiera.yaml' +<% end -%> +<% if config[:puppet_librarian_puppet] -%> + puppet.module_path = 'modules' +<% end -%> + end <% end -%> <% if config[:communicator] == 'winrm' -%> config.vm.communicator = '<%= config[:communicator] %>' config.vm.winrm.username = '<%= config[:winrm_username] %>' config.vm.winrm.password = '<%= config[:winrm_password] %>'