similar to: exec failure doesn't abort whole puppet transaction

Displaying 20 results from an estimated 30000 matches similar to: "exec failure doesn't abort whole puppet transaction"

2006 Aug 18
3
equivalent of "puts" in rhtml
Hi everyone, This seems so basic, and yet I can''t quite figure it out. Say I have some code in an .rhtml document: <%= if @session[:user_id] link_to somethingA else link_to somethingB link_to somethingC end -%> Only the link to somethingC will show in the second case. I understand that the last thing returned from that else block is that last line. In php i could just add
2013 Jan 24
1
puppet agent returns zero even when fails to execute a catalog
I am running below command to connect puppet master puppet agent --certname testcertname --no-daemonize --onetime --server server_host_name --verbose it outputs error like: Error: Execution of ''/usr/bin/yum -d 0 -e 0 -y install dnsmasq'' returned 1: Error: Cannot find a valid baseurl for repo: base Could not retrieve mirrorlist
2013 Aug 16
2
exit status of puppet agent --detailed-exitcodes
Hello group, is there a way to make puppet NOT return 2 if only exec{ } and notify{ } were called? Background is as follows: I''m calling puppet agent via cron on my hosts, and I want to get mails if something changes. For this, I used the exit code of "puppet agent --test --detailed-exitcodes", which should be 2 then (or 4/6 on error). Now, every stupid notify { } or exec{
2012 Mar 23
3
Puppet Windows exec
Hi, Is it correct that it''s not possible to excecute Windows Commands directly with the puppet run? For example: exec { ''ExecCreatedFolder'': command => "mkdir C:\PuppetOrdner\ExecCreatedFolder", } I allways have to bind it with a .bat file right? file { ''c:/PuppetFolder/puppettest.bat'': ensure => file,
2013 Jun 26
1
use of exec in puppet
Hi, I''ve tried to to exec function in puppet for enabling module for apache. Here is the code that I am using: class apache::mod { exec { "a2enmod" : command => "a2enmod proxy_http", path => "/usr/sbin/", notify => Class["apache::service"], require => Class["apache::install"], } } But in agent I''m getting the
2012 Oct 24
1
Exec python script on puppet clinet running on windows
I am trying to execute a python script from manifest file on puppet windows based client: exec {''ez_setup.py -U setuptools'': #command => ''C:\Python27\ez_setup.py -U setuptools'', cwd => ''C:\Python27'', path => ''C:\Python27;%PATH%'', #creates => ''C:\Program,
2012 Jun 20
5
puppet windows exec successful but not really
have the following in my manifest to delete old uninstall directories and logs using exec since we don''t have tidy for windows yet {code} exec { ''CleanupOldUninstallDirs'': command => ''C:\Windows\system32\forfiles.exe -p "C:\Windows" -m "$NtUninstall*" -d -65 -c "cmd /c dev /F /S /Q @path"'', }
2012 Oct 18
2
Different return codes on exec during puppet agent run vs command line Windows
Trying to run this exec in one of our manifests. When the resource is run during a puppet run, it returns a error code 87. But when I execute the same command on command prompt, it returns 3010. Is there any way to dig and and find out why the return codes are different. FYI, I am using the sysnative path to avoid the file system redirection on windows. Platform: Windows 2008R2 64 bit
2013 Feb 20
4
Puppet apply and send reports?
Hi all, I hope somebody can help me with something. We have a rather large number of netbooted nodes that we are running "puppet apply" via a script and a cron job every 30 minutes I was wondering if there is a way to configure puppet apply, to also send any reports to our dashboard server that is being used for our normal puppet clients and what would be the way to go about doing
2010 Mar 04
2
exec failure
Hello, I''m using puppet 0.25.1 - and I''m trying to create a custom resource to use launchctl to stop a launchd job. command => "launchctl stop `launchctl list | grep $job_real | cut -f 3`", yeilds: err: //sav/Stop_launchd_job[com.Symantec.SymSecondaryLaunch]/Exec[com.Symantec.SymSecondaryLaunch]/returns: change from notrun to 0 failed: launchctl stop `launchctl
2012 Aug 08
2
Exec resource don't write file after the command
Hi all, I''m trying to have the exec resource write a file after the command but it don''t. here is the resource declaration class gepet { notify { ''begin'':} file { ''/root/essai/html'': ensure => present, content => "Wrote By Yves Nton", notify => Exec[''test''], } exec { ''test'': path
2007 Jul 19
2
Problem to make service/package has installed and started before "exec" task
I am trying to manage MySQL DB with puppet. So I create a class and would like to set the mysql SQL root password at the beginning. However, the "exec" will run before mysql-server has installed or started which make "exec" failed. how can I make sure the package has installed/run before "exec" task? class mysql-server { package { "mysql":
2009 Jun 25
2
Ensure overriden service after exec has run
Hi, How do I force my Service declaration (with is defined elsewhere and inherited) is run after an exec has run? The code; class autofs_nis::services inherits services::base { Service[''ypbind''] { ensure => running, enable=> true, } ..... } class autofs_nis::exec inherits services::base { exec { "setdomainname": command
2008 Dec 29
4
Using an Exec inside a define
I''m working on a definition for activating/deactivating Apache modules 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,
2012 Jul 05
4
Double quotes within an exec statement
Hello all, I''ve been trying to run this exec statement (which to my peril was initially thought to be something simple): exec { "/opt/pbis/bin/config UserDomainPrefix "" " : } After the command is run I''m getting the following error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at '''' '';
2012 Feb 14
4
How to escape exec command parameters?
If I have a "simple" variable value, this works fine: capmon@peter:~> puppet -e ''$v="xyz" exec { f: command => "/bin/echo v is $v", logoutput => true }'' notice: /Stage[main]//Exec[f]/returns: v is xyz notice: /Stage[main]//Exec[f]/returns: executed successfully But how do I escape "bad" values of $v? Painful examples like the
2012 Jan 10
3
Exec depends on ressources that are several different types
Hi dear puppet users. I have an perl file that depends on a lib, that I want to execute. I have stripped the parts of config that weren''t relevant here such as owner, group and so on In perl script : use Config::Tiny. Script is stored on puppet master. Manifest : ____ file { "/path/to/file.pl": source => "puppet:///file.pl, mode => "0755" } package {
2012 Jan 13
2
Problem with not installing package, exec do an error
Hello I have a list of successive package, and it occured that some package are not installed. exec { ''sudo gem update --system'': path => [''/usr/bin/''], alias => updateGem, } package { '' libmemcached-dev'': ensure => present, alias => memDev, require => Exec[updateGem], } package { '' libmemcached-dbg'':
2013 Mar 19
2
Can I exec a bash function?
Hi, I have a file foo.sh which is basically a library of various bash functions. Is there a way to execute these functions from puppet? --Steffen -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to
2012 Apr 25
3
Exec and snmpd restart question
Hello Pros and users of Puppet. I have two problems with the following modul setup: My first problem that i tried every combination of require,notify,subscribe for the mail sending exec but it runs every single time when i run the module no matter if the files changed or not. Second problem that puppet reports that snmpd was refreshed by two resource and restarted but actually it doesnt happen.