diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-08-11 12:41:46 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-08-11 12:41:46 +0000 |
commit | 040f51aba2789d1b1fd6676c4da171732b1a0d54 (patch) | |
tree | 60989caada0af9a4ae5335e7e367403231b419f1 /manifests | |
parent | d0d0c68fcadd1eb1b6e986270392f003726698b4 (diff) | |
parent | 4b2533863244ff1c667354364557a1f9c554d2f9 (diff) |
Merge "Do not include manila ceph key resource twice"
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/profile/pacemaker/manila.pp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/manifests/profile/pacemaker/manila.pp b/manifests/profile/pacemaker/manila.pp index c22a033..25d389a 100644 --- a/manifests/profile/pacemaker/manila.pp +++ b/manifests/profile/pacemaker/manila.pp @@ -134,17 +134,19 @@ class tripleo::profile::pacemaker::manila ( cephfs_enable_snapshots => hiera('manila::backend::cephfsnative::cephfs_enable_snapshots'), } - ceph::key { "client.${cephfs_auth_id}" : - secret => hiera('manila::backend::cephfsnative::ceph_client_key'), - keyring_path => $keyring_path, - # inject the new key into ceph cluster only if ceph is deployed by - # tripleo (if external ceph is used it should be added manually) - inject => $ceph_mds_enabled, - user => 'manila', - cap_mds => 'allow *', - cap_mon => 'allow r, allow command \"auth del\", allow command \"auth caps\", \ + if !defined(Resource['ceph::key', "client.${cephfs_auth_id}"]) { + ceph::key { "client.${cephfs_auth_id}" : + secret => hiera('manila::backend::cephfsnative::ceph_client_key'), + keyring_path => $keyring_path, + # inject the new key into ceph cluster only if ceph is deployed by + # tripleo (if external ceph is used it should be added manually) + inject => $ceph_mds_enabled, + user => 'manila', + cap_mds => 'allow *', + cap_mon => 'allow r, allow command \"auth del\", allow command \"auth caps\", \ allow command \"auth get\", allow command \"auth get-or-create\"', - cap_osd => 'allow rw' + cap_osd => 'allow rw' + } } ceph_config { |