aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/letsencrypt/templates/letsencrypt-webserver.json.j2
blob: 57ad35b881871d61fe67be5407a7b0a607beac13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% set letsencrypt_apache_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
{% set apache_binary = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
{% set apache_user = 'www-data' if kolla_base_distro in ['ubuntu', 'debian'] else 'apache' %}

{
    "command": "/usr/sbin/{{ apache_binary }} -DFOREGROUND",
    "config_files": [
        {
            "source": "{{ container_config_directory }}/letsencrypt-webserver.conf",
            "dest": "/etc/{{ letsencrypt_apache_dir }}/letsencrypt-webserver.conf",
            "owner": "letsencrypt",
            "perm": "0600"
        }{% if kolla_copy_ca_into_containers | bool %},
        {
            "source": "{{ container_config_directory }}/ca-certificates",
            "dest": "/var/lib/kolla/share/ca-certificates",
            "owner": "root",
            "perm": "0600"
        }{% endif %}
    ],
    "directories": [
        {
            "path": "/var/log/kolla/letsencrypt",
            "owner": "{{ apache_user }}",
            "perm": "0755"
        }
    ]
}