From: Walter Huf Date: Thu, 27 Mar 2014 16:46:05 +0000 (-0500) Subject: Changes the mds recipe to use the client lwrp X-Git-Tag: v0.8.0~51^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=febf62a7081fbd9c1a7fe6af1d29600d63b57186;p=ceph-cookbooks.git Changes the mds recipe to use the client lwrp --- diff --git a/recipes/mds.rb b/recipes/mds.rb index 658de9d..699c938 100644 --- a/recipes/mds.rb +++ b/recipes/mds.rb @@ -30,15 +30,10 @@ directory "/var/lib/ceph/mds/#{cluster}-#{node["hostname"]}" do 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