search for: host_group

Displaying 4 results from an estimated 4 matches for "host_group".

2010 Nov 19
6
augeas / sudoers
Hello everybody! How can i create with puppet following sudoers file: User_Alias CENTREON=apache,nagios CENTREON ALL = NOPASSWD: /etc/init.d/nagios* restart CENTREON ALL = NOPASSWD: /etc/init.d/nagios* reload CENTREON ALL = NOPASSWD: /usr/bin/nagios* -v * The problem that augeas create only last line, replacing previous one. -- You received this message because you are subscribed to
2010 Jun 30
7
augeas and sudo woes
The following function is based on code I found here in an earlier thread. define sudoer() { augeas { "sudo${name}": context => "/files/etc/sudoers", changes => [ "set spec[last() + 1]/user ${name}", "set spec[last()]/host_group/host ALL", "set spec[last()]/host_group/command NOPASSWD: ALL", "set spec[last()]/host_group/command/runas_user ALL", ], } In that example, the command line looked like this: "set spec[last()]/host_group/command ALL", I added NOPASSWD: and it barfs wi...
2010 Jul 27
0
Augeas working inconsistently
...doentry ($user, $host = "ALL", $command = "ALL", $tag = false, $runas = "ALL") { $sudo_changes = $tag ? { false => [ "set spec[user = ''$user'']/user $user", "set spec[user = ''$user'']/host_group/host $host", "set spec[user = ''$user'']/host_group/command ''$command''", "remove spec[user = ''$user'']/host_group/command/tag", "set spec[user = ''$user'']/host_group/comma...
2011 Aug 25
6
manage sudoers with augeas
Hello, I am trying to use augeas via puppet, augeas { "mailops": context => "/files/etc/sudoers", changes => [ "set spec[user = ''%mail-ops'']/user %mail-ops", "set spec[user = ''%mail-ops'']/host_group/host ALL", "set spec[user = ''%mail-ops'']/host_group/command[1] \"/bin/su imail \"", "set spec[user = ''%mail-ops'']/host_group/command[1]/tag NOPASSWD", ], } the error : err: /Stage[main]/Managesudo::mailops/Augeas[mai...