summaryrefslogtreecommitdiffstats
path: root/modules/base
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-14 02:36:48 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-14 02:36:48 -0500
commit227a895fedbd8a7d4f0b879d6ba332a444eac219 (patch)
tree545420d39ae8e1ed766d081778e53b9a4080634e /modules/base
parent928359d942ec5419fa0607a31a5f02ad30ad00cf (diff)
downloadpuppet-tozt-227a895fedbd8a7d4f0b879d6ba332a444eac219.tar.gz
puppet-tozt-227a895fedbd8a7d4f0b879d6ba332a444eac219.zip
template the hosts file
Diffstat (limited to 'modules/base')
-rw-r--r--modules/base/manifests/operatingsystem.pp2
-rw-r--r--modules/base/templates/hosts (renamed from modules/base/files/hosts)2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/base/manifests/operatingsystem.pp b/modules/base/manifests/operatingsystem.pp
index 5e64a8a..6bbd135 100644
--- a/modules/base/manifests/operatingsystem.pp
+++ b/modules/base/manifests/operatingsystem.pp
@@ -10,7 +10,7 @@ class base::operatingsystem {
Exec["regen locale data"],
];
"/etc/hosts":
- source => "puppet:///modules/base/hosts";
+ content => template('base/hosts');
}
exec { "regen locale data":
diff --git a/modules/base/files/hosts b/modules/base/templates/hosts
index 40a877c..2d70d6c 100644
--- a/modules/base/files/hosts
+++ b/modules/base/templates/hosts
@@ -1,5 +1,5 @@
127.0.0.1 localhost
-127.0.1.1 tozt.localdomain tozt
+127.0.1.1 <%= @hostname %>.localdomain <%= @hostname %>
10.19.49.101 hush.algo
10.19.49.103 phone.algo