Sha256: 25ed307fc33d981ca766e92e062af2cb87882ca853a9a361bd2e6b77eaf67f5b
Contents?: true
Size: 647 Bytes
Versions: 4
Compression:
Stored size: 647 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| config.ssh.password = "vagrant" managed_servers.each_with_index do |server, index| config.vm.define "managed-#{index + 1}" do |managed| managed.vm.provision "shell", inline: "date > /tmp/sync_time; sleep 3" managed.vm.box = "managed-server-dummy" managed.vm.box_url = "./dummy.box" # TODO: Why in the world do I need this? I thought it was the default! managed.ssh.password = "vagrant" managed.vm.provider :managed do |provider| provider.server = server end end end end
Version data entries
4 entries across 4 versions & 1 rubygems