Skip to content

Commit

Permalink
rename ceph template files
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Katharina Brechtel <[email protected]>
  • Loading branch information
mkbrechtel committed May 18, 2024
1 parent b6a0e68 commit 7a45437
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions roles/ceph/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

- name: Add ceph package sources
template:
src: ceph.sources.tpl
src: ceph.sources.j2
dest: /etc/apt/sources.list.d/ansible-ceph.sources
#notify: Update apt
when: 'ceph_roles|length > 0 and ceph_release != "distro"'
Expand Down Expand Up @@ -133,7 +133,7 @@
# - name: Ceph - Set up config and keyrings
- name: Transfer the cluster configuration
template:
src: ceph.conf.tpl
src: ceph.conf.j2
dest: /etc/ceph/ceph.conf
notify: Restart Ceph
when: 'ceph_roles|length > 0'
Expand Down Expand Up @@ -257,7 +257,7 @@
when: '"mgr" in ceph_roles'

- name: Create mgr keyring
delegate_to: "{{ lookup('template', 'ceph.monitors.names.tpl') | from_yaml | first }}"
delegate_to: "{{ lookup('template', 'ceph.monitors.names.j2') | from_yaml | first }}"
shell:
cmd: ceph auth get-or-create mgr.{{ inventory_hostname_short }} mon 'allow profile mgr' osd 'allow *' mds 'allow *'
register: mgr_keyring
Expand Down Expand Up @@ -291,7 +291,7 @@
when: '"mds" in ceph_roles'

- name: Create mds keyring
delegate_to: "{{ lookup('template', 'ceph.monitors.names.tpl') | from_yaml | first }}"
delegate_to: "{{ lookup('template', 'ceph.monitors.names.j2') | from_yaml | first }}"
shell:
cmd: ceph auth get-or-create mds.{{ inventory_hostname_short }} mon 'profile mds' mgr 'profile mds' mds 'allow *' osd 'allow *'
register: mds_keyring
Expand Down Expand Up @@ -325,7 +325,7 @@
when: '"rgw" in ceph_roles'

- name: Create Ceph rgw keyring
delegate_to: "{{ lookup('template', 'ceph.monitors.names.tpl') | from_yaml | first }}"
delegate_to: "{{ lookup('template', 'ceph.monitors.names.j2') | from_yaml | first }}"
shell:
cmd: ceph auth get-or-create client.rgw.{{ inventory_hostname_short }} mon 'allow rw' osd 'allow rwx'
register: rgw_keyring
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7a45437

Please sign in to comment.