# Puppet configpuppet_block=lambdado|puppet|puppet.options="--parser future --verbose --debug"# For debug onlypuppet.manifests_path="manifests"puppet.manifest_file="vagrant.pp"puppet.module_path="modules"puppet.hiera_config_path="hiera.yaml"endconfig.vm.provider"virtualbox"do|vb,override|override.vm.provision"puppet",&puppet_blockendconfig.vm.provider:awsdo|aws,override|override.vm.provision"puppet",&puppet_blockend
provisioner 其實是可以多個的,就算是相同類型也一樣,並且他會依照順序執行,例如:
12345
# Upgrade Puppet from 2.7 to 3.xconfig.vm.provision:shell,:path=>"scripts/upgrade_puppet.sh"# Install hiera-eyaml for Puppetconfig.vm.provision:shell,:path=>"scripts/install_eyaml.sh"