From 19229fcee52b1843341efcdba5715d246dd77ab8 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 18 Apr 2010 15:17:59 -0300 Subject: Adding hosts class --- manifests/subsystems/hosts.pp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 manifests/subsystems/hosts.pp (limited to 'manifests/subsystems/hosts.pp') 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", + } +} -- cgit v1.2.3