import "subsystems/pam.pp"
import "subsystems/xorg.pp"
import "subsystems/modprobe.pp"
+import "subsystems/hosts.pp"
# Import nodo classes
import "nodo.pp"
include motd
include utils
include cron
+ include hosts
# Set timezone and ntp config
#
content => "$fqdn\n",
}
- host { "$hostname":
- ensure => present,
- ip => "$ipaddress",
- alias => [ "$fqdn" ],
- }
-
file { "/etc/rc.local":
source => "puppet://$server/modules/nodo/etc/rc.local",
owner => "root",
--- /dev/null
+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",
+ }
+}