Skip to content

jamesps-ebi/puppet-netplan

 
 

Repository files navigation

puppet-netplan

Table of Contents

  1. Description
  2. Requirements
  3. Usage
  4. Limitations - OS compatibility
  5. Miscellaneous

Description

The netplan module manages and applies netplan configuration.

Requirements

  • Puppet >= 4.0
  • puppetlabs/stdlib
  • puppetlabs/concat

Usage

Example with include / Hiera

puppet code:

include netplan

Hiera yaml:

netplan::version: 2
netplan::renderer: networkd
netplan::purge_config: true
netplan::ethernets:
    eno1:
      dhcp4: yes
      addresses:
        - 192.168.0.125/16
      nameservers:
        search: [foo.local, bar.local]
        addresses: [8.8.8.8, 4.4.4.4]
      routes:
        - to: 10.10.0.1/16
          via: 10.20.0.1

Example using class

  class { 'netplan':
    config_file   => '/etc/netplan/01-custom.yaml',
    ethernets     => {
      'ens5' => {
        'dhcp4' => false
      }
    },
    bridges       => {
       'br0' => {
          'dhcp4' => true,
          'interfaces' => [ens5]
       }
    },
    netplan_apply => true,
  }

Limitations

This module was only tested on Ubuntu 18.04.

Miscellaneous

The documentation of all parameters originates from the Netplan Documentation

About

Netplan Module for Ubuntu 18.04.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Puppet 90.9%
  • Ruby 8.9%
  • Dockerfile 0.2%