class base_installation::system_config inherits base_installation { unless empty($base_installation::system_timezone) { file { "/etc/localtime": ensure => "link", target => "../usr/share/zoneinfo/$base_installation::system_timezone" } } unless empty($base_installation::system_hostname) { file { '/etc/hostname': content => "$base_installation::system_hostname\n", } # TODO: find a way to ensure that /etc/hostname doesn't change # exec { "set_hostname": # command => "/usr/bin/systemd-firstboot --hostname=$base_installation::system_hostname", # creates => "/etc/hostname", # } } }