Skip to content

Commit

Permalink
mon: Move client admin variable to defaults
Browse files Browse the repository at this point in the history
There's no need to set the client_admin_ceph_authtool_cap variable
via a set_fact task.
Instead we can set this in the role defaults.

Signed-off-by: Dimitri Savineau <[email protected]>
  • Loading branch information
dsavineau authored and mergify[bot] committed Feb 27, 2019
1 parent dd7b760 commit 58a9d31
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
5 changes: 5 additions & 0 deletions group_vars/mons.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ dummy:
# - nodelete
# - nosizechange

#client_admin_ceph_authtool_cap:
# mon: allow *
# osd: allow *
# mds: allow *
# mgr: allow *

###############
# CRUSH RULES #
Expand Down
5 changes: 5 additions & 0 deletions roles/ceph-mon/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ secure_cluster_flags:
- nodelete
- nosizechange

client_admin_ceph_authtool_cap:
mon: allow *
osd: allow *
mds: allow *
mgr: allow *

###############
# CRUSH RULES #
Expand Down
11 changes: 0 additions & 11 deletions roles/ceph-mon/tasks/deploy_monitors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,6 @@
mode: "u=rwX,g=rX,o=rX"
recurse: true

- name: set_fact client_admin_ceph_authtool_cap
set_fact:
client_admin_ceph_authtool_cap:
mon: allow *
osd: allow *
mds: allow *
mgr: allow *
when:
- cephx
- admin_secret != 'admin_secret'

- name: create custom admin keyring
ceph_key:
name: client.admin
Expand Down

0 comments on commit 58a9d31

Please sign in to comment.