diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-03-06 23:38:32 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-03-06 23:38:32 +0100 |
commit | 1ed3fabb2f4315d3e6f1546805f76930fbf000be (patch) | |
tree | 2e6f72d9fc1192be819b90923df1cc0c42c0f9c5 /manifests | |
parent | Revert "Transient config to unhost ourself." (diff) | |
download | profiles-1ed3fabb2f4315d3e6f1546805f76930fbf000be.tar.gz profiles-1ed3fabb2f4315d3e6f1546805f76930fbf000be.tar.xz |
common auto pull os family common.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/common.pp | 5 |
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", } |