Sha256: 7ab5b66915f22f9d05040498719b1adfb5cd534976aa7aa0bab26da5ecdebe99
Contents?: true
Size: 651 Bytes
Versions: 21
Compression:
Stored size: 651 Bytes
Contents
managed_servers = %w( 192.168.10.80 192.168.10.81 192.168.10.82 192.168.10.83 ) Vagrant.configure(2) do |config| # Print a unique string that we can check the output for config.vm.provision :shell, inline: "echo 6etrabEmU8ru8hapheph" managed_servers.each_with_index do |server, index| config.vm.define "managed-#{index + 1}" do |managed| managed.vm.provision "shell", inline: "echo 'hello world'" managed.vm.box = "managed-server-dummy" managed.vm.box_url = "./dummy.box" managed.ssh.password = "vagrant" managed.vm.provider :managed do |provider| provider.server = server end end end end
Version data entries
21 entries across 21 versions & 1 rubygems