2 changed files with 17 additions and 0 deletions
@ -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 |
Loading…
Reference in new issue