Displaying 20 results from an estimated 4000 matches similar to: "when a puppet exec resource contains several "single commands", puppet exec only fails if the last exec command fails"
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 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 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,
2011 Aug 16
0
help using unless in exec for postgres database creation
Hi,
I have the following exec type:
exec{"createdb":
path => "/usr/bin:/usr/sbin:/bin",
command => "sudo -u postgres createdb -U postgres -E UNICODE opennms",
unless => "sudo -u postgres psql -l | grep opennms > /dev/null",
require => Service["postgresql"],
}
Where this basically says, if the
2010 Apr 16
1
Group Membership and Exec
Hi,
I have a puppet module that I''m using to manage Oracle 11G. I''m using
puppet 0.24.8 on 64-bit CentOS 5.4. Everything works properly except
the execution of the oracle installer. It fails because it believes
that the user it is running as is not a member of the proper groups.
However, the user is in the groups, and if I log in as that user and
run the same command that puppet
2011 Sep 14
10
fail to exec apt-get upgrade (change from notrun to 0 failed...)
So here is my manifest:
class aguu {
exec { "update":
command => "apt-get update",
path => "/usr/bin/"
}
exec { "upgrade":
command => "apt-get upgrade -y",
path => "/usr/bin/"
}
}
It it supposed to run apt-get update + upgrade
2011 Jan 12
1
change from notrun to 0 failed: returned 1 instead of 0
# cat iddmi.pp
class iddmi {
# define pkg variable
$pkg = $hardwareisa ? {
"sparc" => "Iddmi_SunOS_sparc.pkg",
"i386" => "Iddmi_SunOS_i386.pkg",
default => undef,
}
$ftpsystems = "ftp.example.net/download"
# define path deafult for exec
Exec { path =>
2009 Oct 08
2
Installing libhildonfm2-dev for scratchbox
What seems to be an easy thing to do as to install a library into
scratchbox is being something difficult to debug.
The command "/scratchbox/moz_scratchbox -p apt-get --yes --force-yes
install libhildonfm2-dev" can be run in a linux vm with the account
"cltbld" without any problems but when I try to test it from this same
slave (I remove first the package) or any other slave
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
2007 Dec 05
1
Is there a way to ''exec'' last
I''m wondering if there is any easy way to run a command after
everything else, something like:
exec {
when => "last"
command => "/usr/local/bin/update",
}
Or even "run these commands in the following order", as the last step.
The bottom line is that I''m trying to trigger certain behaviors after
the state of the system has
2010 Aug 04
1
Build fails due to missing ovirt-node-recipe.ks
> - ace -d install ovirt has one error : package ovirt-node-image-pxe
> not
> found
I get an error when FreeIPA is set up. Then a whole heap of notices and warning about a missing dependancy (presumably FreeIPA)
debug: //freeipa::bundled/Single_exec[ipa_server_install]: Executing '/usr/sbin/ipa-server-install -r ovirt.priv -p 'supersecretpw' -P 'supersecretpw' -a
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 {
2013 Aug 15
1
/usr/bin/apt-key: 8: /usr/bin/apt-key: mktemp: not found
When installing stackdriver on an ubuntu 12.04 machine, I get the following
error:
change from notrun to 0 failed: /usr/bin/apt-key: 8: /usr/bin/apt-key: mktemp: not found
Based on the instructions here <http://feedback.stackdriver.com/knowledgebase/articles/206135-ubuntu> on their website, my resource is as follows:
exec { ''add-stackdriver-key'':
command =>
2004 Oct 19
0
samba 3.0.7 make check fails in function strstr_m
Hi all,
I wanted to upgrade from samba 3.0.4 to 3.0.7 and installed Samba 3.0.7
in a seperate directory . OS is Solaris 8 on Sun-Sparc.
Python 2.3.3 (from sunfreeware) installed
libiconv 1.8 installed
When running "make check" i get the following output:
..........................
# make check
WARNING: you need to run ./config.status
Linking bigballofmud shared library
2012 Feb 16
4
Could not set present on ensure: Read-only file system
Hi,
I try install python-psycopg2 with other packages, when run apt-get -y
update returns the errors:
err: /Stage[main]/Etc/Package[build-essential]/ensure: change from
purged to present failed: Could not set ''present on ensure: Read-only
file system - /tmp/puppet20120216-1063-18q7lsz-0 at
/tmp/vagrant-puppet/manifests/vagrant.pp:15
err:
2012 Mar 08
0
Different behavior for pluginsync between "puppet agent --test" and "service puppet start"
I''ve got 3 custom facts configured within a couple of modules and am using
pluginsync to sync them to the clients. My clients are CentOS 5.7.
If I run "puppet agent --test -v", I get the following output and the
custom facts get loaded and I can use those facts in my module classes:
info: Loading downloaded plugin /var/lib/puppet/lib/facter/oraclehome.rb
info: Loading
2012 Jun 04
1
Need help resolving bad Puppet module entries for STIG
I discovered that a number of our STIG Puppet modules are failing. I am
thinking its because the code is wrong because when I make a quick chance
to the actual code being used, then the code actually works as intended.
STIG Puppet Code Repository:
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 Aug 01
0
Issues with some modules !!!
Hi,
I am new to puppet and have started evaluating various features in last few
days. I am not a developer and am mostly going to use the modules available
on github or puppet forge.
Currently I have tried all easier modules and they seem to work perfectly
without any issues, but now the problem is arising when I am trying to use
modules like mysql, tomcat etc...
For mysql I am using the module