Use ansible openstack collection
Depends-On: https://review.opendev.org/718431 Depends-On: https://review.opendev.org/718362 Change-Id: I84300d787610ed185b6755f625eea91135ce9cde
This commit is contained in:
parent
d739992a99
commit
4da762dd13
@ -47,7 +47,7 @@
|
||||
- octavia_download_result is changed
|
||||
block:
|
||||
- name: Get current image id
|
||||
os_image_info:
|
||||
openstack.cloud.os_image_info:
|
||||
auth:
|
||||
auth_url: "{{ keystone_service_adminurl }}"
|
||||
username: "{{ octavia_service_user_name }}"
|
||||
@ -80,7 +80,7 @@
|
||||
amphora-x64-haproxy
|
||||
|
||||
- name: Delete old image from glance
|
||||
os_image:
|
||||
openstack.cloud.os_image:
|
||||
auth:
|
||||
auth_url: "{{ keystone_service_adminurl }}"
|
||||
username: "{{ octavia_service_user_name }}"
|
||||
|
@ -25,7 +25,7 @@
|
||||
block:
|
||||
- name: Create Octavia Flavor
|
||||
run_once: true
|
||||
os_nova_flavor:
|
||||
openstack.cloud.os_nova_flavor:
|
||||
auth:
|
||||
auth_url: "{{ keystone_service_adminurl }}"
|
||||
username: "{{ octavia_service_user_name }}"
|
||||
|
@ -25,7 +25,7 @@
|
||||
block:
|
||||
- name: Create mgmt network
|
||||
run_once: true
|
||||
os_network:
|
||||
openstack.cloud.os_network:
|
||||
auth:
|
||||
auth_url: "{{ keystone_service_adminurl }}"
|
||||
username: "{{ octavia_service_user_name }}"
|
||||
@ -50,7 +50,7 @@
|
||||
|
||||
- name: Ensure mgmt subnet exists
|
||||
run_once: true
|
||||
os_subnet:
|
||||
openstack.cloud.os_subnet:
|
||||
auth:
|
||||
auth_url: "{{ keystone_service_adminurl }}"
|
||||
username: "{{ octavia_service_user_name }}"
|
||||
|
@ -47,7 +47,7 @@
|
||||
- octavia_nova_flavor_uuid is not defined
|
||||
block:
|
||||
- name: Get Octavia flavor details
|
||||
os_flavor_info:
|
||||
openstack.cloud.os_flavor_info:
|
||||
auth:
|
||||
auth_url: "{{ keystone_service_adminurl }}"
|
||||
username: "{{ octavia_service_user_name }}"
|
||||
@ -75,7 +75,7 @@
|
||||
- octavia_neutron_management_network_name is defined
|
||||
block:
|
||||
- name: Get octavia management network details
|
||||
os_networks_info:
|
||||
openstack.cloud.os_networks_info:
|
||||
auth:
|
||||
auth_url: "{{ keystone_service_adminurl }}"
|
||||
username: "{{ octavia_service_user_name }}"
|
||||
|
@ -24,7 +24,7 @@
|
||||
ansible_python_interpreter: "{{ octavia_service_setup_host_python_interpreter }}"
|
||||
block:
|
||||
- name: Setup the service project quota
|
||||
os_quota:
|
||||
openstack.cloud.os_quota:
|
||||
cloud: default
|
||||
interface: admin
|
||||
name: "{{ octavia_service_project_name }}"
|
||||
@ -38,7 +38,7 @@
|
||||
port: "{{ octavia_num_ports }}"
|
||||
|
||||
- name: Create Octavia security group
|
||||
os_security_group:
|
||||
openstack.cloud.os_security_group:
|
||||
auth:
|
||||
auth_url: "{{ keystone_service_adminurl }}"
|
||||
username: "{{ octavia_service_user_name }}"
|
||||
@ -57,7 +57,7 @@
|
||||
delay: 10
|
||||
|
||||
- name: Create security group rule for agent
|
||||
os_security_group_rule:
|
||||
openstack.cloud.os_security_group_rule:
|
||||
auth:
|
||||
auth_url: "{{ keystone_service_adminurl }}"
|
||||
username: "{{ octavia_service_user_name }}"
|
||||
@ -79,7 +79,7 @@
|
||||
delay: 10
|
||||
|
||||
- name: Create security group rule for ssh
|
||||
os_security_group_rule:
|
||||
openstack.cloud.os_security_group_rule:
|
||||
auth:
|
||||
auth_url: "{{ keystone_service_adminurl }}"
|
||||
username: "{{ octavia_service_user_name }}"
|
||||
@ -103,7 +103,7 @@
|
||||
- octavia_ssh_enabled | bool
|
||||
|
||||
- name: Create security group rule for icmp
|
||||
os_security_group_rule:
|
||||
openstack.cloud.os_security_group_rule:
|
||||
auth:
|
||||
auth_url: "{{ keystone_service_adminurl }}"
|
||||
username: "{{ octavia_service_user_name }}"
|
||||
|
Loading…
Reference in New Issue
Block a user