aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/ceph/templates/ceph-mon.json.j2
blob: c1cc96454764749a97484be5ee3a6a2ebf5c0317 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
{%- if orchestration_engine == 'KUBERNETES' %}
    "command": "/usr/bin/ceph-mon -d -i @MONID@ --public-addr @MONADDR@:6789",
{%- else %}
    "command": "/usr/bin/ceph-mon -d -i {{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }} --public-addr {{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }}:6789",
{%- endif %}
    "config_files": [
        {
            "source": "{{ container_config_directory }}/ceph.conf",
            "dest": "/etc/ceph/ceph.conf",
            "owner": "ceph",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/ceph.client.admin.keyring",
            "dest": "/etc/ceph/ceph.client.admin.keyring",
            "owner": "ceph",
            "perm": "0600",
            "optional": true
        },
        {
            "source": "{{ container_config_directory }}/ceph.client.mon.keyring",
            "dest": "/etc/ceph/ceph.client.mon.keyring",
            "owner": "ceph",
            "perm": "0600",
            "optional": true
        },
        {
            "source": "{{ container_config_directory }}/ceph.client.radosgw.keyring",
            "dest": "/etc/ceph/ceph.client.radosgw.keyring",
            "owner": "ceph",
            "perm": "0600",
            "optional": true
        },
        {
            "source": "{{ container_config_directory }}/ceph.monmap",
            "dest": "/etc/ceph/ceph.monmap",
            "owner": "ceph",
            "perm": "0600",
            "optional": true
        }
    ]
}