in libraries/ceph_chef_helper.rb [423:437]
def ceph_chef_bootstrap_rgw_secret
if node['ceph']['encrypted_data_bags']
secret = Chef::EncryptedDataBagItem.load_secret(node['ceph']['bootstrap-rgw']['secret_file'])
Chef::EncryptedDataBagItem.load('ceph', 'bootstrap-rgw', secret)['secret']
elsif !ceph_chef_mon_nodes.empty?
ceph_chef_save_bootstrap_rgw_secret(ceph_chef_mon_nodes[0]['ceph']['bootstrap-rgw'])
ceph_chef_mon_nodes[0]['ceph']['bootstrap-rgw']
elsif node['ceph']['bootstrap-rgw']
node['ceph']['bootstrap-rgw']
else
Chef::Log.info('No bootstrap-rgw secret found')
nil
end
end