From: Matt Thompson Date: Thu, 31 Oct 2013 11:58:18 +0000 (+0000) Subject: Change radosgw client caps to allow read-write on mon, not just read X-Git-Tag: v0.2.0~12^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F72%2Fhead;p=ceph-cookbooks.git Change radosgw client caps to allow read-write on mon, not just read --- diff --git a/recipes/radosgw.rb b/recipes/radosgw.rb index d15d98d..e438caa 100644 --- a/recipes/radosgw.rb +++ b/recipes/radosgw.rb @@ -50,7 +50,7 @@ unless File.exists?("/var/lib/ceph/radosgw/ceph-radosgw.#{node['hostname']}/done ruby_block "create rados gateway client key" do block do - keyring = %x[ ceph auth get-or-create client.radosgw.#{node['hostname']} osd 'allow rwx' mon 'allow r' --name mon. --key='#{node["ceph"]["monitor-secret"]}' ] + keyring = %x[ ceph auth get-or-create client.radosgw.#{node['hostname']} osd 'allow rwx' mon 'allow rw' --name mon. --key='#{node["ceph"]["monitor-secret"]}' ] keyfile = File.new("/etc/ceph/ceph.client.radosgw.#{node['hostname']}.keyring", "w") keyfile.puts(keyring) keyfile.close