phinze / puppet-sudoers

puppet module for managing sudoers
MIT License
8 stars 9 forks source link

Question of multiple users in one definition #17

Open klm46 opened 7 years ago

klm46 commented 7 years ago

Hi there,

i have a question regarding this great module. is it possible to define a allowed command for multiple users in one definition? Such as:

sudoers::allowed_command{ "user1, user2": command => "/usr/sbin/service,/usr/bin/tail - /var/log/,/usr/bin/less /var/log/,/bin/systemctl jboss-as, /bin/systemctl java, /bin/systemctl mongodb, /bin/systemctl wildfly, /usr/bin/su wildfly, /bin/vim /opt/", user => "user1, user2", require_password => false, comment => "Allows to start a service and read /var/log" }

I can't get this working