apiVersion: v1
data:
  ceph.conf: |+
    [global]
    osd pool default size = 1
    osd pool default min size = 1
    osd crush chooseleaf type = 0
    debug default = 5

    log file = /var/log/kolla/ceph/$cluster-$name.log
    log to syslog = true
    err to syslog = true
    fsid = b371c952-487b-49cb-8c3b-85c1c3ae8098
    auth cluster required = cephx
    auth service required = cephx
    auth client required = cephx
    setuser match path = /var/lib/ceph/$type/$cluster-$id

    [mon]
    mon compact on start = true

  config.json: |
    {    "command": "/usr/bin/ceph-mon -d -i @MONID@ --public-addr @MONADDR@:6789",    "config_files": [
            {
                "source": "/var/lib/kolla/config_files/ceph.conf",
                "dest": "/etc/ceph/ceph.conf",
                "owner": "ceph",
                "perm": "0600"
            },
            {
                "source": "/var/lib/kolla/config_files/ceph.client.admin.keyring",
                "dest": "/etc/ceph/ceph.client.admin.keyring",
                "owner": "ceph",
                "perm": "0600",
                "optional": true
            },
            {
                "source": "/var/lib/kolla/config_files/ceph.client.mon.keyring",
                "dest": "/etc/ceph/ceph.client.mon.keyring",
                "owner": "ceph",
                "perm": "0600",
                "optional": true
            },
            {
                "source": "/var/lib/kolla/config_files/ceph.client.radosgw.keyring",
                "dest": "/etc/ceph/ceph.client.radosgw.keyring",
                "owner": "ceph",
                "perm": "0600",
                "optional": true
            },
            {
                "source": "/var/lib/kolla/config_files/ceph.monmap",
                "dest": "/etc/ceph/ceph.monmap",
                "owner": "ceph",
                "perm": "0600",
                "optional": true
            }
        ]
    }
kind: ConfigMap
metadata:
  name: ceph-mon
