aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-13 02:58:40 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-13 02:58:40 +0100
commitab527dc94acbd88364a7e500b191ddeb22edf7fa (patch)
tree7bbffc911673eb64b52886c970f1174c5418c99c /modules
parentabfdb513e936fcd0e9669030f5c6a43ebe849ff6 (diff)
parent70c37c94e226a708fd0407a4b3742c83972967a7 (diff)
downloadPuppet-ab527dc94acbd88364a7e500b191ddeb22edf7fa.tar.gz
Puppet-ab527dc94acbd88364a7e500b191ddeb22edf7fa.tar.zst
Puppet-ab527dc94acbd88364a7e500b191ddeb22edf7fa.zip
Merge branch 'dev'
Diffstat (limited to 'modules')
-rw-r--r--modules/base_installation/manifests/system_config.pp10
1 files changed, 2 insertions, 8 deletions
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 {
13 } 13 }
14 14
15 file { '/etc/hostname': 15 file { '/etc/hostname':
16 content => "$base_installation::system_hostname\n", 16 content => "$hostname\n",
17 } 17 }
18 18
19 exec { "set_hostname": 19 exec { "set_hostname":
20 command => "/usr/bin/hostnamectl set-hostname $base_installation::system_hostname", 20 command => "/usr/bin/hostnamectl set-hostname $hostname",
21 refreshonly => true, 21 refreshonly => true,
22 subscribe => File["/etc/hostname"], 22 subscribe => File["/etc/hostname"],
23 returns => [0, 1], 23 returns => [0, 1],
24 } 24 }
25 25
26 # TODO: find a way to ensure that /etc/hostname doesn't change
27 # exec { "set_hostname_firstboot":
28 # command => "/usr/bin/systemd-firstboot --hostname=$base_installation::system_hostname",
29 # creates => "/etc/hostname",
30 # }
31
32} 26}