summaryrefslogtreecommitdiffstats
path: root/modules/base
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-01-01 19:57:40 -0500
committerJesse Luehrs <doy@tozt.net>2019-01-01 19:57:40 -0500
commit83e422435fadb68ec5648df7fda01e5517d4a34e (patch)
tree29d1a97a555fc14263f2d0b057e566b1bb28c4e8 /modules/base
parent5128f64f182253948505ab1ce15d56f2dcf6030a (diff)
downloadpuppet-tozt-83e422435fadb68ec5648df7fda01e5517d4a34e.tar.gz
puppet-tozt-83e422435fadb68ec5648df7fda01e5517d4a34e.zip
generate hosts data
Diffstat (limited to 'modules/base')
-rw-r--r--modules/base/templates/hosts8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/base/templates/hosts b/modules/base/templates/hosts
index 1ef790d..52ede8b 100644
--- a/modules/base/templates/hosts
+++ b/modules/base/templates/hosts
@@ -1,8 +1,6 @@
127.0.0.1 localhost
127.0.1.1 <%= @hostname %>.localdomain <%= @hostname %>
-10.19.49.3 hush.algo
-10.19.49.4 partofme.algo
-10.19.49.5 phone.algo
-10.19.49.6 tozt.algo
-10.19.49.7 mail.algo
+<% @vpn_ips.each do |hostname, ip| %>
+<%= ip %> <%= hostname %>.algo
+<% end %>