Puppet Class: hostname
- Defined in:
-
manifests/init.pp
Summary
Set hostname and related settings
Overview
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'manifests/init.pp', line 6
class hostname (
String $hostname,
Optional[String] $domain = undef
) {
case $facts['os']['family'] {
'Darwin': { include hostname::darwin }
'Archlinux': { include hostname::systemd }
'Arch': { include hostname::systemd }
'RedHat': { include hostname::systemd }
'Debian': { include hostname::systemd }
default: { fail("Hostname module does not support ${facts['os']['family']}") }
}
}
|