e8025b3cb8
Change-Id: I8e4096d7136d0ce9e54f1af0bb9ba110487fb35b
34 lines
1.2 KiB
Django/Jinja
34 lines
1.2 KiB
Django/Jinja
{% set apache_conf_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
|
|
{% set apache_cmd = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
|
|
{
|
|
"command": "{{ apache_cmd }} -DFOREGROUND",
|
|
"config_files": [
|
|
{% if groups['ironic-inspector'] | length > 0 %}
|
|
{
|
|
"source": "{{ container_config_directory }}/ironic-agent.kernel",
|
|
"dest": "/var/lib/ironic/httpboot/ironic-agent.kernel",
|
|
"owner": "root",
|
|
"perm": "0644"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/ironic-agent.initramfs",
|
|
"dest": "/var/lib/ironic/httpboot/ironic-agent.initramfs",
|
|
"owner": "root",
|
|
"perm": "0644"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/inspector.ipxe",
|
|
"dest": "/var/lib/ironic/httpboot/inspector.ipxe",
|
|
"owner": "root",
|
|
"perm": "0644"
|
|
},
|
|
{% endif %}
|
|
{
|
|
"source": "{{ container_config_directory }}/httpd.conf",
|
|
"dest": "/etc/{{ apache_conf_dir }}/httpboot.conf",
|
|
"owner": "root",
|
|
"perm": "0644"
|
|
}
|
|
]
|
|
}
|