Advertisement
Guest User

Untitled

a guest
Jan 11th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. # Provisioning: Salt
  2. ################################################################
  3. # Map the provisioning directory to the guest machine and initiate the provisioning process
  4. # with salt. On the first build of a virtual machine, if Salt has not yet been installed, it
  5. # will be bootstrapped automatically. We have provided a modified local bootstrap script to
  6. # avoid network connectivity issues and to specify that a newer version of Salt be installed.
  7.  
  8. config.vm.synced_folder "provision/salt", "/srv/salt"
  9.  
  10. config.vm.provision "shell",
  11. inline: "cp /srv/salt/config/yum.conf /etc/yum.conf"
  12.  
  13. # Set up the minions
  14. ########################
  15. projects.each do |project|
  16. config.vm.synced_folder "www/#{project}/provision/salt", "/srv/#{project}/salt"
  17. end
  18.  
  19.  
  20. # Provision the server base
  21. ################################################################
  22. config.vm.provision :salt do |salt|
  23. salt.bootstrap_script = 'provision/bootstrap_salt.sh'
  24. salt.install_type = install_type
  25. salt.verbose = verbose_output
  26. salt.minion_config = "provision/salt/minions/#{minion}.conf"
  27. salt.run_highstate = true
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement