18 lines
573 B
Puppet
18 lines
573 B
Puppet
$bridges = ['br-floating', 'br-ex']
|
|
|
|
$patch_jacks_names = get_pair_of_jack_names($bridges)
|
|
|
|
exec { 'add-br-floating':
|
|
command => 'ovs-vsctl add-br br-floating',
|
|
unless => 'ovs-vsctl br-exists br-floating',
|
|
path => '/usr/bin',
|
|
} ->
|
|
exec { 'set-br-floating-id':
|
|
command => 'ovs-vsctl br-set-external-id br-floating bridge-id br-floating',
|
|
path => '/usr/bin',
|
|
} ->
|
|
exec { 'add-floating-patch':
|
|
command => "ovs-vsctl --may-exist add-port br-floating ${patch_jacks_names[0]} -- set Interface ${patch_jacks_names[0]} type=internal",
|
|
path => '/usr/bin',
|
|
}
|