Browse Source

[common] Use plain host name for Ganeti nodes

Gabriel Corona 8 years ago
parent
commit
878ce7141f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      manifests/common.pp

+ 2 - 2
manifests/common.pp

@@ -93,7 +93,7 @@ class public::common {
   file {
     '/etc/hostname':
       ensure  => file,
-      content => $::fqdn,
+      content => $::hostname,
       owner   => root,
       group   => root,
       mode    => '0644',
@@ -108,7 +108,7 @@ class public::common {
 
   exec {
     'reload hostname':
-      command     => "/usr/bin/hostnamectl set-hostname ${::fqdn}",
+      command     => "/usr/bin/hostnamectl set-hostname ${::hostname}",
       user        => root,
       refreshonly => true,
       logoutput   => on_failure;