File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
chef/cookbooks/ceph/recipes Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 4646
4747
4848unless File . exist? ( "/var/lib/ceph/mgr/ceph-#{ mon_name } /done" )
49- keyring = "#{ Chef :: Config [ :file_cache_path ] } / #{ cluster } -#{ mon_name } .mgr. keyring"
49+ keyring = "/var/lib/ceph/mgr/ #{ cluster } -#{ mon_name } / keyring"
5050 execute "create mgr keyring" do
51- command "ceph-authtool '#{ keyring } ' --create-keyring --name=mgr. --add-key='#{ node [ "ceph" ] [ "monitor-secret" ] } ' --cap mgr 'allow *'"
52- not_if { node [ "ceph" ] [ "monitor-secret" ] . empty? }
51+ command "ceph auth get-or-create mgr.#{ mon_name } \
52+ mon 'allow profile mgr' osd 'allow *' mds 'allow *' \
53+ -o #{ keyring } && \
54+ chown ceph.ceph #{ keyring } "
55+ not_if { File . exist? ( keyring ) }
5356 end
5457 ruby_block "finalise" do
5558 block do
You can’t perform that action at this time.
0 commit comments