saz / puppet-sudo

Manage sudo with Puppet on Debian-, RedHat- and SUSE-based linux distributions and some BSDs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do not remove systemctl alias for EL 7

ttres opened this issue · comments

EL 7 systems /etc/sudoers comes with some systemctl commands, by default, in SERVICES alias, that should not be erased:

# Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig, /usr/bin/systemctl start, /usr/bin/systemctl stop, /usr/bin/systemctl reload, /usr/bin/systemctl restart, /usr/bin/systemctl status, /usr/bin/systemctl enable, /usr/bin/systemctl disable

Expected result: alias is not changed
Actual result: alias is rewritten and systemctl commands are removed