On 06/17/2011 09:14 AM, lucas.brig...@ymail.com wrote:
Hi!
I'm doing a module for the "puppet" for WordPress will implement.
I'm having problems with this line:
exec { "tar -vzxf ${downdir}wordpress.tar.gz":
path =>
["/usr/local/bin","/opt/local/bin","/usr/bin","/us
On Jun 9, 6:28 pm, Nigel Kersten wrote:
> On your puppet master, make sure you have a filebucket 'main' defined, and
> that it's applying to all File resources. The easiest way is to put
> something like this in site.pp
>
> filebucket { "main": server => "debian5-1.localdomain", path => false }
>
Try Debian Backports repo. It has 2.6.8 version.
Regards.
17.06.2011 22:03, Dan Urist пишет:
2.6.3 is available from
https://launchpad.net/~mathiaz/+archive/puppet-backports. I haven't had
any issues with it.
On Thu, 16 Jun 2011 08:00:38 -0700
Craig White wrote:
I installed using gem instea
2.6.3 is available from
https://launchpad.net/~mathiaz/+archive/puppet-backports. I haven't had
any issues with it.
On Thu, 16 Jun 2011 08:00:38 -0700
Craig White wrote:
> I installed using gem instead of Lucid packages - not exactly for
> that reason (we are using ruby-enterprise and not Lucid
On Fri, Jun 17, 2011 at 3:50 AM, Andreas Kuntzagk <
andreas.kuntz...@mdc-berlin.de> wrote:
> Nigel Kersten wrote:
>
>>
>> I feel we've produced inconsistencies here, and given I added the
>> group membership support for OS X, it's largely my fault :)
>>
>> We've too closely modelled the tools for
Thanks much Nathan, it worked like a charm. :)
Thank you Peter and Luke; keep up the good work.
Regards,
A.
On Fri, Jun 17, 2011 at 6:50 PM, Nathan Clemons wrote:
> You want:
>
> file { "blah":
> ...
> }
> exec {"blah2":
> ...
> require => File['blah']
> }
>
> That way you ensure the file
You want:
file { "blah":
...
}
exec {"blah2":
...
require => File['blah']
}
That way you ensure the file is created before you try to run the exec.
--
Nathan Clemons
http://www.livemocha.com
The worlds largest online language learning community
On Fri, Jun 17, 2011 at 10:43 AM, Annie Ra
Hi,
Thanks much for help. Some how I managed to execute the original shell
script using command in exec "command=>'sh /tmp/QoS/QoS.sh'" and I used path
parameter as well "path=>'/sbin:/sbin/ipatbles:/bin:/usr/bin'" but I have to
run file and exec recipes separately one after another otherwise exec
On Fri, Jun 17, 2011 at 06:18:16PM +0100, Ken Barber wrote:
> So:
>
> name: unxslet01.ucop.edu
> parameters:
> fw_tcp_ports: 22 9080 3000
> classes:
> - firewall_wrapper
> - common::suse
> - firewall
>
> Is including both 'firewall' and 'firewall_wrapper'. But I think you
> are hitting non-dete
You should usually run the exec with:
exec { "asdf":
...
logoutput => on_failure,
...
}
This prints to screen any error. Anyway the clue for your case is in
the error message:
err: /Stage[main]//Node[lucas.com.br]/Wordpress::Install[ ]/Exec[tar
-vzxf /var/www/wordpress.tar.gz]/returns:
So:
name: unxslet01.ucop.edu
parameters:
fw_tcp_ports: 22 9080 3000
classes:
- firewall_wrapper
- common::suse
- firewall
Is including both 'firewall' and 'firewall_wrapper'. But I think you
are hitting non-deterministic ordering here ... you only really want
to include 'firewall_wrapper' and ha
Simple question, but does wordpress.tar.gz exist in /var/www/ ?
I would expect that you would want your tar exec to depend on whatever is
deploying the wordpress tar.gz file (another Exec or a File resource), so
that you know it's there before you try to use it.
--
Nathan Clemons
http://www.livem
Wouldn't have worked anyway, change "print" to "echo" and I forgot #!/
bin/bash... That's what I get for writing code from memory ;)
That's strange, I just put this in my Puppet server:
node 'puppetmaster' {
file { '/etc/shell_file':
ensure => present,
owner => 'root',
group => 'roo
Hi Luke,
I replaced my shell script with the one you wrote. Same old error message
appeared again 'change from notrun to 0 failed: /tmp/QoS/QoS.sh returned 1
instead of o at /etc/puppet/manifests/site.pp'
. Your script didn't generate any log at client machine. Now I am sure about
one thing that t
Hi Luke,
I replaced my shell script with the one you wrote. Same old error message
appeared again 'change from notrun to 0 failed: /tmp/QoS/QoS.sh returned 1
instead of o at /etc/puppet/manifests/site.pp'. Your script didn't generated
any log at client machine. Now I am sure about one thing that t
On Jun 16, 2011, at 10:48 PM, Patrick wrote:
>
> On Jun 14, 2011, at 11:56 AM, Craig White wrote:
>
>> I am using Ubuntu 10.04 and ruby-enterprise (not ubuntu ruby) and installed
>> puppet via gem.
>>
>> How can I install puppet-dashboard if I don't see a gem available and if I
>> use the ub
I'm out of ideas and I'd resort to hacking the script a bit to get
some debugging output. Try just this in QoS.sh to try identify what's
failing:
export LAN=eth1
export WAN=eth0
CMD="tc filter add dev ${WAN} parent 1:0 prio 4 protocol ip u32 match
ip tos 0x880xff classid 1:12"
OUT=$($CMD) > /tmp/Q
On Fri, Jun 17, 2011 at 9:55 AM, Nigel Kersten wrote:
>
>
> On Fri, Jun 17, 2011 at 7:15 AM, TJ Yang wrote:
>>
>> I am referring to puppet agent/client.
>> I hope future version can support this certificate reset/cleanup on
>> puppet agent.
>
> If you really do want agents to be able to clean ce
Thanks again Peter but sorry it didn't work out either.
On Fri, Jun 17, 2011 at 3:52 PM, Peter Bukowinski wrote:
> In your QoS.sh file, make sure to use explicit paths to executables, e.g:
>
> use '/sbin/iptables -blah …' NOT 'iptables -blah …'
>
>
> --
> Peter M. Bukowinski
> Systems Engineer
>
On Fri, Jun 17, 2011 at 7:15 AM, TJ Yang wrote:
>
> I am referring to puppet agent/client.
> I hope future version can support this certificate reset/cleanup on
> puppet agent.
If you really do want agents to be able to clean certificates on the master,
you can open up the API Access Control in
On Thu, Jun 16, 2011 at 1:59 PM, Gabriel Filion wrote:
> On 11-06-16 03:47 PM, Nathan Clemons wrote:
> > Or what you might want to do is to create a specific common directory
> > for code that should be shared, and per-environment directories which
> > contain code that should not be shared. If y
In your QoS.sh file, make sure to use explicit paths to executables, e.g:
use '/sbin/iptables -blah …' NOT 'iptables -blah …'
--
Peter M. Bukowinski
Systems Engineer
Janelia Farm Research Campus, HHMI
On Friday, June 17, 2011 at 10:44 AM, Annie Rana wrote:
> Hi Luke,
> What's your shell scri
Hello group!
I was working with puppetmaster 0.24 but I try to install the 2.6 version
from source; that work fine but I can't revert the installation. I want to
revert to 0.24 because I have more that 100 host with 0.24 clients.
I run Debian 5 "Lenny". This is the error:
Restarting puppet mas
Here is site.pp
==
file {"/tmp/QoS/QoS.sh":
ensure =>present,
owner=>'root',
group=>'root',
mode=>'777',
source=>'puppet://puppet/files/QoS.sh',
}
exec {"/tmp/QoS/QoS.sh":
require=>File['/tmp/QoS/QoS.sh'],
}
Here is the QoS.sh Script
Hi Luke,
What's your shell script expected to
do?
The shell script would generate Iptables rules
How do you know it didn't work?
I can check using ipatbles -L or iptables -t mangle -L commands
If you run it by hand in a root shell, does it work then?
Yes
If so,
there might be an environment pro
I need to add --server like following, otherwise it will won't finish the run.
(I don't have/want puppet entry in my /etc/hosts)
puppet agent --server=puppetmaster.test.com --test
--tags option is not need in my case.
tj
On Fri, Jun 17, 2011 at 7:52 AM, Stefan Goethals wrote:
>
> puppet agent
Your tar command failed. Does "tar -vzxf /var/www/wordpress.tar.gz"
work from a root shell? logoutput => true in the exec resource might
give you more information to help debug.
On Jun 17, 2:50 pm, "lucas.brigida" wrote:
> Hi!
>
> I'm doing a module for the "puppet" for WordPress will implement.
How do you know it didn't work? What's your shell script expected to
do? If you run it by hand in a root shell, does it work then? If so,
there might be an environment problem when running from Puppet, like
$PATH or something. Try set the parameter "logoutput => true" in the
exec resource.
On Jun
Thanks but it couldn't work though i got the message that shell script is
successfully executed.
On Fri, Jun 17, 2011 at 2:44 PM, Luke Bigum wrote:
> Annie,
>
> http://docs.puppetlabs.com/references/stable/type.html#exec
>
> By default the expected return code is probably zero, your script is
>
Martin
Thanks for the quick reply
On Fri, Jun 17, 2011 at 8:47 AM, Martin Alfke wrote:
> Hi,
> On Jun 17, 2011, at 2:49 PM, TJ Yang wrote:
>
>> How do I initiate a certificate request without going into non-daemon mode ?
>>
>> According to "Pro Puppet" book, so far the only way I know that can
>
Hi!
I'm doing a module for the "puppet" for WordPress will implement.
I'm having problems with this line:
exec { "tar -vzxf ${downdir}wordpress.tar.gz":
path =>
["/usr/local/bin","/opt/local/bin","/usr/bin","/usr/sbin"],
}
And the error generated is this:
err: /Stage[m
puppet agent --test (-t)
Zipkid
On 17 Jun 2011, at 14:49, TJ Yang wrote:
> How do I initiate a certificate request without going into non-daemon mode ?
>
> According to "Pro Puppet" book, so far the only way I know that can
> trigger a certficate request with puppet master is like this
>
> pu
Hi!
I'm doing a module for the "puppet" for WordPress will implement.
I'm having problems with this line:
exec { "tar -vzxf ${downdir}wordpress.tar.gz":
path => ["/usr/local/bin","/opt/local/bin","/usr/
bin","/usr/sbin"],
}
And the error generated is this:
err: /Stage[
On Jun 17, 2011, at 5:16 AM, linuxbsdfreak wrote:
> Hello All,
>
> Just had a query regarding catalog compiliation for nodes.
>
> When i compile the catalog on the puppetmaster with the command given
> below
>
> puppet master --compile
>
> When the client connects to puppetmaster. Does the c
Hi,
On Jun 17, 2011, at 2:49 PM, TJ Yang wrote:
> How do I initiate a certificate request without going into non-daemon mode ?
>
> According to "Pro Puppet" book, so far the only way I know that can
> trigger a certficate request with puppet master is like this
>
> puppet agent --server=puppetma
I could be wrong, as I'm still on 0.25 myself, but I think you want the
--waitforcert option.
--
Nathan Clemons
http://www.livemocha.com
The worlds largest online language learning community
On Fri, Jun 17, 2011 at 5:49 AM, TJ Yang wrote:
> How do I initiate a certificate request without goi
Annie,
http://docs.puppetlabs.com/references/stable/type.html#exec
By default the expected return code is probably zero, your script is
returning 1. Whether this is correct or not I don't know, but you can
tell puppet to expect a different return code:
exec { '/etc/shell_file':
require => File
I apologize for posting wrong log messages, here is the correct log:
notice: Starting catalog run
notice: //File[/tmp/QoS/QoS.sh]/ensure: created
err: //Exec[/tmp/QoS/QoS.sh]/returns: change from notrun to 0 failed:
/tmp/QoS/QoS.sh returned 1 instead of 0 at /etc/puppet/manifests/site.pp:10
notice
Hi Peter, thanks for your reply. I managed to copy the shell file puppet
client using the file resource recipe you specified but exec is throwing an
error, which is as follows:
info: No classes to store
info: Caching catalog at /var/lib/puppet/state/localconfig.yaml
notice: Starting catalog run
er
Hi,
I have this resource definition:
ssh_authorized_key { "nagios@login2":
key => [REDACTED]
user=> "nagios",
type=> "ssh-dss",
require => Service['nis'],
}
This nagios user comes from NIS, yp.conf and nsswitch.conf are handled by puppet
and configured before the key. I
How do I initiate a certificate request without going into non-daemon mode ?
According to "Pro Puppet" book, so far the only way I know that can
trigger a certficate request with puppet master is like this
puppet agent --server=puppetmaster.test.com --no-daemonize --verbose
but doing so will br
Hello All,
Just had a query regarding catalog compiliation for nodes.
When i compile the catalog on the puppetmaster with the command given
below
puppet master --compile
When the client connects to puppetmaster. Does the client take the
compile catalog created above?. Or does the puppetmaster
http://projects.puppetlabs.com/issues/5127
Addressing array by index is not possible with Version 2.6.1
Unfortunately we can't update our puppet :-(
Tahnk you all for your help.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this d
Nigel Kersten wrote:
On Fri, May 13, 2011 at 11:41 PM, Nan Liu wrote:
On Fri, May 13, 2011 at 4:20 PM, Corey Osman wrote:
Hi,
Why doesn't puppet resource group tell me who belongs to the group?
Given the group such as:
mg_team:x:501:smruph, cosman, msmith, mhankey
With the command:
puppet res
Hi,
I tried
notice { $callapidata[1]: }
=> Same Error:
Could not retrieve catalog from remote server: Error 400 on SERVER: can't
convert String into Integer at
/etc/puppet/myenv/modules/uc4client/manifests/init.pp:41 on node testnode
I use version 2.6.1
--
You received this message because
45 matches
Mail list logo