ipa/client: Improve naming HBAC, sudo rules

Rename:
- "group/sysadmin-main" to "usergroup/sysadmin-main" to prepare for
  using host groups
- "sudo/all" to "all-users/sudo" likewise to make it apparent that it's
  about users and to put the resource last to which access is granted

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen
2021-01-22 13:10:23 +01:00
committed by nphilipp
parent 71e625c0fd
commit 8f453535dc
2 changed files with 6 additions and 6 deletions

View File

@@ -6,7 +6,7 @@
- name: "Give members of group sysadmin-main access to anything, anywhere"
ipahbacrule:
name: "group/sysadmin-main"
name: "usergroup/sysadmin-main"
description: "Give members of group sysadmin-main access to anything, anywhere"
hostcategory: "all"
servicecategory: "all"
@@ -15,9 +15,9 @@
group:
- sysadmin-main
- name: "Enable group/sysadmin-main HBAC rule"
- name: "Enable usergroup/sysadmin-main HBAC rule"
ipahbacrule:
name: "group/sysadmin-main"
name: "usergroup/sysadmin-main"
ipaadmin_password: "{{ ipa_admin_password }}"
state: enabled
@@ -29,7 +29,7 @@
- name: "Let everybody run sudo"
ipahbacrule:
name: "sudo/all"
name: "all-users/sudo"
description: "Allow all users to execute the sudo command"
state: present
ipaadmin_password: "{{ ipa_admin_password }}"
@@ -74,7 +74,7 @@
- name: "Give certain groups shell access on {{ ansible_fqdn }}"
ipahbacrule:
name: "shell-access/host/{{ ansible_fqdn }}"
name: "host/{{ ansible_fqdn }}/shell-access"
description: "Give members of groups shell access on {{ ansible_fqdn }}"
ipaadmin_password: "{{ ipa_admin_password }}"
hbacsvcgroup:

View File

@@ -5,7 +5,7 @@
- name: "Give members of `sysadmin-main` sudo access to anything, anywhere"
ipasudorule:
name: "group/sysadmin-main"
name: "usergroup/sysadmin-main"
description: "Allow members of `sysadmin-main` to use sudo to do anything, anywhere"
ipaadmin_password: "{{ ipa_admin_password }}"
state: present