public
Description: Puppet module for managing network interfaces
Homepage:
Clone URL: git://github.com/ohlol/puppet-network.git
ohlol (author)
Mon Jun 15 15:25:18 -0700 2009
commit  167055ab99b9b65c619ff036e6199d17332b8950
tree    a83fec6bc90f9175b00d623055afcc39529d13a8
parent  739358eae30af22c33d21c8f9e24e5f341c6bf32
name age message
file LICENSE Mon Jun 15 15:03:58 -0700 2009 Initial commit [ohlol]
file README.markdown Mon Jun 15 15:25:18 -0700 2009 Again, fixing markdown for README. [ohlol]
directory files/ Mon Jun 15 15:03:58 -0700 2009 Initial commit [ohlol]
directory manifests/ Mon Jun 15 15:03:58 -0700 2009 Initial commit [ohlol]
directory templates/ Mon Jun 15 15:03:58 -0700 2009 Initial commit [ohlol]
README.markdown

Usage

node "server.domain.com" inherits basenode {
    # physical interface
    network::interface { "eth0":
        hostname => "server.domain.com",
        ipaddress => "1.2.3.4",
        gateway => "1.2.3.1",
        netmask => "255.255.255.0",
        network => "1.2.3.0",
        broadcast => "1.2.3.255",
        macaddress => "ff:ff:ff:ff:ff:ff",
        ensure => up
    }

    # aliased interface
    network::alias { "eth0:1":
        ipaddress => "1.2.3.5",
        netmask => "255.255.255.0",
        network => "1.2.3.0",
        broadcast => "1.2.3.255",
        ensure => up
    }
}

Miscellaneous Notes

Probably only works with RH-ish systems.