summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2014-01-21 23:59:30 -0500
committerJames Shubin <james@shubin.ca>2014-01-21 23:59:30 -0500
commit7f48c51fb1fcf9a2bcda760565e1e5ba3eff1d3e (patch)
treebdbf4ee9d1d91581bb21887652143fb8eef4a2cd
parent756dadb38660d1feabe93d993cfb14edf05c8541 (diff)
downloadpuppet-gluster-7f48c51fb1fcf9a2bcda760565e1e5ba3eff1d3e.tar.gz
puppet-gluster-7f48c51fb1fcf9a2bcda760565e1e5ba3eff1d3e.tar.xz
puppet-gluster-7f48c51fb1fcf9a2bcda760565e1e5ba3eff1d3e.zip
Add client entries to their /etc/hosts so that puppet sees the FQDN.
-rw-r--r--vagrant/gluster/Vagrantfile12
1 files changed, 5 insertions, 7 deletions
diff --git a/vagrant/gluster/Vagrantfile b/vagrant/gluster/Vagrantfile
index 781c4d0..3e696b0 100644
--- a/vagrant/gluster/Vagrantfile
+++ b/vagrant/gluster/Vagrantfile
@@ -463,14 +463,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
vm.vm.provision 'shell', inline: "puppet resource host #{oh}.#{domain} ip=#{oip} host_aliases=#{oh} ensure=present"
end
- # NOTE: we don't add ip's of other clients
- # because it's probably not needed...
# hosts entries for all clients
- #(1..clients).each do |j|
- # oh = "client#{j}"
- # oip = range[offset+count+j].to_s
- # vm.vm.provision 'shell', inline: "puppet resource host #{oh}.#{domain} ip=#{oip} host_aliases=#{oh} ensure=present"
- #end
+ (1..clients).each do |j|
+ oh = "client#{j}"
+ oip = range[offset+count+j].to_s
+ vm.vm.provision 'shell', inline: "puppet resource host #{oh}.#{domain} ip=#{oip} host_aliases=#{oh} ensure=present"
+ end
end
#
# puppet (agent)