Browse Source

extending pillar example for network.interfaces

tags/v0.1
Arnold Bechtoldt 10 years ago
parent
commit
8f719168be
1 changed files with 34 additions and 0 deletions
  1. +34
    -0
      pillar.example.sls

+ 34
- 0
pillar.example.sls View File

network: network:
interfaces: interfaces:
{# Basic Setup #}
- name: eth0 - name: eth0
proto: dhcp proto: dhcp
type: eth type: eth
netmask: 255.255.255.0 netmask: 255.255.255.0
gateway: 192.168.2.1 gateway: 192.168.2.1
- name: eth2 - name: eth2

{# Bridge Setup #}
- name: eth0
proto: static
type: eth
ipaddr: 172.16.34.10
netmask: 255.255.255.0
post_up_cmds:
- brctl addif br0 eth0
pre_down_cmds:
- brctl delif br0 eth0
- name: br0
proto: static
type: bridge
ipaddr: 172.16.34.10
netmask: 255.255.255.0
delay: 0
ports: eth0
stp: off
maxwait: 0
fd: 0
pre_up_cmds:
- brctl addbr br0
post_down_cmds:
- brctl delbr br0
- name: eth1
proto: static
type: eth
ipaddr: 192.168.2.31
netmask: 255.255.255.0
gateway: 192.168.2.1

resolver: resolver:
domain: domain.local domain: domain.local
search: search:
options: options:
- rotate - rotate
- timeout:1 - timeout:1

hosts: hosts:
- name: example.com - name: example.com
ip: 192.168.2.100 ip: 192.168.2.100

Loading…
Cancel
Save