From da755cb31753a93a2c7555a24ef75cf44c8601fb Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 7 Jul 2017 15:48:53 +0200 Subject: [PATCH] Doc: containerized deploy with custom admin secret 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 --- group_vars/mons.yml.sample | 6 ++++++ roles/ceph-mon/defaults/main.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/group_vars/mons.yml.sample b/group_vars/mons.yml.sample index df3e63580..00d82304c 100644 --- a/group_vars/mons.yml.sample +++ b/group_vars/mons.yml.sample @@ -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 diff --git a/roles/ceph-mon/defaults/main.yml b/roles/ceph-mon/defaults/main.yml index 353c9dca1..c4a829277 100644 --- a/roles/ceph-mon/defaults/main.yml +++ b/roles/ceph-mon/defaults/main.yml @@ -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 -- 2.39.5