summaryrefslogtreecommitdiffstats
path: root/tozt
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-10-29 22:13:35 -0400
committerJesse Luehrs <doy@tozt.net>2018-10-29 22:13:35 -0400
commit94164f1e4c20adcaf80de580fc87ac14988d171e (patch)
treec918cfe112fefd9be520e642e945b863276188dd /tozt
parentfde74840d4537554cf6dcf5fc43a99d93d4998e6 (diff)
downloadpuppet-tozt-94164f1e4c20adcaf80de580fc87ac14988d171e.tar.gz
puppet-tozt-94164f1e4c20adcaf80de580fc87ac14988d171e.zip
generate /etc/locale.conf and /etc/hosts
Diffstat (limited to 'tozt')
-rw-r--r--tozt/tozt/files/hosts8
-rw-r--r--tozt/tozt/manifests/init.pp1
-rw-r--r--tozt/tozt/manifests/misc.pp20
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;
+ }
+}