Skip to content
A Puppet module that provides a custom type for network device configuration and management
Ruby Shell
Pull request Compare This branch is 1 commit ahead, 36 commits behind blkperl:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib/puppet
manifests
puppet_spec
spec/unit/puppet/provider/network_interface
.gitignore
README.markdown

README.markdown

Puppet Network Management Module

Overview

This module provides a type for network device configuration and management

Soure code

The source code for this module is available online at http://github.com/blkperl/puppet-network.git

You can checkout the source code by installing the git distributed version control system and running:

git clone git://github.com/blkperl/puppet-network.git

Usage

Currently only supports redhat based OS's

This is the full specification::

# Device configuration network_interface { "eth0": bootproto => none | static | dhcp
onboot => yes | no
network => XXX.XXX.XXX.XXX netmask => 255.255.255.0
broadcast => XXX.XXX.XXX.XXX ipaddr => XXX.XXX.XXX.XXX
userctl => yes | no gateway => XXX.XXX.XXX.XXX
hwaddr => XX:XX:XX:XX:XX:XX domain => example.domain.com state => up | down noconfig => true | false }

  • # ensure => up, implies onboot => yes
  • # ensure => down, implies onboot => no

TODO

  • Implement debian provider
  • Add support for wireless interfaces
  • Add support for static routes
  • Add support for vlan tagging
  • Add support for bridging
  • More puppet-spec tests!
  • Unit tests

Testing

  • 'cd puppet_spec'
  • configure local_setup.sh
  • run './puppet_spec'

Known Bugs

Something went wrong with that request. Please try again.