34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
tasks:
|
|
- name: Write container config json files
|
|
tripleo_container_configs:
|
|
config_data:
|
|
/tmp/container_config1.json:
|
|
command: /usr/bin/ceilometer-polling compute
|
|
config_files:
|
|
- dest: /
|
|
merge: true
|
|
preserve_properties: true
|
|
source: /var/lib/kolla/config_files/src/*
|
|
/tmp/container_config2.json:
|
|
command: /usr/bin/ceilometer-agent-notification
|
|
config_files:
|
|
- dest: /
|
|
merge: true
|
|
preserve_properties: true
|
|
source: /var/lib/kolla/config_files/src/*
|
|
- name: Check that container_config1.json file was created
|
|
stat:
|
|
path: "/tmp/container_config1.json"
|
|
register: st_config
|
|
failed_when:
|
|
- not st_config.stat.exists
|
|
- name: Check that container_config1.json configuration is correct
|
|
slurp:
|
|
src: "/tmp/container_config1.json"
|
|
register: slurp_config
|
|
failed_when:
|
|
- ('ceilometer-polling' not in slurp_config['content']|b64decode)
|