Skip to content

Commit

Permalink
Fix polkit and re-enable
Browse files Browse the repository at this point in the history
  • Loading branch information
MTecknology committed May 7, 2023
1 parent bd74906 commit 3c249d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions states/polkit/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ polkit:
- clean: True
- require:
- pkg: polkit
{% if not salt.chroot.in_chroot() %}
service.running:
- name: polkit
- enable: True
- require:
- pkg: polkit
- watch:
- file: polkit
- file: /etc/polkit-1/rules.d
{% endif %}

/etc/polkit-1/rules.d:
file.absent:
- watch_in:
- service: polkit
- require:
- pkg: polkit
7 changes: 6 additions & 1 deletion states/top.sls
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ base:
- users

# Server
'* and not *pc*':
'not *pc*':
- match: compound
- ssh

Expand All @@ -38,6 +38,11 @@ base:
- user_policies
- signal

# Test/Dev Systems
'test* or dev*':
- match: compound
- ssh

'irc*':
- irssi
- webapps
Expand Down

0 comments on commit 3c249d4

Please sign in to comment.