From 7bc9e4e2cc2c47739ea9f76f04f02e06d25228c5 Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Sun, 18 Nov 2007 18:22:58 +0000 Subject: [PATCH] Attempt to configure /etc/network/interfaces. --- puppet/dist/host/stentyst/etc/network/interfaces | 14 ++++++++++++++ puppet/fileserver.conf | 4 ++++ puppet/master/manifests/site.pp | 8 ++++++++ 3 files changed, 26 insertions(+) create mode 100644 puppet/dist/host/stentyst/etc/network/interfaces diff --git a/puppet/dist/host/stentyst/etc/network/interfaces b/puppet/dist/host/stentyst/etc/network/interfaces new file mode 100644 index 0000000..9b7c695 --- /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 f1bff6a..8095ba0 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 72fba7e..7bcf65f 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, + } } -- GitLab