diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-10-05 14:12:23 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-10-05 14:12:23 +0200 |
commit | b1c7001dc4aed988345aab03c1cb2cee748b8c7e (patch) | |
tree | 901a0847727ef2750114ef5651eaf49b6c64c242 /manifests/common.pp | |
parent | Allow for empty filesystems fact. (diff) | |
download | profiles-b1c7001dc4aed988345aab03c1cb2cee748b8c7e.tar.gz profiles-b1c7001dc4aed988345aab03c1cb2cee748b8c7e.tar.xz |
Add test to not run locale-gen on FreeBSD.
Diffstat (limited to 'manifests/common.pp')
-rw-r--r-- | manifests/common.pp | 13 |
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': |