Andrew Bogott has uploaded a new change for review.
https://gerrit.wikimedia.org/r/110918
Change subject: Configure bridges and ports for OVS
......................................................................
Configure bridges and ports for OVS
Change-Id: I4bbf3e646ce82439cf5e500b227c2246ae4a7030
---
M manifests/openstack.pp
1 file changed, 21 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/18/110918/1
diff --git a/manifests/openstack.pp b/manifests/openstack.pp
index 74a345e..fe95dc3 100644
--- a/manifests/openstack.pp
+++ b/manifests/openstack.pp
@@ -513,6 +513,27 @@
require => Package['neutron-server'],
}
+ exec { 'create_br-int':
+ unless => "ovs-vsctl br-exists br-int",
+ command => "ovs-vsctl add-br br-int",
+ require => Service['openvswitch-switch'],
+ }
+
+ exec { 'create_br-ex':
+ unless => "ovs-vsctl br-exists br-ex",
+ command => "ovs-vsctl add-br br-ex",
+ require => Service['openvswitch-switch'],
+ }
+
+ $external_interface = 'eth1'
+
+ exec { 'add-port':
+ unless => "ovs-vsctl list-ports br-ex | grep
${external_interface}",
+ command => "ovs-vsctl add-port br-ex ${external_interface}",
+ require => Service['openvswitch-switch'],
+ after => Exec['create_br-ex'],
+ }
+
file { '/etc/neutron/neutron.conf':
content =>
template("openstack/${$openstack_version}/neutron/neutron.conf.erb"),
owner => 'neutron',
--
To view, visit https://gerrit.wikimedia.org/r/110918
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4bbf3e646ce82439cf5e500b227c2246ae4a7030
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Andrew Bogott <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits