flannel
flannel is a virtual network that gives a subnet to each host for use with container runtimes.
Version information
released Jul 28th 2016
This version is compatible with:
- Puppet Enterprise 3.x
- Puppet >=3.4.0 <5.0.0
- Debian, Ubuntu , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'cristifalcas-flannel', '1.5.0'
Learn more about managing modules with a PuppetfileDocumentation
cristifalcas/flannel — version 1.5.0 Jul 28th 2016
flannel
This module installs and configures flannel.
Usage:
include flannel
Or:
class { 'flannel':
etcd_endpoints => "http://${::fqdn}:2379",
etcd_prefix => '/coreos.com/network',
}
Or using certificates:
class { '::etcd':
ensure => 'latest',
etcd_name => $::hostname,
# clients
listen_client_urls => 'https://0.0.0.0:2379',
advertise_client_urls => "https://${::fqdn}:2379",
# clients ssl
cert_file => "${::settings::ssldir}/certs/${::clientcert}.pem",
key_file => "${::settings::ssldir}/private_keys/${::clientcert}.pem",
trusted_ca_file => "${::settings::ssldir}/certs/ca.pem",
# authorize clients
client_cert_auth => true,
# cluster
initial_cluster => $initial_cluster,
listen_peer_urls => 'https://0.0.0.0:7001',
initial_advertise_peer_urls => "https://${::fqdn}:7001",
# peers ssl
peer_cert_file => "${::settings::ssldir}/certs/${::clientcert}.pem",
peer_key_file => "${::settings::ssldir}/private_keys/${::clientcert}.pem",
peer_trusted_ca_file => "${::settings::ssldir}/certs/ca.pem",
# authorize peers
peer_client_cert_auth => true,
}
class { '::flannel':
ensure => 'latest',
etcd_endpoints => "http://${::fqdn}:2379",
etcd_keyfile => "${::settings::ssldir}/private_keys/${::clientcert}.pem",
etcd_certfile => "${::settings::ssldir}/certs/${::clientcert}.pem",
etcd_cafile => "${::settings::ssldir}/certs/ca.pem",
etcd_prefix => '/coreos.com/network',
}
Create the etcd node:
class { '::flannel::etcd_key':
network => '172.16.0.0/16',
subnetmin => '172.16.100.0',
}
Journald forward:
The class support a parameter called journald_forward_enable.
This was added because of the PIPE signal that is sent to go programs when systemd-journald dies.
For more information read here: https://github.com/projectatomic/forward-journald
Usage:
include ::forward_journald
Class['forward_journald'] -> Class['flannel']
Dependencies
- puppetlabs/stdlib (>= 4.6.0 < 5.0.0)
- cristifalcas/docker (5.x)
- cristifalcas/etcd (1.x)
Copyright (C) 2014 R. Tyler Croy <tyler@monkeypox.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.