bundles/sshmon: import from work repository
This commit is contained in:
parent
eaf268aea9
commit
c7362df6c4
12 changed files with 773 additions and 0 deletions
10
bundles/sshmon/files/sudoers
Normal file
10
bundles/sshmon/files/sudoers
Normal file
|
@ -0,0 +1,10 @@
|
|||
<%
|
||||
commands = set()
|
||||
for maybe_fault in check_commands.values():
|
||||
commands.add(str(maybe_fault))
|
||||
%>\
|
||||
% for command in sorted(commands):
|
||||
% if command.startswith('sudo '):
|
||||
sshmon ALL=NOPASSWD: ${command[len('sudo '):]}
|
||||
% endif
|
||||
% endfor
|
Loading…
Add table
Add a link
Reference in a new issue