containerized mon: create restapi keyring

add sample config for containerized deployment
pull/648/head
Huamin Chen 2016-01-21 19:54:41 +00:00 committed by Sébastien Han
parent 0d704b5710
commit 29b239a8f8
3 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,25 @@
---
dummy:
cephx_require_signatures: false # Kernel RBD does NOT support signatures!
cephx_cluster_require_signatures: false
restapi_group_name: restapis
fetch_directory: fetch/
mon_containerized_deployment: true
ceph_mon_docker_username: hchen
ceph_mon_docker_imagename: rhceph
ceph_mon_docker_interface: "{{ monitor_interface }}"
ceph_mon_docker_subnet: "{{ public_network }}" # subnet of the ceph_mon_docker_interface
ceph_mon_extra_envs: "MON_NAME={{ ansible_hostname }}" # comma separated variables
osd_containerized_deployment: true
ceph_osd_docker_username: hchen
ceph_osd_docker_imagename: rhceph
ceph_osd_docker_extra_env: "CEPH_DAEMON=OSD_CEPH_DISK,OSD_FORCE_ZAP=1" # comma separated variables
ceph_osd_docker_devices:
- /dev/sdb
rgw_containerized_deployment: true
ceph_rgw_docker_username: hchen
ceph_rgw_docker_imagename: rhceph
ceph_rgw_civetweb_port: 80
ceph_rgw_docker_extra_env: "RGW_CIVETWEB_PORT={{ ceph_rgw_civetweb_port }}" # comma separated variables
rbd_client_directories: false
ceph_stable_release: hammer

View File

@ -5,13 +5,24 @@
wait_for:
path: /etc/ceph/ceph.client.admin.keyring
- name: create ceph rest api keyring
- name: create ceph rest api keyring when mon is not containerized
command: ceph auth get-or-create client.restapi osd 'allow *' mon 'allow *' -o /etc/ceph/ceph.client.restapi.keyring
args:
creates: /etc/ceph/ceph.client.restapi.keyring
changed_when: false
when:
cephx and
not mon_containerized_deployment and
groups[restapi_group_name] is defined
- name: create ceph rest api keyring when mon is containerized
command: docker exec {{ ansible_hostname }} ceph auth get-or-create client.restapi osd 'allow *' mon 'allow *' -o /etc/ceph/ceph.client.restapi.keyring
args:
creates: /etc/ceph/ceph.client.restapi.keyring
changed_when: false
when:
cephx and
mon_containerized_deployment and
groups[restapi_group_name] is defined
- include: openstack_config.yml

View File

@ -15,3 +15,4 @@
- include: fetch_configs.yml
- include: start_docker_monitor.yml
- include: copy_configs.yml
- include: ../ceph_keys.yml