Puppet Class: almalinux_hardening::services::disable::gui
- Defined in:
- manifests/services/disable/gui.pp
Summary
Disable graphical user interfaceOverview
Puppet Module to perform AlmaLinux 8 OS Hardening with CIS benchmark. Copyright © 2022 Jonas Hügli
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'manifests/services/disable/gui.pp', line 30
class almalinux_hardening::services::disable::gui {
if $almalinux_hardening::enable_disable_gui {
package { $almalinux_hardening::gui_packages:
ensure => absent,
install_options => ['--disablerepo',$almalinux_hardening::disable_repos,'--enablerepo',$almalinux_hardening::enable_repos],
}
exec { 'system_default_target':
path => '/usr/bin:/bin:/usr/sbin',
command => 'systemctl set-default multi-user.target',
unless => 'systemctl get-default | grep -q "multi-user.target"',
}
}
}
|