diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-28 21:57:01 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-28 21:57:01 +0100 |
commit | 63079ec679b5f1b5fde00c4021f42271b68ef2f2 (patch) | |
tree | 4bc3e99bea301482dd097a5e675de02078bca173 /manifests/common | |
parent | Fix self record in /etc/hosts. (diff) | |
download | profiles-63079ec679b5f1b5fde00c4021f42271b68ef2f2.tar.gz profiles-63079ec679b5f1b5fde00c4021f42271b68ef2f2.tar.xz |
Force short hostname in /etc/hostname.
Diffstat (limited to '')
-rw-r--r-- | manifests/common.pp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/common.pp b/manifests/common.pp index 93db474..8b933fe 100644 --- a/manifests/common.pp +++ b/manifests/common.pp @@ -4,6 +4,10 @@ class profiles::common ( Array[String] $locales = [ 'en_US.UTF-8', ], ) { + file { '/etc/hostname': + content => "${::hostname}\n", + } + file_line { 'hosts ourself': ensure => present, line => "::1\t${::fqdn}\t${::hostname}", |