42 lines
1.7 KiB
YAML
42 lines
1.7 KiB
YAML
---
|
|
- name: making sure octavia worker configuration directory exists
|
|
file: path="{{ octavia_confd_prefix }}/etc/octavia/conf.d/octavia-worker" state=directory
|
|
become: true
|
|
- name: setting [controller_worker]/amp_boot_network_list
|
|
become: true
|
|
become_user: root
|
|
ini_file:
|
|
path: "{{ octavia_confd_prefix }}/etc/octavia/conf.d/common/post-deploy.conf"
|
|
section: controller_worker
|
|
option: amp_boot_network_list
|
|
value: "{{ lb_mgmt_net_id }}"
|
|
- name: setting [controller_worker]/amp_secgroup_list
|
|
become: true
|
|
become_user: root
|
|
ini_file:
|
|
path: "{{ octavia_confd_prefix }}/etc/octavia/conf.d/common/post-deploy.conf"
|
|
section: controller_worker
|
|
option: amp_secgroup_list
|
|
value: "{{ lb_mgmt_secgroup_id }}"
|
|
- name: making sure octavia health manager configuration directory exists
|
|
file: path="{{octavia_confd_prefix}}/etc/octavia/conf.d/octavia-health-manager" state=directory
|
|
become: true
|
|
- name: create octavia health manager configuration file
|
|
become: true
|
|
become_user: root
|
|
template:
|
|
dest: "{{octavia_confd_prefix}}/etc/octavia/conf.d/octavia-health-manager/manager-post-deploy.conf"
|
|
src: "manager-post-deploy.conf.j2"
|
|
- name: gather facts about the service project
|
|
shell: |
|
|
openstack project show "{{ auth_project_name }}" -c id -f value
|
|
register: project_id_result
|
|
- name: setting [controller_worker]/amp_image_owner_id
|
|
become: true
|
|
become_user: root
|
|
ini_file:
|
|
path: "{{ octavia_confd_prefix }}/etc/octavia/conf.d/common/post-deploy.conf"
|
|
section: controller_worker
|
|
option: amp_image_owner_id
|
|
value: "{{ project_id_result.stdout }}"
|