b81442a082
Change-Id: I469800239bfc7f3bb5acc899edf7a971b792655c Implements: blueprint kolla-freezer-scheduler-container Co-Authored-By: wu.chunyang <wu.chunyang@99cloud.net>
33 lines
1.1 KiB
Django/Jinja
33 lines
1.1 KiB
Django/Jinja
{% set apache_cmd = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
|
|
{% set apache_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
|
|
{
|
|
"command": "{{ apache_cmd }} -DFOREGROUND",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/freezer.conf",
|
|
"dest": "/etc/freezer/freezer.conf",
|
|
"owner": "freezer",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/wsgi-freezer-api.conf",
|
|
"dest": "/etc/{{ apache_dir }}/wsgi-freezer.conf",
|
|
"owner": "freezer",
|
|
"perm": "0600"
|
|
}{% if freezer_policy_file is defined %},
|
|
{
|
|
"source": "{{ container_config_directory }}/{{ freezer_policy_file }}",
|
|
"dest": "/etc/freezer/{{ freezer_policy_file }}",
|
|
"owner": "freezer",
|
|
"perm": "0600"
|
|
}{% endif %}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/var/log/kolla/freezer",
|
|
"owner": "freezer:freezer",
|
|
"recurse": true
|
|
}
|
|
]
|
|
}
|