Sha256: 5b3cf6bc931e333c3e76e2f6dce7a735e15724c68f821baa429d22deab17a54b
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
managed_servers = %w( <% servers.each do |s| -%><%= s %> <% end -%>) <% if plugins.any? -%> required_plugins = %w( <% plugins.each do |p| -%><%= p %> <% end -%>) required_plugins.each do |plugin| system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin end <% end %> Vagrant.configure("2") do |config| <% if provisioners.include? "shell" -%> <% shell_paths.each do |path| -%> config.vm.provision "shell", path: "<%= path %>" <% end -%> <% if shell_inline -%> config.vm.provision "shell", inline: "<%= shell_inline %>" <% end -%> <% end -%> <% if provisioners.include? "puppet" -%> config.vm.provision "puppet" do |puppet| end <% end -%> <% if communicator == "ssh" -%> config.ssh.username = "<%= ssh_username %>" <% if ssh_password -%> config.ssh.password = "<%= ssh_password %>" <% end -%> <% if !ssh_password -%> config.ssh.private_key_path = "<%= ssh_private_key_path %>" <% end -%> <% end -%> <% if communicator == "winrm" -%> config.vm.communicator = "<%= communicator %>" config.winrm.username = "<%= winrm_username %>" config.winrm.password = "<%= winrm_password %>" <% end -%> managed_servers.each do |instance| config.vm.define "managed-#{instance}" do |box| box.vm.box = "tknerr/managed-server-dummy" box.vm.provider :managed do |provider| provider.server = instance end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-orchestrate-0.0.1 | templates/vagrant/Vagrantfile.erb |