mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-21 08:23:08 +01:00
top match and remove_gui state
This commit is contained in:
@@ -511,6 +511,10 @@ base:
|
|||||||
- filebeat
|
- filebeat
|
||||||
- idh
|
- idh
|
||||||
|
|
||||||
'*_workstation and G@saltversion:{{saltversion}}':
|
'J@workstation:gui:enabled:^[Tt][Rr][Uu][Ee]$ and ( G@saltversion:{{saltversion}} and G@os:CentOS )':
|
||||||
- match: compound
|
- match: compound
|
||||||
- workstation
|
- workstation
|
||||||
|
|
||||||
|
'J@workstation:gui:enabled:^[Ff][Aa][Ll][Ss][Ee]$ and ( G@saltversion:{{saltversion}} and G@os:CentOS )':
|
||||||
|
- match: compound
|
||||||
|
- workstation.remove_gui
|
||||||
|
|||||||
5
salt/workstation/remove_gui.sls
Normal file
5
salt/workstation/remove_gui.sls
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
remove_graphical_target:
|
||||||
|
file.symlink:
|
||||||
|
- name: /etc/systemd/system/default.target
|
||||||
|
- target: /lib/systemd/system/multi-user.target
|
||||||
|
- force: True
|
||||||
Reference in New Issue
Block a user