Sha256: 211aade9fea7187be8ceaa391f00405a40da3000806d82918404534acc2b5a64
Contents?: true
Size: 1.65 KB
Versions: 1
Compression:
Stored size: 1.65 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" -%> <% if puppet_librarian_puppet -%> config.librarian_puppet.placeholder_filename = ".PLACEHOLDER" <% end -%> config.vm.provision "puppet" do |puppet| <% if puppet_librarian_puppet -%> puppet.module_path = 'modules' <% end -%> <% if puppet_hiera -%> puppet.hiera_config_path = 'hiera.yaml' <% end -%> 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.2 | templates/vagrant/Vagrantfile.erb |