Browse Source

Merge "Create nova flavor for Octavia"

changes/88/824688/1
Zuul 4 months ago committed by Gerrit Code Review
parent
commit
ff532e674b
  1. 15
      tripleo_ansible/roles/octavia_overcloud_config/tasks/flavor.yml
  2. 2
      tripleo_ansible/roles/octavia_overcloud_config/tasks/main.yml

15
tripleo_ansible/roles/octavia_overcloud_config/tasks/flavor.yml

@ -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

2
tripleo_ansible/roles/octavia_overcloud_config/tasks/main.yml

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

Loading…
Cancel
Save