Displaying 20 results from an estimated 20000 matches similar to: "Can puppet report the console output from service foo status?"
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/
2012 Oct 22
4
Possible to exclude an event in Puppet dashboard?
Hi All,
I was wondering if it is possible to NOT show an event in puppet dashboard.
I have an exec resource that fires of a ruby script. This is triggering a
changed event on every run, but actually I want to exclude this from
showing up as "CHANGED"
Is this possible, if so how can I achieve this?
---
myscript:
---
exec {
"run_myscript" :
#
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"
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
2011 Jan 11
2
Differences between puppet and puppetd
Hi all,
I am using Puppet to execute an Expect script (http://expect.sourceforge.net)
on a client. The Puppet recipe, test.pp, is:
exec { ''/root/test.exp'':
command => ''/root/test.exp'',
logoutput => true
}
The recipe runs correctly when run using ''puppet --debug --verbose test.pp'':
debug: /Stage[main]//Exec[/root/test.exp]:
2013 Sep 16
4
Executing command via puppet !
Hi,
Is it possible to get response of a command from puppet ?
For example if I run "nginx -t" it would give some details about the
configurations i.e. if configuration has some error then which file has the
error !
Regards
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving
2011 Aug 17
4
Puppet agent hangs for over a minute, no info in --summarize
Hoping you guys might be able to help me out, I''m not sure what''s
wrong but puppet agent hangs for over a minute, no resource spikes
(CPU, memory, etc all stay basically the same as without starting
puppet, barely a blip, and I''ve got more than enough headroom). It''s
not a serious issue for continuous usage, but really, really annoying
when testing the manifests
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
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 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,
2008 May 27
8
How to manage partitions and logical volumes with puppet?
Hi,
As someone new to puppet I''m trying to work out the best way to manage
different filesystems and logical volumes on different servers. Specifically
I would like to be able to define on a series of nodes different LVM logical
volumes to create and mount.
I''m trying to do this at the moment with a define of the following type:
# Manage a partition and create if needed.
2009 Oct 20
11
Stuck with puppet
Hello a newbie here.
The situation is that:
2 machine one master one client
Puppet 0.24.5
This my configuration:
Client:
/etc/puppet/puppetd.conf
[puppetd]
server = Asus-Vista-Box
logdir = /var/log/puppet
vardir = /var/lib/puppet
rundir = /var/run
master
/etc/puppet/manifests/classes/sudo.pp
class sudo {
file { "/etc/sudoers":
owner => "root",
2007 Mar 20
2
0.22.2 bug?
Hi,
I''ve just installed 0.22.2 and believe I''ve discovered a bug (or oversight).
I have an exec like this:
exec { "change-to-local-mirror":
command => "sed -i ''s#\(KERNEL_REPO.*=\).*#\1
$mirror#'' ${rulefile}",
path => "/usr/bin:/usr/sbin:/bin",
2010 Jan 28
2
Is anyone managing Glassfish configuration with puppet?
Has anyone found a clean way to manage Glassfish configuration with puppet?
Glassfish was designed to be managed through a WebUI or a CLI tool known as
asadmin. Making changes using these tools modifies a domain.xml file.
Glassfish reads and writes this file every time it restarts, even if the
contents are the same, which changes the timestamp. I believe this can be
addressed by setting puppet
2006 Sep 15
2
Execute commands on install not update
Maybe I''ve missed the obvious way of doing this, but is there an easy way to
do something only when a package is installed but not updated? I''ve tried a
few ideas but they all seem to be heading down the wrong path (tm). Thanks
in advance.
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
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,
2011 Feb 17
1
Nested defined resources
I''m working on a module to handle creating and populating Python
virtualenvs. Without going into too much detail, basically these are
nicely-encapsulated environments into which python packages can be
installed and run. It''s not uncommon to have several virtualenvs on a
system, potentially with the same packages installed (maybe different
versions).
Puppet''s defines
2013 Sep 18
1
All nodes stopped reporting to puppet enterprise console
My install was working for a couple of months until I rebooted my puppet
server. The clients do not report an error when I run puppet agent -t.
I''ve attempted to remove certificates and renew. The clients get new
certificates, but the console still does not update. Even the puppet
server itself is not updating as a client. After reboot the only thing I
have noticed that changed
2007 Mar 18
1
A wish or possible?
Hi,
One thing I''d like to be able to do is this...
define sedfile ( $file = '''', $target = '''', $pattern = '''', $options = ''-i -n''
, onlyif = '''' ) {
case $file {
'''': { err ( "Require valid filename: ''$file''" ) }
}
case $target {
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