added groups and polkit rules
This commit is contained in:
parent
b741ad58fc
commit
5b812c749a
@ -10,3 +10,7 @@ packages:
|
|||||||
firefox:
|
firefox:
|
||||||
addons:
|
addons:
|
||||||
Okta Browser Plugin: https://addons.mozilla.org/en-US/firefox/addon/okta-browser-plugin/
|
Okta Browser Plugin: https://addons.mozilla.org/en-US/firefox/addon/okta-browser-plugin/
|
||||||
|
|
||||||
|
groups:
|
||||||
|
libvirt:
|
||||||
|
kvm:
|
||||||
|
@ -6,6 +6,7 @@ base:
|
|||||||
- hosts
|
- hosts
|
||||||
- repos.google_chrome
|
- repos.google_chrome
|
||||||
- firewalld
|
- firewalld
|
||||||
|
- groups
|
||||||
{% if grains['os'] == "SUSE" -%}
|
{% if grains['os'] == "SUSE" -%}
|
||||||
- repos.packman
|
- repos.packman
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
3
salt/states/files/40-custom.rules
Normal file
3
salt/states/files/40-custom.rules
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
polkit.addAdminRule(function(action, subject) {
|
||||||
|
return ["unix-group:wheel"];
|
||||||
|
});
|
7
salt/states/groups.sls
Normal file
7
salt/states/groups.sls
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
add {{ pillar['username'] }} to optional groups:
|
||||||
|
user.present:
|
||||||
|
- name: {{ pillar['username'] }}
|
||||||
|
- optional_groups:
|
||||||
|
{% for group, args in pillar['groups'].items() -%}
|
||||||
|
- {{ group }}
|
||||||
|
{% endfor %}
|
@ -7,3 +7,5 @@ base:
|
|||||||
- firefox
|
- firefox
|
||||||
- sudo
|
- sudo
|
||||||
- firewalld
|
- firewalld
|
||||||
|
- groups
|
||||||
|
- polkit
|
||||||
|
Loading…
Reference in New Issue
Block a user