kolla-ansible/ansible/roles/senlin/templates/senlin-api.json.j2
Dai Dang Van e846d48780 Support policy.yaml file [part 6]
- Sahara
- Searchlight
- Senlin
- Tacker

This will copy only yaml or json policy file if they exist.

Change-Id: I97c8bf300f14ae6d7c55c5f8962c5781cee2c40a
Implements: blueprint support-custom-policy-yaml
Co-authored-By: Duong Ha-Quang <duonghq@vn.fujitsu.com>
2018-01-26 04:37:48 +00:00

25 lines
724 B
Django/Jinja

{
"command": "senlin-api --config-file /etc/senlin/senlin.conf",
"config_files": [
{
"source": "{{ container_config_directory }}/senlin.conf",
"dest": "/etc/senlin/senlin.conf",
"owner": "senlin",
"perm": "0600"
}{% if senlin_policy_file is defined %},
{
"source": "{{ container_config_directory }}/{{ senlin_policy_file }}",
"dest": "/etc/senlin/{{ senlin_policy_file }}",
"owner": "senlin",
"perm": "0600"
}{% endif %}
],
"permissions": [
{
"path": "/var/log/kolla/senlin",
"owner": "senlin:senlin",
"recurse": true
}
]
}