chef-lctp/site-cookbooks/lctp-network
Jörg Thalheim dc9f7a022f presentation: vorletzter Schliff 2014-03-03 00:00:40 +01:00
..
attributes lctp-network::router: namespace attributes 2014-01-27 11:38:15 +01:00
files/default get network working 2014-01-27 11:13:56 +01:00
recipes presentation: vorletzter Schliff 2014-03-03 00:00:40 +01:00
templates/default lctp-network::router: namespace attributes 2014-01-27 11:38:15 +01:00
README.md add documentation 2014-01-27 11:38:48 +01:00
metadata.rb get network working 2014-01-27 11:13:56 +01:00

README.md

Description

wrapper cookbook around network_interfaces, to allow set up network interfaces via node attributes

Attributes

default.lctp_network.interfaces, hash of available interfaces (see usage), default is {} default.lctp_network.domain_servers, statically set domain servers, default is [] default.lctp_network.search_domains, statically set search domains, default is []

default.lctp_network.router.gateway_device = "eth0"

Usage

default

example to set a static ip, with custom dns server and search domain:

  node.default["lctp_network"]["interfaces"] = {
    eth0: {
     dns_server: "127.0.0.1",
     dns_search: "intern",
     static_ip: "172.28.128.1",
     netmask: "255.255.255.0"
    },
  }

example to enable dhcp for a device:

  node.default["lctp_network"]["interfaces"] = {
    eth0: { },
  }

router

Enable IP Forwarding and Masquerading via iptables