1 class base_installation::system_config inherits base_installation {
2 unless empty($base_installation::system_timezone) {
3 file { "/etc/localtime":
5 target => "../usr/share/zoneinfo/$base_installation::system_timezone"
9 if empty($base_installation::system_hostname) {
10 $hostname = $base_installation::real_hostname
12 $hostname = $base_installation::system_hostname
15 file { '/etc/hostname':
16 content => "$base_installation::system_hostname\n",
19 exec { "set_hostname":
20 command => "/usr/bin/hostnamectl set-hostname $base_installation::system_hostname",
22 subscribe => File["/etc/hostname"],
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",