summaryrefslogtreecommitdiffstats
path: root/tozt/tozt/manifests/misc.pp
blob: a68bdd159fb08e3097f7f5f28ae62e3fde3702ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
  }
}