]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Doc: containerized deploy with custom admin secret 1663/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 7 Jul 2017 13:48:53 +0000 (15:48 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 7 Jul 2017 14:29:56 +0000 (16:29 +0200)
In addition to ceph/ceph-docker@69d9aa6, this explains how to deploy a
containerized cluster with a custom admin secret.
Basically, just need to pass the `admin_secret` defined in your
`group_vars/all.yml` to the `ceph_mon_docker_extra_env` variable.

Eg:

`ceph_mon_docker_extra_env: -e CLUSTER={{ cluster }} -e FSID={{ fsid }}
-e MON_NAME={{ monitor_name }} -e ADMIN_SECRET={{ admin_secret }}`

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
group_vars/mons.yml.sample
roles/ceph-mon/defaults/main.yml

index df3e63580021f5de1ca69b0c2dcecc2876870473..00d82304cdc8442d8a348c702a752e57ead42fbd 100644 (file)
@@ -115,6 +115,12 @@ dummy:
 ##########
 #docker_exec_cmd:
 #ceph_mon_docker_subnet: "{{ public_network }}"# subnet of the monitor_interface
+
+# ceph_mon_docker_extra_env:
+#
+# Use this variable to add extra env configuration to run your mon container.
+# If you want to set a custom admin keyring you can set this variable like following:
+# ceph_mon_docker_extra_env: -e CLUSTER={{ cluster }} -e FSID={{ fsid }} -e MON_NAME={{ monitor_name }} -e ADMIN_SECRET={{ admin_secret }}
 #ceph_mon_docker_extra_env: -e CLUSTER={{ cluster }} -e FSID={{ fsid }} -e MON_NAME={{ monitor_name }}
 #mon_docker_privileged: false
 #mon_docker_net_host: true
index 353c9dca1871d1737ae92020e3f5e2cc1e877e3a..c4a8292778e78a0f4c020a490519487ed5a1650f 100644 (file)
@@ -107,6 +107,12 @@ openstack_keys:
 ##########
 docker_exec_cmd:
 ceph_mon_docker_subnet: "{{ public_network }}"# subnet of the monitor_interface
+
+# ceph_mon_docker_extra_env:
+#
+# Use this variable to add extra env configuration to run your mon container.
+# If you want to set a custom admin keyring you can set this variable like following:
+# ceph_mon_docker_extra_env: -e CLUSTER={{ cluster }} -e FSID={{ fsid }} -e MON_NAME={{ monitor_name }} -e ADMIN_SECRET={{ admin_secret }}
 ceph_mon_docker_extra_env: -e CLUSTER={{ cluster }} -e FSID={{ fsid }} -e MON_NAME={{ monitor_name }}
 mon_docker_privileged: false
 mon_docker_net_host: true