From b1c7001dc4aed988345aab03c1cb2cee748b8c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 5 Oct 2023 14:12:23 +0200 Subject: Add test to not run locale-gen on FreeBSD. --- manifests/common.pp | 13 ++++++++----- 1 file 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': -- cgit v1.2.3