search for: on_failure

Displaying 10 results from an estimated 10 matches for "on_failure".

2011 Feb 17
8
logoutput=>on_failure doesn't work as expected
I''m using puppet 0.25.1. I''ve got a simple resource: exec { "/bin/ls $oracle_base/dba/bin/database_backup.ksh": logoutput => on_failure, } and I don''t want it to log every time it''s successfully run: $ sudo tail -F /var/log/messages | grep puppetd Feb 17 16:36:11 test puppetd[26614]: (//my_module/Exec[/bin/ls /u01/ app/oracle/dba/bin/database_backup.ksh]/returns) executed successfully but logoutput => on_fai...
2007 Dec 13
2
logoutput attribute on exec type
so here I am trying to track down why one of my execs isn''t working properly and I notice in the wiki[1]the option on_failure for logoutput. Turns out it does''t work (in 0.23.0) err: Parameter logoutput failed: Invalid ''logoutput'' value "on_failure". Valid values are true, false, debug, info, notice, warning, err, alert, emerg, crit. err: Could not create clone-repo-master/base: Para...
2011 Jun 24
7
Different users within same exec
I have the following exec in my manifest : exec { some_exec: path => [ "/bin","/usr/bin","/usr/local/bin" ], command => "EXECUTE COMMAND 1", onlyif => "EXECUTE COMMAND 2", logoutput => "on_failure" } I want that the "COMMAND 1" should be executed by "USER 1" and "COMMAND 2" should be executed by "USER 2". Is there a way to do it ? I tried giving the "users" parameter, but that seems to apply to both the commands. Thanks in advance,...
2011 Feb 11
11
CSRF protection in rails 2.3.11
Hi all, I think CSFR protection broke in rails 2.3.11. As in: it''s turned off now. I tried this in rails 2.3.10 and in 2.3.11 and 2.3.11 seems broken. >rails csrftest >cd csrftest >script/generate scaffold post title:string >rake db:migrate now I visit /posts/new in my browser, use firebug to delete or change the authenticity token, and submit the form. rails 2.3.11: all
2011 Apr 15
15
Installing port on FreeBSD
New user trying to get a port to compile: I tried searching but all I get are links to the FreeBSD port of puppet. Easier to find a needle in a haystack. A class has: exec { "port-sudo": cwd => "/usr/ports/security/sudo", environment => "BATCH=yes", command => ''/bin/sh -c "/usr/bin/make
2012 Oct 22
4
Possible to exclude an event in Puppet dashboard?
...--- exec { "run_myscript" : # run myscript command => "/usr/bin/env ruby ${my_script} ${csv_files}", cwd => "${myscript_dir}", timeout => 0, logoutput => "on_failure", } -- Regards, Martin Willemsma -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@g...
2011 Feb 17
1
Nested defined resources
...# create the virtualenv directory "$virtualenv": ensure => directory; } $touchfile = "$virtualenv/.ve-setup" exec { "virtualenv $virtualenv": logoutput => on_failure, name => "$python $package_dir/virtualenv.py \ --python=$python --distribute $virtualenv \ && touch ''$touchfile''", require => [ File[$pac...
2008 Dec 29
4
Using an Exec inside a define
...on an Ubuntu system. Inside my Apache class I have this definition: define module($ensure) { case $ensure { enabled: { exec { "a2enmod": command => "/usr/sbin/a2enmod $name", logoutput => on_failure, creates => "/etc/apache2/mods-enabled/$name.load", notify => Service["apache2"], } } disabled: { exec { "a2dismod":...
2012 Sep 27
0
Retrieve initial content of files when using audit => content
...ain, tag => "fileview", } # backup file to filebucket exec { "fileview_audit_${name}": command => "${audit_dir}/${audit_script} ${name}", timeout => 10, # command should succeed within 10 seconds logoutput => on_failure, refreshonly => true, subscribe => File["fileview_${name}"], } } == audit.pp END == Problem here how do I get the initial content of the file? My solution only works after a modification on one of the files in $::audit_files. e.g. I added /etc/group to be put u...
2013 Mar 01
2
Can puppet report the console output from service foo status?
I have an odd problem. The first time I install my new package, puppet comes back with "Execution of ''/sbin/service chirp_fe start'' returned 1:" When I run this command manually and on all subsequent puppet runs it succeeds. So I''m looking for a way to capture the console output from the invocation of /sbin/service chirp_fe start. Is there something