Forge Home


A module for managing linux network interfaces.


6,653 latest version

4.9 quality score

Version information

  • 0.0.2 (latest)
  • 0.0.1
released Mar 28th 2016
This version is compatible with:
  • Ubuntu

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'lexance-networking', '0.0.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add lexance-networking
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install lexance-networking --version 0.0.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



lexance/networking — version 0.0.2 Mar 28th 2016

Networking Puppet Module

Manage (dualstack-)network interfaces.


class { 'networking':
    inet6_loopback => true,
    interfaces => {
      'test0' => {
        auto  => true,
        mac  => '00:25:90:f8:sc:ec',
        inet => {
          method => 'static',
          family_settings => {
            address        => '',
            network        => '',
            netmask        => '27',
            gateway        => ''
        inet6 => {
          method => 'static',
          family_settings => {
            address     => '2a01:4f8:111:439a:0:0:0:1',
            netmask     => '96',
            gateway     => 'fe80::1'

Specifing inet6_loopback with true does result in a iface lo inet6 loopback line which is required for having the IPv6 applied to the interface. Read more...

This module does install the iftab package on your system and so u should be able to rename your interfaces. If u want to do so, specifiy the MAC address. If u dont specify a MAC while giving non standard interface names like eth0 ur network service wont start.

Specifing inet or inet6 is optional.