Changeset 545
- Timestamp:
- Feb 27, 2010, 1:19:45 AM (14 years ago)
- Location:
- trunk/puppet/modules/puppet-network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/puppet/modules/puppet-network/README
r540 r545 12 12 13 13 network::interface { "eth0" : 14 address => "10.11.9.8",15 broadcast => "10.11.9.255",16 netmask => "255.255.255.0",14 address => "10.11.9.8", 15 broadcast => "10.11.9.255", 16 netmask => "255.255.255.0", 17 17 parameters => "gateway 10.11.9.1\n dns-search mydomain.mine.nu\n dns-nameservers 10.11.9.1", 18 18 } -
trunk/puppet/modules/puppet-network/manifests/init.pp
r510 r545 11 11 OpenBSD: { 12 12 network::interface::openbsd { $name: 13 address => $address,14 netmask => $netmask,15 broadcast => $broadcast,13 address => $address, 14 netmask => $netmask, 15 broadcast => $broadcast, 16 16 parameters => $parameters, 17 17 } … … 19 19 Debian: { 20 20 network::interface::debian { $name: 21 address => $address,22 netmask => $netmask,23 broadcast => $broadcast,21 address => $address, 22 netmask => $netmask, 23 broadcast => $broadcast, 24 24 parameters => $parameters, 25 25 } … … 27 27 Ubuntu: { 28 28 network::interface::debian { $name: 29 address => $address,30 netmask => $netmask,31 broadcast => $broadcast,29 address => $address, 30 netmask => $netmask, 31 broadcast => $broadcast, 32 32 parameters => $parameters, 33 33 } … … 44 44 OpenBSD: { 45 45 network::interface { $name: 46 address => $address,47 netmask => $netmask,48 broadcast => $broadcast,46 address => $address, 47 netmask => $netmask, 48 broadcast => $broadcast, 49 49 parameters => "vlan $vtag vlandev $device $parameters" 50 50 } -
trunk/puppet/modules/puppet-network/manifests/os/debian.pp
r538 r545 1 1 class network::debian { 2 2 exec { "networking": 3 command => "/usr/sbin/invoke-rc.d networking restart",4 logoutput => true,3 command => "/usr/sbin/invoke-rc.d networking restart", 4 logoutput => true, 5 5 refreshonly => true, 6 6 } 7 7 8 8 package {"resolvconf": 9 ensure 9 ensure => installed, 10 10 } 11 11 … … 21 21 exec { "add an interface": 22 22 command => "/bin/echo '${content}' >> $file", 23 unless => "/bin/grep -q '^iface[[:space:]]*${name}[[:space:]]' $file",24 notify => Exec["networking"]23 unless => "/bin/grep -q '^iface[[:space:]]*${name}[[:space:]]' $file", 24 notify => Exec["networking"] 25 25 } 26 26 -
trunk/puppet/modules/puppet-network/manifests/os/openbsd.pp
r510 r545 1 1 class network::openbsd { 2 2 exec { "netstart": 3 command => "/bin/sh /etc/netstart",4 logoutput => true,3 command => "/bin/sh /etc/netstart", 4 logoutput => true, 5 5 refreshonly => true, 6 6 }
Note: See TracChangeset
for help on using the changeset viewer.