Sha256: 3d856f62ba06f91f62084cb722d6290260658a13c9ef1e7eee8c8d9e69e3de59
Contents?: true
Size: 1.33 KB
Versions: 21
Compression:
Stored size: 1.33 KB
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.orchestrate.filter_managed_commands = true config.vm.provision :shell, inline: "echo hello" # These boxes are defined locally to enable acceptance testing. Spinning up # real boxes in the vagrant-spec environment was expensive because it ignored # the cache and didn't expose a facility to view the vagrant output as it ran. # These machines get spun up in the rake task and then the vagrant-spec tests # connect to them by IP address. managed_servers.each_with_index do |ip, index| config.vm.define "local-#{index + 1}" do |ubuntu| # minimize clock skew, since we're using the `date` command to measure # clock skew. ubuntu.vm.provision :shell, inline: "ntpdate pool.ntp.org" ubuntu.vm.box = "ubuntu/trusty64" ubuntu.vm.network "private_network", ip: ip end end # These managed boxes connect to the local boxes defined above by ip address. managed_servers.each_with_index do |server, index| config.vm.define "managed-#{index + 1}" do |managed| 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
Version | Path |
---|---|
vagrant-orchestrate-0.5.2 | Vagrantfile |