Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
1b96b89d
Commit
1b96b89d
authored
1 year ago
by
Zuul
Committed by
Gerrit Code Review
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge "openvswitch: use Ansible modules to set up bridge"
parents
e838c679
90e9dc9e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/openvswitch/tasks/post-config.yml
+22
-3
22 additions, 3 deletions
ansible/roles/openvswitch/tasks/post-config.yml
with
22 additions
and
3 deletions
ansible/roles/openvswitch/tasks/post-config.yml
+
22
−
3
View file @
1b96b89d
...
@@ -20,12 +20,31 @@
...
@@ -20,12 +20,31 @@
-
name
:
Ensuring OVS bridge is properly setup
-
name
:
Ensuring OVS bridge is properly setup
become
:
true
become
:
true
command
:
"
{{
kolla_container_engine
}}
exec
openvswitch_db
/usr/local/bin/kolla_ensure_openvswitch_configured
{{
item.0
}}
{{
item.1
}}"
kolla_toolbox
:
register
:
status
container_engine
:
"
{{
kolla_container_engine
}}"
changed_when
:
status.stdout.find('changed') != -1
user
:
root
module_name
:
openvswitch_bridge
module_args
:
bridge
:
"
{{
item.0
}}"
fail_mode
:
secure
loop
:
-
"
{{
neutron_bridge_name.split(',')
}}"
when
:
when
:
-
inventory_hostname in groups["network"]
-
inventory_hostname in groups["network"]
or (inventory_hostname in groups["compute"] and computes_need_external_bridge | bool )
or (inventory_hostname in groups["compute"] and computes_need_external_bridge | bool )
-
name
:
Ensuring OVS ports are properly setup
become
:
true
kolla_toolbox
:
container_engine
:
"
{{
kolla_container_engine
}}"
user
:
root
module_name
:
openvswitch_port
module_args
:
bridge
:
"
{{
item.0
}}"
port
:
"
{{
item.1
}}"
with_together
:
with_together
:
-
"
{{
neutron_bridge_name.split(',')
}}"
-
"
{{
neutron_bridge_name.split(',')
}}"
-
"
{{
neutron_external_interface.split(',')
}}"
-
"
{{
neutron_external_interface.split(',')
}}"
when
:
-
inventory_hostname in groups["network"]
or (inventory_hostname in groups["compute"] and computes_need_external_bridge | bool )
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment