5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 - name: Set keyrings owners for controller
24 cephkeys_access_group: "cephkeys"
26 - name: Create cephkeys_access_group group
28 name: "{{ cephkeys_access_group }}"
29 when: (ceph_configured | default(False))
30 - name: set keyrings owner
32 path: "/etc/ceph/ceph.client.{{ item }}.keyring"
34 group: "{{ cephkeys_access_group }}"
39 when: (ceph_configured | default(False))
41 - name: Set keyrings owners for caas_master
48 cephkeys_access_group: "cephkeys"
50 - name: Create cephkeys_access_group group
52 name: "{{ cephkeys_access_group }}"
53 when: (ceph_configured | default(False))
54 - name: set keyrings owner
56 path: "/etc/ceph/ceph.client.caas.keyring"
57 # TODO: Probably CaaS should have an own user
58 owner: "{{ users.admin_user_name }}"
59 group: "{{ cephkeys_access_group }}"
61 when: (ceph_configured | default(False))