82d0705476
This change imports all of the octavia playbooks and roles from `tripleo-common/playbooks/`. This change ensures all of the resources imported are meeting the required lint checks for import and structures the roles such that they'll automatically be installed in the `usr/share/ansible/roles/` path making them available to the rest of the tripleo ecosystem. Change-Id: Ib4ff59a4c372f95cc7a183e8ef724bb1cbf72fed Signed-off-by: Kevin Carter <kecarter@redhat.com>
63 lines
1.9 KiB
YAML
63 lines
1.9 KiB
YAML
---
|
|
|
|
- name: making sure octavia worker configuration directory exists
|
|
file:
|
|
path: "{{ octavia_confd_prefix }}/etc/octavia/conf.d/octavia-worker"
|
|
state: directory
|
|
selevel: s0
|
|
setype: svirt_sandbox_file_t
|
|
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 }}"
|
|
selevel: s0
|
|
setype: svirt_sandbox_file_t
|
|
|
|
- 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 }}"
|
|
selevel: s0
|
|
setype: svirt_sandbox_file_t
|
|
|
|
- name: making sure octavia health manager configuration directory exists
|
|
file:
|
|
path: "{{ octavia_confd_prefix }}/etc/octavia/conf.d/octavia-health-manager"
|
|
state: directory
|
|
selevel: s0
|
|
setype: svirt_sandbox_file_t
|
|
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"
|
|
selevel: s0
|
|
setype: svirt_sandbox_file_t
|
|
|
|
- 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 }}"
|