Source

pgci / manifests / pgci.pp

Diff from to

File manifests/pgci.pp

   notify => Service['postfix'],
 }
 
-file { '/etc/hostname':
-  ensure => present,
-  content => "$fqdn\n",
-  notify => Exec['hostname'],
+if $fqdn != undef {
+  file { '/etc/hostname':
+    ensure => present,
+    content => "$fqdn\n",
+    notify => Exec['hostname'],
+  }
+}
+else {
+  warning("no FQDN defined");
 }
 
 exec { 'hostname':