diff options
| author | James Shubin <james@shubin.ca> | 2014-01-21 23:59:30 -0500 |
|---|---|---|
| committer | James Shubin <james@shubin.ca> | 2014-01-21 23:59:30 -0500 |
| commit | 7f48c51fb1fcf9a2bcda760565e1e5ba3eff1d3e (patch) | |
| tree | bdbf4ee9d1d91581bb21887652143fb8eef4a2cd | |
| parent | 756dadb38660d1feabe93d993cfb14edf05c8541 (diff) | |
| download | puppet-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/Vagrantfile | 12 |
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) |
