Puppet incorrectly sets rgw_keystone_revocation_interval to absent
Puppet incorrectly sets rgw_keystone_revocation_interval when use_pki is false. According to (1), the default value will be 15*60. This value should be 0 when not using PKI tokens. This patch ensures the parameter is set to the value passed into the module. 1: http://docs.ceph.com/docs/master/radosgw/config-ref/ Change-Id: Ic8abf0c9d54847dad72824db211a5850737a05b8 Closes-bug: 1770234
This commit is contained in:
@@ -186,7 +186,7 @@ certutil -d ${nss_db_path} -L | grep ^signing_cert
|
||||
} else {
|
||||
ceph_config {
|
||||
"client.${name}/nss_db_path": ensure => absent;
|
||||
"client.${name}/rgw_keystone_revocation_interval": ensure => absent;
|
||||
"client.${name}/rgw_keystone_revocation_interval": value => $rgw_keystone_revocation_interval;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -112,7 +112,7 @@ wget --no-check-certificate http://keystone.default:5000/v2.0/certificates/signi
|
||||
:rgw_keystone_token_cache_size => 100,
|
||||
:rgw_s3_auth_use_keystone => false,
|
||||
:use_pki => false,
|
||||
:rgw_keystone_revocation_interval => 200,
|
||||
:rgw_keystone_revocation_interval => 0,
|
||||
:nss_db_path => '/some/path/to/nss',
|
||||
:rgw_keystone_implicit_tenants => false,
|
||||
}
|
||||
@@ -123,7 +123,7 @@ wget --no-check-certificate http://keystone.default:5000/v2.0/certificates/signi
|
||||
it { is_expected.to contain_ceph_config('client.radosgw.custom/rgw_keystone_accepted_roles').with_value('_role1_,role2') }
|
||||
it { is_expected.to contain_ceph_config('client.radosgw.custom/rgw_keystone_token_cache_size').with_value(100) }
|
||||
it { is_expected.to contain_ceph_config('client.radosgw.custom/rgw_s3_auth_use_keystone').with_value(false) }
|
||||
it { is_expected.to contain_ceph_config('client.radosgw.custom/rgw_keystone_revocation_interval').with_ensure('absent') }
|
||||
it { is_expected.to contain_ceph_config('client.radosgw.custom/rgw_keystone_revocation_interval').with_value(0) }
|
||||
it { is_expected.to contain_ceph_config('client.radosgw.custom/nss_db_path').with_ensure('absent') }
|
||||
it { is_expected.to contain_ceph_config('client.radosgw.custom/rgw_keystone_implicit_tenants').with_value(false) }
|
||||
|
||||
@@ -274,7 +274,7 @@ wget --no-check-certificate http://keystone.default:5000/v2.0/certificates/signi
|
||||
:rgw_keystone_token_cache_size => 100,
|
||||
:rgw_s3_auth_use_keystone => false,
|
||||
:use_pki => false,
|
||||
:rgw_keystone_revocation_interval => 200,
|
||||
:rgw_keystone_revocation_interval => 0,
|
||||
:nss_db_path => '/some/path/to/nss',
|
||||
:rgw_keystone_implicit_tenants => false,
|
||||
}
|
||||
@@ -285,7 +285,7 @@ wget --no-check-certificate http://keystone.default:5000/v2.0/certificates/signi
|
||||
it { is_expected.to contain_ceph_config('client.radosgw.custom/rgw_keystone_accepted_roles').with_value('_role1_,role2') }
|
||||
it { is_expected.to contain_ceph_config('client.radosgw.custom/rgw_keystone_token_cache_size').with_value(100) }
|
||||
it { is_expected.to contain_ceph_config('client.radosgw.custom/rgw_s3_auth_use_keystone').with_value(false) }
|
||||
it { is_expected.to contain_ceph_config('client.radosgw.custom/rgw_keystone_revocation_interval').with_ensure('absent') }
|
||||
it { is_expected.to contain_ceph_config('client.radosgw.custom/rgw_keystone_revocation_interval').with_value(0) }
|
||||
it { is_expected.to contain_ceph_config('client.radosgw.custom/nss_db_path').with_ensure('absent') }
|
||||
it { is_expected.to contain_ceph_config('client.radosgw.custom/rgw_keystone_implicit_tenants').with_value(false) }
|
||||
|
||||
|
Reference in New Issue
Block a user