networkmanager

Puppet NetworkManager module
Camptocamp

Camptocamp

camptocamp

16,463 downloads

7,253 latest version

4.1 quality score

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 Jul 3rd 2019

Start using this module

Documentation

camptocamp/networkmanager — version 0.4.0 Jul 3rd 2019

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.