blob: f3325f4bb37bf7935a2e8432d7b7552817a02fd8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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",
# }
}
}
|