Re: [Puppet Users] Problem in wordpress moodule.

2011-06-17 Thread vagn scott
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

[Puppet Users] Re: Puppet-dashboard not linking to filebucket or diffs

2011-06-17 Thread jw2dot...@gmail.com
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 } >

Re: [Puppet Users] puppet repository from puppetlabs

2011-06-17 Thread Sergey Zhuga
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

Re: [Puppet Users] puppet repository from puppetlabs

2011-06-17 Thread 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 instead of Lucid packages - not exactly for > that reason (we are using ruby-enterprise and not Lucid

Re: [Puppet Users] puppet resource for group

2011-06-17 Thread Nigel Kersten
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

Re: [Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Annie Rana
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

Re: [Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Nathan Clemons
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

Re: [Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Annie Rana
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

Re: [Puppet Users] dashboard ENC and parameterized classes

2011-06-17 Thread Ashley Gould
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

Re: [Puppet Users] Problem in wordpress moodule.

2011-06-17 Thread Ken Barber
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:

Re: [Puppet Users] dashboard ENC and parameterized classes

2011-06-17 Thread Ken Barber
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

Re: [Puppet Users] Problem in wordpress moodule.

2011-06-17 Thread Nathan Clemons
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

[Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Luke Bigum
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

Re: [Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Annie Rana
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

Re: [Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Annie Rana
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

Re: [Puppet Users] puppet dashboard

2011-06-17 Thread Craig White
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

[Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Luke Bigum
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

Re: [Puppet Users] Questions for puppet 2.6.8 client certificate management

2011-06-17 Thread TJ Yang
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

Re: [Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Annie Rana
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 >

Re: [Puppet Users] Questions for puppet 2.6.8 client certificate management

2011-06-17 Thread Nigel Kersten
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

Re: [Puppet Users] functions and environments

2011-06-17 Thread Nigel Kersten
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

Re: [Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Peter Bukowinski
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

[Puppet Users] Error on puppet restarting

2011-06-17 Thread Juan G. Narvaez
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

Re: [Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Annie Rana
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

Re: [Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Annie Rana
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

Re: [Puppet Users] Questions for puppet 2.6.8 client certificate management

2011-06-17 Thread TJ Yang
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

[Puppet Users] Re: Problem in wordpress module

2011-06-17 Thread Luke Bigum
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.

[Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Luke Bigum
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

Re: [Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Annie Rana
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 >

Re: [Puppet Users] Questions for puppet 2.6.8 client certificate management

2011-06-17 Thread TJ Yang
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 >

[Puppet Users] Problem in wordpress moodule.

2011-06-17 Thread lucas.brig...@ymail.com
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

Re: [Puppet Users] Questions for puppet 2.6.8 client certificate management

2011-06-17 Thread Stefan Goethals
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

[Puppet Users] Problem in wordpress module

2011-06-17 Thread lucas.brigida
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[

Re: [Puppet Users] Catalog compilation query

2011-06-17 Thread Patrick
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

Re: [Puppet Users] Questions for puppet 2.6.8 client certificate management

2011-06-17 Thread Martin Alfke
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

Re: [Puppet Users] Questions for puppet 2.6.8 client certificate management

2011-06-17 Thread Nathan Clemons
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

[Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Luke Bigum
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

Re: [Puppet Users] Puppet recipe to copy and execute a shell file

2011-06-17 Thread Annie Rana
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

Re: [Puppet Users] Puppet recipe to copy and execute a shell file

2011-06-17 Thread Annie Rana
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

[Puppet Users] ssh_authorized_key and NIS user

2011-06-17 Thread Andreas Kuntzagk
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

[Puppet Users] Questions for puppet 2.6.8 client certificate management

2011-06-17 Thread TJ Yang
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

[Puppet Users] Catalog compilation query

2011-06-17 Thread linuxbsdfreak
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

Aw: Re: [Puppet Users] Problem with usage of arrays

2011-06-17 Thread Roband
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

Re: [Puppet Users] puppet resource for group

2011-06-17 Thread Andreas Kuntzagk
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

Aw: Re: [Puppet Users] Problem with usage of arrays

2011-06-17 Thread Roband
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