I'm using a Vagrantfile that looks like this:
Vagrant::Config.run do |config|
config.vm.define :puppet do |c|
c.vm.host_name = 'puppet.domain.com'
c.vm.box = "precise64"
c.vm.network :hostonly, "192.168.33.100"
c.vm.provision :puppet # This sets up puppetmaster and puppet configs
c.vm.provision :puppet_server do |puppet|
puppet.puppet_server = 'puppet.domain.com'
puppet.puppet_node = 'puppet.domain.com'
end
end
end
When they both run on start up, the client never connects to the master, presumably because the master hasn't started listening on the port yet.
How do I get Vagrant to delay the execution of puppet agent? Maybe there's another way of going about it?