summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-02-28 21:57:01 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-02-28 21:57:01 +0100
commit63079ec679b5f1b5fde00c4021f42271b68ef2f2 (patch)
tree4bc3e99bea301482dd097a5e675de02078bca173
parentFix self record in /etc/hosts. (diff)
downloadprofiles-63079ec679b5f1b5fde00c4021f42271b68ef2f2.tar.gz
profiles-63079ec679b5f1b5fde00c4021f42271b68ef2f2.tar.xz
Force short hostname in /etc/hostname.
-rw-r--r--manifests/common.pp4
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}",