summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-03-06 23:38:32 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-03-06 23:38:32 +0100
commit1ed3fabb2f4315d3e6f1546805f76930fbf000be (patch)
tree2e6f72d9fc1192be819b90923df1cc0c42c0f9c5
parentRevert "Transient config to unhost ourself." (diff)
downloadprofiles-1ed3fabb2f4315d3e6f1546805f76930fbf000be.tar.gz
profiles-1ed3fabb2f4315d3e6f1546805f76930fbf000be.tar.xz
common auto pull os family common.
-rw-r--r--manifests/common.pp5
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/common.pp b/manifests/common.pp
index 8b933fe..63a1cd1 100644
--- a/manifests/common.pp
+++ b/manifests/common.pp
@@ -4,6 +4,11 @@ class profiles::common (
Array[String] $locales = [ 'en_US.UTF-8', ],
) {
+ $os_fam = $facts['os']['family'].downcase()
+ if defined("profiles::common::${os_fam}") {
+ include "profiles::common::${os_fam}"
+ }
+
file { '/etc/hostname':
content => "${::hostname}\n",
}