Skip to content

Instantly share code, notes, and snippets.

@jhoblitt
Created July 12, 2013 19:16
Show Gist options
  • Save jhoblitt/5986988 to your computer and use it in GitHub Desktop.
Save jhoblitt/5986988 to your computer and use it in GitHub Desktop.
network_config hypervisor example
network_config { 'br13':
ensure => 'present',
family => 'inet',
method => 'static',
onboot => 'true',
options => {'DELAY' => '0', 'MTU' => '1500', 'TYPE' => 'Bridge'},
}
network_config { 'br26':
ensure => 'present',
family => 'inet',
ipaddress => 'x.x.x.x',
method => 'static',
netmask => '255.255.255.0',
onboot => 'true',
options => {'DELAY' => '0', 'MTU' => '1500', 'TYPE' => 'Bridge'},
}
network_config { 'br27':
ensure => 'present',
family => 'inet',
method => 'static',
onboot => 'true',
options => {'DELAY' => '0', 'MTU' => '9000', 'TYPE' => 'Bridge'},
}
network_config { 'br28':
ensure => 'present',
family => 'inet',
method => 'static',
onboot => 'true',
options => {'DELAY' => '0', 'MTU' => '9000', 'TYPE' => 'Bridge'},
}
network_config { 'br6':
ensure => 'present',
family => 'inet',
method => 'static',
onboot => 'true',
options => {'DELAY' => '0', 'MTU' => '1500', 'TYPE' => 'Bridge'},
}
network_config { 'eth0':
ensure => 'present',
family => 'inet',
method => 'static',
onboot => 'true',
options => {'BRIDGE' => 'br26', 'HWADDR' => '00:25:90:60:AE:AA', 'IPV6INIT' => 'no', 'MTU' => '9000', 'NM_CONTROLLED' => 'no', 'TYPE' => 'Ethernet'},
}
network_config { 'eth0.13':
ensure => 'present',
family => 'inet',
method => 'static',
onboot => 'true',
options => {'BRIDGE' => 'br13', 'HWADDR' => '00:25:90:60:AE:AA', 'IPV6INIT' => 'no', 'MTU' => '9000', 'NM_CONTROLLED' => 'no', 'TYPE' => 'Ethernet', 'VLAN' => 'yes'},
}
network_config { 'eth0.27':
ensure => 'present',
family => 'inet',
method => 'static',
onboot => 'true',
options => {'BRIDGE' => 'br27', 'HWADDR' => '00:25:90:60:AE:AA', 'IPV6INIT' => 'no', 'MTU' => '9000', 'NM_CONTROLLED' => 'no', 'TYPE' => 'Ethernet', 'VLAN' => 'yes'},
}
network_config { 'eth0.28':
ensure => 'present',
family => 'inet',
method => 'static',
onboot => 'true',
options => {'BRIDGE' => 'br28', 'HWADDR' => '00:25:90:60:AE:AA', 'IPV6INIT' => 'no', 'MTU' => '9000', 'NM_CONTROLLED' => 'no', 'TYPE' => 'Ethernet', 'VLAN' => 'yes'},
}
network_config { 'eth0.6':
ensure => 'present',
family => 'inet',
method => 'static',
onboot => 'true',
options => {'BRIDGE' => 'br6', 'HWADDR' => '00:25:90:60:AE:AA', 'IPV6INIT' => 'no', 'MTU' => '9000', 'NM_CONTROLLED' => 'no', 'TYPE' => 'Ethernet', 'VLAN' => 'yes'},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment