diff options
Diffstat (limited to 'manifests/subsystems/hosts.pp')
-rw-r--r-- | manifests/subsystems/hosts.pp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/manifests/subsystems/hosts.pp b/manifests/subsystems/hosts.pp new file mode 100644 index 0000000..223c523 --- /dev/null +++ b/manifests/subsystems/hosts.pp @@ -0,0 +1,38 @@ +class hosts { + host { "$hostname": + ensure => present, + ip => "$ipaddress", + alias => [ "$fqdn" ], + } + + host { "ip6-localhost": + ensure => present, + ip => "::1", + alias => [ "ip6-loopback" ], + } + + host { "ip6-localnet": + ensure => present, + ip => "fe00::0", + } + + host { "ip6-mcastprefix": + ensure => present, + ip => "ff00::0", + } + + host { "ip6-allnodes": + ensure => present, + ip => "ff02::1", + } + + host { "ip6-allrouters": + ensure => present, + ip => "ff02::2", + } + + host { "ip6-allhosts": + ensure => present, + ip => "ff02::3", + } +} |