diff --git a/puppet/dist/host/stentyst/etc/network/interfaces b/puppet/dist/host/stentyst/etc/network/interfaces new file mode 100644 index 0000000000000000000000000000000000000000..9b7c695bbb9b5588d6e80ab4b20953ad8428db5e --- /dev/null +++ b/puppet/dist/host/stentyst/etc/network/interfaces @@ -0,0 +1,14 @@ +# Loopback. +auto lo +iface lo inet loopback + +# Outside. +auto eth0 +iface eth0 inet dhcp + +# Inside. +auto eth1 +iface eth1 inet static + address 192.168.10.2 + netmask 255.255.255.0 + broadcast 192.168.10.255 diff --git a/puppet/fileserver.conf b/puppet/fileserver.conf index f1bff6ae2826760e7ccb04afa4580f4d78fb73b1..8095ba06e35953e1ca293a4dd4fae22a4658e8ad 100644 --- a/puppet/fileserver.conf +++ b/puppet/fileserver.conf @@ -2,3 +2,7 @@ path /etc/puppet/puppet/dist allow 192.168.10.0/24 allow 127.0.0.1/8 +[host] +path /etc/puppet/puppet/host/%h +allow 192.168.10.0/24 +allow 127.0.0.1/8 diff --git a/puppet/master/manifests/site.pp b/puppet/master/manifests/site.pp index 72fba7ec19b5dc04b020f98ff1cd1dfd02f3fbdd..7bcf65fa7eebf54ecc21eeaa8af4e4750459e879 100644 --- a/puppet/master/manifests/site.pp +++ b/puppet/master/manifests/site.pp @@ -6,4 +6,12 @@ node default { node stentyst { include puppet + file { "/etc/network/interfaces": + source => "puppet:///host/etc/network/interfaces", + notify => service[networking], + } + + service { networking: + ensure => running, + } }