Created
October 24, 2014 14:53
-
-
Save alvagante/b8f67647c78590f3e67a to your computer and use it in GitHub Desktop.
Hiera examples for example42/puppet-network
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Single interface with hostname | |
--- | |
network::hostname: 'host.my.domain' | |
network::interfaces_hash: | |
eth0: | |
ipaddress: 172.17.1.10 | |
broadcast: 172.17.1.255 | |
netmask: 255.255.245.0 | |
gateway: 172.17.1.1 | |
# Bond interface (here with using a top scope $net_prefix variable) | |
--- | |
network::interfaces_hash: | |
eth0: | |
method: manual | |
bond_master: 'bond3' | |
allow_hotplug: 'eth0' | |
manage_order: '08' | |
eth1: | |
method: manual | |
bond_master: 'bond3' | |
allow_hotplug: 'eth1' | |
manage_order: '08' | |
bond3: | |
ipaddress: "%{net_prefix}.28.10" | |
netmask: '255.255.248.0' | |
gateway: "%{net_prefix}.24.1" | |
dns_nameservers: "8.8.8.8 8.8.4.4" | |
dns_search: 'my.domain' | |
bond_mode: 'balance-alb' | |
bond_miimon: '100' | |
bond_slaves: 'none' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment