Skip to content

Commit

Permalink
Merge pull request #109 from hufman/feature-mds-with-lwrp-new2
Browse files Browse the repository at this point in the history
Changes the mds recipe to use the client lwrp
  • Loading branch information
guilhem committed Mar 27, 2014
2 parents 5829974 + febf62a commit 6485470
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions recipes/mds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,10 @@
action :create
end

ruby_block 'create mds client key' do
block do
cmd = "ceph auth get-or-create mds.#{node['hostname']} osd 'allow *' mon 'allow rwx' --name mon. --key='#{node["ceph"]["monitor-secret"]}'"
keyring = Mixlib::ShellOut.new(cmd).run_command.stdout

keyfile = File.new("/var/lib/ceph/mds/#{cluster}-#{node['hostname']}/keyring", 'w')
keyfile.puts(keyring)
keyfile.close
end
ceph_client 'mds' do
caps('osd' => 'allow *', 'mon' => 'allow rwx')
keyname "mds.#{node['hostname']}"
filename "/var/lib/ceph/mds/#{cluster}-#{node['hostname']}/keyring"
end

file "/var/lib/ceph/mds/#{cluster}-#{node["hostname"]}/done" do
Expand Down

0 comments on commit 6485470

Please sign in to comment.