chef-lctp/site-cookbooks/lctp-network
2014-01-27 11:38:48 +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 lctp_network: set static dns settings in /etc/resolvconf/resolv.conf.d/head 2014-01-27 11:37:03 +01:00
templates/default lctp-network::router: namespace attributes 2014-01-27 11:38:15 +01:00
metadata.rb get network working 2014-01-27 11:13:56 +01:00
README.md add documentation 2014-01-27 11:38:48 +01:00

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