fix ownership for radosgw keyring

blueprint: mos-xenial

Closes-bug: #1607304

Change-Id: I0ad62b36293e70b5799f3c2dc39b4b2babd08813
This commit is contained in:
dmburmistrov 2016-07-28 13:30:16 +03:00
parent ba0e2b8d50
commit 8e2f824cbb
2 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,8 @@ class osnailyfacter::ceph::radosgw {
ceph::key { "client.${gateway_name}":
keyring_path => "/etc/ceph/client.${gateway_name}",
user => 'ceph',
group => 'ceph',
secret => $radosgw_key,
cap_mon => 'allow rw',
cap_osd => 'allow rwx',

View File

@ -57,6 +57,8 @@ describe manifest do
if radosgw_enabled
it 'should add radosgw key' do
should contain_ceph__key("client.#{gateway_name}").with(
'user' => 'ceph',
'group' => 'ceph',
'secret' => radosgw_key,
'cap_mon' => 'allow rw',
'cap_osd' => 'allow rwx',