Skip to content

Instantly share code, notes, and snippets.

@phwelo
Created August 23, 2016 18:50
Show Gist options
  • Save phwelo/c3963b60fcf8ba010441fe77906e69e7 to your computer and use it in GitHub Desktop.
Save phwelo/c3963b60fcf8ba010441fe77906e69e7 to your computer and use it in GitHub Desktop.
loops through users passing vaqriable usr, which is hash of user properties
sudo usr[:id] do
user usr[:id]
commands ['/etc/init.d/syslog-ng *','/bin/systemctl * syslog-ng.service', '/bin/systemctl * syslog-ng']
nopasswd true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment