Forge Home

networkmanager

Puppet NetworkManager module

19,649 downloads

8,696 latest version

4.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.4.0 (latest)
  • 0.3.17
  • 0.3.16
  • 0.3.15
  • 0.3.14
  • 0.3.13
  • 0.3.12
  • 0.3.11
  • 0.3.10
  • 0.3.9
  • 0.3.8
  • 0.3.7
  • 0.3.6
  • 0.3.5
  • 0.3.4
  • 0.3.3
  • 0.3.2
  • 0.2.1
  • 0.2.0
  • 0.1.1
  • 0.1.0
released Aug 18th 2016

Start using this module

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

Add this module to your Puppetfile:

mod 'camptocamp-networkmanager', '0.4.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add camptocamp-networkmanager
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install camptocamp-networkmanager --version 0.4.0

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.

Download

Documentation

camptocamp/networkmanager — version 0.4.0 Aug 18th 2016

NetworkManager

Puppet Forge Version Puppet Forge Downloads Build Status Gemnasium By Camptocamp

Overview

Manage NetworkManager connections with Puppet.

Usage

include ::networkmanager

$xmlconfig = '...XML describing AnyConnect Profile...'

networkmanager::openconnect { 'My OpenConnect Connection 0':
  user      => 'foo',
  gateway   => '127.0.0.1',
  authtype  => 'password',
  xmlconfig => $xmlconfig,
}

networkmanager::openvpn { 'My OpenVPN Connection 0':
  user            => 'foo',
  ta_dir          => 1,
  connection_type => 'password',
  remote          => '127.0.0.1',
  comp_lzo        => 'yes',
  ca              => '/path/to/my/ca.crt',
  ta              => '/path/to/my/ta.key',
}

networkmanager::wifi { 'My Wifi Connection 0':
  user               => 'foo',
  ssid               => 'mySSID',
  eap                => 'ttls',
  phase2_auth        => 'mschapv2',
  password_raw_flags => 1,
}

Reference

Classes:

Resources:

###Class: networkmanager

####enable Should the service be enabled during boot time ? Defaults to true.

####openconnect_connections A hash of OpenConnect connections to declare.

####openvpn_connections A hash of OpenVPN connections to declare.

####wifi_connections A hash of Wifi connections to declare.

####start Should the service be started by Puppet. Defaults to true.

####version The package version to install. Defaults to present.

####gui The gui packages to install ('gnome', 'kde', or undef). Defaults to undef.

###resource: networkmanager::openconnect

####authtype Authentication type.

####autoconnect Whether to autoconnect the VPN.

####ensure Should the connection be present or absent. Defaults to present.

####gateway The remote host.

####id The id of the VPN connection, defaults to name.

####ipv4_method IPv4 method. Defaults to auto.

####ipv6_method IPv6 method. Defaults to auto.

####never_default Do not use VPN connection as default route. Defaults to true.

####user The user who can use the connection.

####uuid The UUID of the connection. Default to MD5 of name.

####xmlconfig The xmlconfig for the VPN.

###resource: networkmanager::openvpn

####autoconnect Whether to autoconnect the VPN.

####ca Path to the CA certificate.

####comp_lzo Whether to use LZO compression.

####connection_type The connection type.

####ensure Should the connection be present or absent. Defaults to present.

####id The id of the VPN connection. Defaults to name.

####ipv4_method IPv4 method. Defaults to auto.

####never_default Do not use VPN connection as default route. Defaults to true.

####password_flags The password flags.

####remote The remote host.

####routes

####ta Path to the TA key.

####ta_dir Whether to use a ta directory.

####user The user who can use the connection.

####uuid The UUID of the connection. Default to MD5 of name.

###resource: networkmanager::wifi

####auth_alg

####autoconnect

####eap

####ensure Should the connection be present or absent. Defaults to present.

####ipv4_method IPv4 method. Defaults to auto.

####ipv6_method IPv6 method. Defaults to auto.

####key_mgmt

####mac_address

####mode

####nma_ca_cert_ignore

####password_raw_flags

####phase2_auth

####security

####ssid The ssid of the connection.

####user The user who can use the connection.

####uuid The UUID of the connection. Default to MD5 of name.