
Create a set of roles to be composed into a new infrared plugin. The final goal for these roles is to be used for either downstream and upstream CI Change-Id: I48d5f500c2e694c3f94ee497a0df1d92b6c411b3
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
---
|
|
|
|
- name: "list configuration options"
|
|
set_fact:
|
|
conf_yaml: |
|
|
{% for section, options in (sections.items() | sort) %}
|
|
{% for option, value in (options.items() | sort) %}
|
|
- section: "{{ section }}"
|
|
option: "{{ option }}"
|
|
value: "{{ value }}"
|
|
{% endfor %}
|
|
{% endfor %}
|
|
vars:
|
|
sections: "{{ default_conf | combine(conf, recursive=True) }}"
|
|
|
|
|
|
- name: "show tobiko configuration"
|
|
debug:
|
|
msg: |
|
|
Tobiko configuration:
|
|
{{ conf_yaml }}
|
|
|
|
|
|
- name: "generate '{{ conf_file }}' file"
|
|
ini_file:
|
|
path: "{{ conf_file }}"
|
|
section: "{{ item.section }}"
|
|
option: "{{ item.option }}"
|
|
value: "{{ item.value }}"
|
|
mode: '0644'
|
|
when:
|
|
- item.section
|
|
- item.option
|
|
- item.value
|
|
loop: "{{ conf_yaml | from_yaml | list }}"
|
|
|
|
|
|
- name: "read {{ conf_file }} file"
|
|
slurp:
|
|
src: "{{ conf_file }}"
|
|
register: read_conf_file
|
|
|
|
|
|
- name: "show {{ conf_file }} file"
|
|
debug:
|
|
msg: "{{ read_conf_file['content'] | b64decode }}"
|
|
|
|
|
|
# TODO (fressi): move it to a Tobiko python fixture
|
|
- name: Set permissive quotas for instances and cores
|
|
shell: |
|
|
source "{{ stackrc_file }}"
|
|
openstack quota set --instances -1 admin
|
|
openstack quota set --cores -1 admin
|
|
ignore_errors: yes
|