diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-11-14 02:36:48 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-11-14 02:36:48 -0500 |
commit | 227a895fedbd8a7d4f0b879d6ba332a444eac219 (patch) | |
tree | 545420d39ae8e1ed766d081778e53b9a4080634e /modules/base | |
parent | 928359d942ec5419fa0607a31a5f02ad30ad00cf (diff) | |
download | puppet-tozt-227a895fedbd8a7d4f0b879d6ba332a444eac219.tar.gz puppet-tozt-227a895fedbd8a7d4f0b879d6ba332a444eac219.zip |
template the hosts file
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/manifests/operatingsystem.pp | 2 | ||||
-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 |