X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fbase_installation%2Fmanifests%2Fsystem_config.pp;h=c6da26b159714f369db463bdbfb7c72c1219c509;hb=3d31cb9163a1254d1455000afef28115b0fa07e6;hp=ccc5dcc8c9931307007adc1f2e0ad4af3c940be0;hpb=89c7d1dea4af6026af00624af77bb1a08c8ebd53;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/modules/base_installation/manifests/system_config.pp b/modules/base_installation/manifests/system_config.pp index ccc5dcc..c6da26b 100644 --- a/modules/base_installation/manifests/system_config.pp +++ b/modules/base_installation/manifests/system_config.pp @@ -13,20 +13,14 @@ class base_installation::system_config inherits base_installation { } file { '/etc/hostname': - content => "$base_installation::system_hostname\n", + content => "$hostname\n", } exec { "set_hostname": - command => "/usr/bin/hostnamectl set-hostname $base_installation::system_hostname", + command => "/usr/bin/hostnamectl set-hostname $hostname", refreshonly => true, subscribe => File["/etc/hostname"], returns => [0, 1], } - # TODO: find a way to ensure that /etc/hostname doesn't change - # exec { "set_hostname_firstboot": - # command => "/usr/bin/systemd-firstboot --hostname=$base_installation::system_hostname", - # creates => "/etc/hostname", - # } - }