diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-10-29 22:13:35 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-10-29 22:13:35 -0400 |
commit | 94164f1e4c20adcaf80de580fc87ac14988d171e (patch) | |
tree | c918cfe112fefd9be520e642e945b863276188dd | |
parent | fde74840d4537554cf6dcf5fc43a99d93d4998e6 (diff) | |
download | puppet-tozt-94164f1e4c20adcaf80de580fc87ac14988d171e.tar.gz puppet-tozt-94164f1e4c20adcaf80de580fc87ac14988d171e.zip |
generate /etc/locale.conf and /etc/hosts
-rw-r--r-- | tozt/tozt/files/hosts | 8 | ||||
-rw-r--r-- | tozt/tozt/manifests/init.pp | 1 | ||||
-rw-r--r-- | tozt/tozt/manifests/misc.pp | 20 |
3 files changed, 29 insertions, 0 deletions
diff --git a/tozt/tozt/files/hosts b/tozt/tozt/files/hosts new file mode 100644 index 0000000..3a22936 --- /dev/null +++ b/tozt/tozt/files/hosts @@ -0,0 +1,8 @@ +127.0.0.1 localhost +127.0.1.1 tozt.localdomain tozt + +10.19.49.101 hush.algo +10.19.49.102 bishamon.algo +10.19.49.103 phone.algo +10.19.49.104 tozt.algo +10.19.49.105 mail.algo diff --git a/tozt/tozt/manifests/init.pp b/tozt/tozt/manifests/init.pp index e9a67d8..4dc3c72 100644 --- a/tozt/tozt/manifests/init.pp +++ b/tozt/tozt/manifests/init.pp @@ -10,6 +10,7 @@ class tozt { include tozt::bootstrap include tozt::backups include tozt::git + include tozt::misc include tozt::pass include tozt::site include tozt::services diff --git a/tozt/tozt/manifests/misc.pp b/tozt/tozt/manifests/misc.pp new file mode 100644 index 0000000..a68bdd1 --- /dev/null +++ b/tozt/tozt/manifests/misc.pp @@ -0,0 +1,20 @@ +class tozt::misc { + file { + "/etc/locale.gen": + content => "en_US.UTF-8 UTF-8\n", + notify => Exec["regen locale data"]; + "/etc/locale.conf": + content => "LANG=en_US.UTF-8\n", + require => [ + File["/etc/locale.gen"], + Exec["regen locale data"], + ]; + "/etc/hosts": + source => "puppet:///modules/tozt/hosts"; + } + + exec { "regen locale data": + command => "/usr/bin/locale-gen", + refreshonly => true; + } +} |