diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-04-18 15:17:59 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-04-18 15:17:59 -0300 |
commit | 19229fcee52b1843341efcdba5715d246dd77ab8 (patch) | |
tree | e7c92ae1c66e41d6736718d7e1c13be014bce2c5 /manifests/subsystems/hosts.pp | |
parent | afe483773913f207ffbf2693f36bf852141da317 (diff) | |
download | puppet-nodo-19229fcee52b1843341efcdba5715d246dd77ab8.tar.gz puppet-nodo-19229fcee52b1843341efcdba5715d246dd77ab8.tar.bz2 |
Adding hosts class
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", + } +} |