Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Provisioning: Salt
- ################################################################
- # Map the provisioning directory to the guest machine and initiate the provisioning process
- # with salt. On the first build of a virtual machine, if Salt has not yet been installed, it
- # will be bootstrapped automatically. We have provided a modified local bootstrap script to
- # avoid network connectivity issues and to specify that a newer version of Salt be installed.
- config.vm.synced_folder "provision/salt", "/srv/salt"
- config.vm.provision "shell",
- inline: "cp /srv/salt/config/yum.conf /etc/yum.conf"
- # Set up the minions
- ########################
- projects.each do |project|
- config.vm.synced_folder "www/#{project}/provision/salt", "/srv/#{project}/salt"
- end
- # Provision the server base
- ################################################################
- config.vm.provision :salt do |salt|
- salt.bootstrap_script = 'provision/bootstrap_salt.sh'
- salt.install_type = install_type
- salt.verbose = verbose_output
- salt.minion_config = "provision/salt/minions/#{minion}.conf"
- salt.run_highstate = true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement