kolla-ansible/ansible/roles/common/templates/kolla-toolbox.json.j2
Michal Nasiadka 28e9f6e50c toolbox: use script handling signals
Since we use "sleep infinity" in kolla_toolbox container - stopping it
always ends up with exit code 143.

Let's use a wrapper script that handles signals correctly.

Closes-Bug: #2031692

Depends-On: https://review.opendev.org/c/openstack/kolla/+/891777
Change-Id: I84295b909d788ceb67bf09ef60fb0583108b111b
2023-08-17 19:41:21 +00:00

31 lines
896 B
Django/Jinja

{
"command": "kolla_toolbox",
"config_files": [
{% if enable_rabbitmq | bool %}{
"source": "{{ container_config_directory }}/rabbitmq-erlang.cookie",
"dest": "/var/lib/rabbitmq/.erlang.cookie",
"owner": "rabbitmq",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/rabbitmq-env.conf",
"dest": "/etc/rabbitmq/rabbitmq-env.conf",
"owner": "rabbitmq",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/erl_inetrc",
"dest": "/etc/rabbitmq/erl_inetrc",
"owner": "rabbitmq",
"perm": "0600"
}{% endif %}
],
"permissions": [
{
"path": "/var/log/kolla/ansible.log",
"perm": "0664",
"owner": "ansible:kolla"
}
]
}