Changeset View
Changeset View
Standalone View
Standalone View
Vagrantfile
Show First 20 Lines • Show All 579 Lines • ▼ Show 20 Lines | vms.each do | vm_name, vm_props | | ||||
end | end | ||||
if vm_props[:type] == TYPE_MASTER | if vm_props[:type] == TYPE_MASTER | ||||
config.vm.provision "file", source: "vagrant/puppet_master/", destination: "/tmp/" | config.vm.provision "file", source: "vagrant/puppet_master/", destination: "/tmp/" | ||||
config.vm.provision :shell, :path => "vagrant/puppet_master/prepare_puppet_master.sh" | config.vm.provision :shell, :path => "vagrant/puppet_master/prepare_puppet_master.sh" | ||||
end | end | ||||
config.vm.provision "puppet" do |puppet| | config.vm.provision "puppet" do |puppet| | ||||
puppet.environment = _vm_facts["environment"] | puppet.environment = _vm_facts["environment"] | ||||
vsellier: Perhaps put this line under the L600 to be closed to the relative comment ? | |||||
Done Inline Actionstotally, i did not connect the dot here. ardumont: totally, i did not connect the dot here.
Thanks. | |||||
if vm_props[:type] == TYPE_AGENT | if vm_props[:type] == TYPE_AGENT | ||||
puppet.environment_path = "#{environment_path}" | puppet.environment_path = "#{environment_path}" | ||||
puppet.hiera_config_path = "#{puppet.environment_path}/#{puppet.environment}/hiera.yaml" | puppet.hiera_config_path = "#{puppet.environment_path}/#{puppet.environment}/hiera.yaml" | ||||
end | end | ||||
puppet.manifest_file = "#{manifest_file}" | puppet.manifest_file = "#{manifest_file}" | ||||
puppet.manifests_path = "#{manifests_path}" | puppet.manifests_path = "#{manifests_path}" | ||||
puppet.options = "#{puppet_options}" | puppet.options = "#{puppet_options}" | ||||
puppet.facter = _vm_facts | puppet.facter = _vm_facts | ||||
# Dont use nfs mount as the nfs_version can't be | # Dont use nfs mount as the nfs_version can't be | ||||
# specified. The default is nfsv3 and udp which is not | # specified. The default is nfsv3 and udp which is not | ||||
# supported by the debian 11 kernel | # supported by the debian 11 kernel | ||||
puppet.synced_folder_type = 'rsync' | |||||
end | end | ||||
end | end | ||||
end | end | ||||
end | end |
Perhaps put this line under the L600 to be closed to the relative comment ?