Skip to content
Snippets Groups Projects
Commit 7bc9e4e2 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Attempt to configure /etc/network/interfaces.

parent d8f42476
No related branches found
No related tags found
No related merge requests found
# 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
...@@ -2,3 +2,7 @@ ...@@ -2,3 +2,7 @@
path /etc/puppet/puppet/dist path /etc/puppet/puppet/dist
allow 192.168.10.0/24 allow 192.168.10.0/24
allow 127.0.0.1/8 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
...@@ -6,4 +6,12 @@ node default { ...@@ -6,4 +6,12 @@ node default {
node stentyst { node stentyst {
include puppet include puppet
file { "/etc/network/interfaces":
source => "puppet:///host/etc/network/interfaces",
notify => service[networking],
}
service { networking:
ensure => running,
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment