Merge "Create nova flavor for Octavia"

This commit is contained in:
Zuul 2022-01-13 19:01:04 +00:00 committed by Gerrit Code Review
commit ff532e674b
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,15 @@
---
- name: create nova flavor for Octavia
shell: |
if ! openstack flavor show octavia_{{ octavia_flavor_id }} > /dev/null; then
openstack flavor create -vv \
--id {{ octavia_flavor_id }} \
--ram {{ octavia_flavor_properties.ram }} \
--disk {{ octavia_flavor_properties.disk }} \
--vcpus {{ octavia_flavor_properties.vcpus }} \
--private \
octavia_{{ octavia_flavor_id }}
fi
run_once: true
when: octavia_manage_nova_flavor | default(false) | bool

View File

@ -5,6 +5,8 @@
- include_tasks: quotas.yml - include_tasks: quotas.yml
- include_tasks: flavor.yml
- import_tasks: check_existing_certs.yml - import_tasks: check_existing_certs.yml
when: when:
- generate_certs | bool - generate_certs | bool