example42/puppet-network — pull request #7 by CyBeRoni (2014-03-06 22:27:32+00:00)
Title: Allow interface to be defined more than once 

Add interface to interface hash, so as to allow defining the same
interface multiple times, which is necessary for example to define
different families (inet and inet6) in Debian.

with the following in hiera:
```
network:
eth0_v4:
interface: eth0
ipaddress: 94.75.227.6
netmask: 255.255.255.192
gateway: 94.75.227.62
family: inet
eth0_v6:
interface: eth0
ipaddress: 3ffe::1
netmask: 64
```

the result would look like:
```
# cat /etc/network/interfaces
# Interface lo
auto lo
iface lo inet loopback
# Interface eth0_v4
auto eth0
iface eth0 inet static
address 1.2.3.4
netmask 255.255.255.192
gateway 1.2.3.1
# Interface eth0_v6
auto eth0
iface eth0 inet6 static
address 3ffe::1
netmask 64
```

Also, the 'allow-hotplug' bit was wrong and had a typo so would never show up in the conf.