summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-10-05 14:12:23 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-10-05 14:12:23 +0200
commitb1c7001dc4aed988345aab03c1cb2cee748b8c7e (patch)
tree901a0847727ef2750114ef5651eaf49b6c64c242
parentAllow for empty filesystems fact. (diff)
downloadprofiles-b1c7001dc4aed988345aab03c1cb2cee748b8c7e.tar.gz
profiles-b1c7001dc4aed988345aab03c1cb2cee748b8c7e.tar.xz
Add test to not run locale-gen on FreeBSD.
-rw-r--r--manifests/common.pp13
1 files changed, 8 insertions, 5 deletions
diff --git a/manifests/common.pp b/manifests/common.pp
index 2f35f51..3c9b9ea 100644
--- a/manifests/common.pp
+++ b/manifests/common.pp
@@ -42,11 +42,14 @@ class profiles::common (
}
} + [ '' ])
- file { '/etc/locale.gen':
- content => $fixed_locales.join("\n")
- } ~> exec { 'locale-gen':
- path => [ '/bin', '/usr/bin', '/usr/sbin', ],
- refreshonly => true,
+ # TODO figure out proper test here
+ unless $facts['operatingsystem'] == 'FreeBSD' {
+ file { '/etc/locale.gen':
+ content => $fixed_locales.join("\n")
+ } ~> exec { 'locale-gen':
+ path => [ '/bin', '/usr/bin', '/usr/sbin', ],
+ refreshonly => true,
+ }
}
file { 'Default locales':