mirror of https://github.com/ceph/ceph-ansible.git
parent
c27450ff40
commit
444837e9ae
|
@ -105,7 +105,7 @@ dummy:
|
|||
## Monitor options
|
||||
#
|
||||
#monitor_interface: interface
|
||||
#monitor_secret: "{{ ceph_mon_key.stdout }}"
|
||||
#monitor_secret: "{{ monitor_keyring.stdout }}"
|
||||
#mon_osd_down_out_interval: 600
|
||||
#mon_osd_min_down_reporters: 7 # number of OSDs per host + 1
|
||||
#mon_clock_drift_allowed: .15
|
||||
|
|
|
@ -11,7 +11,7 @@ dummy:
|
|||
|
||||
# ACTIVATE BOTH FSID AND MONITOR_SECRET VARIABLES FOR NON-VAGRANT DEPLOYMENT
|
||||
#fsid: "{{ cluster_uuid.stdout }}"
|
||||
#monitor_secret: "{{ ceph_mon_key.stdout }}"
|
||||
#monitor_secret: "{{ monitor_keyring.stdout }}"
|
||||
#cephx: true
|
||||
|
||||
# CephFS
|
||||
|
|
|
@ -9,7 +9,7 @@ rgw_group_name: rgws
|
|||
|
||||
# ACTIVATE BOTH FSID AND MONITOR_SECRET VARIABLES FOR NON-VAGRANT DEPLOYMENT
|
||||
fsid: "{{ cluster_uuid.stdout }}"
|
||||
monitor_secret: "{{ ceph_mon_key.stdout }}"
|
||||
monitor_secret: "{{ monitor_keyring.stdout }}"
|
||||
cephx: true
|
||||
|
||||
# CephFS
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
---
|
||||
- name: generate monitor initial keyring
|
||||
local_action: >
|
||||
shell python -c "import os ; import struct ; import time; import base64 ; key = os.urandom(16) ; header = struct.pack('<hiih',1,int(time.time()),0,len(key)) ; print base64.b64encode(header + key)' > fetch/ceph_mon_key.con"
|
||||
creates=fetch/ceph_mon_key.conf
|
||||
register: ceph_mon_key
|
||||
shell python -c "import os ; import struct ; import time; import base64 ; key = os.urandom(16) ; header = struct.pack('<hiih',1,int(time.time()),0,len(key)) ; print base64.b64encode(header + key)' > fetch/monitor_keyring.conf"
|
||||
creates=fetch/monitor_keyring.conf
|
||||
register: monitor_keyring
|
||||
sudo: false
|
||||
|
||||
- name: read monitor initial keyring if it already exists
|
||||
local_action: >
|
||||
command cat fetch/ceph_mon_key.conf
|
||||
removes=fetch/ceph_mon_key.conf
|
||||
command cat fetch/monitor_keyring.conf
|
||||
removes=fetch/monitor_keyring.conf
|
||||
changed_when: false
|
||||
register: ceph_mon_key
|
||||
register: monitor_keyring
|
||||
sudo: false
|
||||
|
||||
- name: create monitor initial keyring
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
- name: check if Ceph REST API is already started
|
||||
shell: "pgrep ceph-rest-api"
|
||||
changed_when: false
|
||||
ignore_errors: true
|
||||
register: restapi_status
|
||||
|
||||
|
|
Loading…
Reference in New Issue