Re: [Puppet Users] Process hang on FreeBSD

2013-12-18 Thread Derek Cole
Just wanted to throw in that you should update to pkgng. pkg_add isnt even going to be an option in FreeBSD10. I have been using https://forge.puppetlabs.com/zleslie/pkgng successfully with FreeBSD10 Beta 3 and puppet. -- You received this message because you are subscribed to the Google Group

Re: [Puppet Users] rspec-puppet require syntax

2013-12-18 Thread Mikhail Simin
This syntax works for me: 'require' => [ 'User[nginx]', 'Exec[install_nginx]'] On Wednesday, October 2, 2013 4:45:01 AM UTC-7, Johan De Wit wrote: > > When 'require' multiple resources, you should copy what the catalog > contains : > > > > > > > > > * 'require' => '[User[nginx]{:name

[Puppet Users] Re: Puppet fails on aws instance using ruby19 yum install

2013-12-18 Thread Josh Miller
On Wednesday, December 4, 2013 1:29:25 PM UTC-8, Alexander Gray II wrote: > > same here. if anyone has an update, please post here. Thanks. >>> >> It looks like Amazon recently started providing ruby 1.9 vs 1.8 and puppet is expecting 1.8. I have installed puppet 3.3.2 via the puppetlabs yum r

[Puppet Users] Package management

2013-12-18 Thread Michael Bauer
Hi, I want to manage about 200 packages with Puppet and I want a separate "package"-resource for each package. The problem is: Every time, the Puppet-Agent does a "run" / "apply", he checks every 200 packages. Each package-check needs about 2 seconds. Altogether it takes about 400 seconds, w

Re: [Puppet Users] Help with Ubuntu Preseed Repository for Puppet Open Source

2013-12-18 Thread Jeff Bachtel
http://askubuntu.com/questions/150267/how-to-add-a-local-repository-in-kickseed-based-install Has an example that doesn't seem to use late_command. https://help.ubuntu.com/10.04/installation-guide/example-preseed.txt has it integrated into the preseed file (grep for local0 in the file), Jeff

[Puppet Users] Help with Ubuntu Preseed Repository for Puppet Open Source

2013-12-18 Thread Louis
Hi, I would like to set the puppet labs repository on my preseed ubuntu file. So far I think i can use only the* late_command* as a post installation process but wondering if there is another way of adding this repository. -- You received this message because you are subscribed to the Google

[Puppet Users] Is there any example to collect IPs of other nodes to generate a hash to be used in mysql_grant

2013-12-18 Thread Pan Luo
Hi there, I'm trying to setup the permissions on mysql database with multiple web servers using puppet-mysql module. I would like to collect all IPs of the web servers and run grant on the database server. It seems exported resources might help. The only way I can think of right now is to expo

[Puppet Users] Resources not exported from puppet agent run on the Puppet Master nodes with PuppetDB

2013-12-18 Thread Russell Harrison
I could use some help debugging a bazaar PuppetDB problem. Exported resources seem to be working fine everywhere except for on the Puppet Masters themselves. Whenever I run the puppet agent on them everything seems to go fine and I see the catalog getting submitted to PuppetDB in the logs. H

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Jason Antman
Stuart, You have *very* specific requirements here. In these situations, there are generally three options: 1) find someone else who's done it and use theirs 2) learn how to do it yourself 3) pay someone else to do it 4) don't do it You posted your question (which I assume you researched before p

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Stuart Cracraft
It's too expensive given our small company. On Wednesday, December 18, 2013 11:25:31 AM UTC-8, Ygor wrote: > > Try this link: > > http://puppetlabs.com/services/consulting > > “Sometimes I think the surest sign that intelligent life exists elsewhere > in the universe is that none of it has tried

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Dan White
Try this link: http://puppetlabs.com/services/consulting “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) - Original Message - From: "Stuart Cracraft" To: puppet-

[Puppet Users] ruby

2013-12-18 Thread Stuart Cracraft
How would I convert this program to output exactly the same thing but only for all the (noop) operations. We keep puppet in noop mode to audit its actions before they are applied. Thus it is necessary to ensure we understand exactly what all the nodes noop operations would be if we listed the noo

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Stuart Cracraft
thanks. who is your contact? I am not getting the help I need. > On Dec 18, 2013, at 10:00 AM, Jason Slagle wrote: > > Hi Stuart, > > Puppet Labs has a large professional service department that you might want > to engage with these very specific requests. I'm sure they can give you a >

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Jason Slagle
Hi Stuart, Puppet Labs has a large professional service department that you might want to engage with these very specific requests. I'm sure they can give you a hand with whatever you need done. Jason On 12/18/2013 12:55 PM, Stuart Cracraft wrote: What we are looking for is a Ruby program

Re: [Puppet Users] new puppet book revision

2013-12-18 Thread Stuart Cracraft
Okay, let us know your assessment of the book as well after you get further into it. And your critiques. On Wednesday, December 18, 2013 7:32:51 AM UTC-8, Benito Mourelo Caldeiro wrote: > On mar, 2013-12-17 at 14:27 -0800, Stuart Cracraft wrote: > > It looks like Amazon/publishers/authors/etc

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Stuart Cracraft
What we are looking for is a Ruby program which takes the contents of /var/lib/puppet/reports/*/*.yaml and reports in detail on everything changed or proposed for change if in noop mode (file permissions, modes, user creates, etc.) Stuart On Wednesday, November 27, 2013 7:12:48 AM UTC-8, Dav

Re: [Puppet Users] puppet resource for custom providers

2013-12-18 Thread Nan Liu
On Wed, Dec 18, 2013 at 8:33 AM, Giulio Eulisse wrote: > > I've written a custom Package provider, however when I try to query for > packages using via: > > > puppet resource Package > > it only shows me those coming via the default provider. > > Any idea of what I might be doing wrong? I'm using 3

Re: [Puppet Users] custom fact should not run on Solaris

2013-12-18 Thread Jeff Bachtel
I think that pattern's still good. Possibly that's the difference between a nil fact being set and the fact being missing, however. Jeff On 12/18/2013 10:40 AM, Felix Frank wrote: Yes, exactly, but this begs the question: Am I out of date for adding confine :operatingsystem => %w{Debi

[Puppet Users] puppet resource for custom providers

2013-12-18 Thread Giulio Eulisse
Hi, I've written a custom Package provider, however when I try to query for packages using via: > puppet resource Package it only shows me those coming via the default provider. Any idea of what I might be doing wrong? I'm using 3.2.4. -- Ciao, Giulio -- You received this message because y

Re: [Puppet Users] recursive descent

2013-12-18 Thread Andy Spiegl
On 2013-12-18, 07:27, jcbollinger wrote: > For example, you can keep the needed manifest code DRY and clear by > using a variable to specify the sources: Good idea, thanks! Andy. -- The foolish man seeks happiness in the distance, the wise grows it under his feet. -- James Oppenheim -- Yo

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Erik Dalén
Well, that is actually all resources managed rather than all resources changed. The changed resources are in the report. In my case we use puppetdb for report querying. On 18 December 2013 17:41, Erik Dalén wrote: > If that is all you want, run it with --write-catalog-summary and examine > the

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Erik Dalén
If that is all you want, run it with --write-catalog-summary and examine the resourcefile (puppet apply --configprint resourcefile) On 16 December 2013 14:14, David Portabella wrote: > Hi, thanks again for the info. > > This seems an overcomplicated issue. Just to step back and look at the > glo

Re: [Puppet Users] new puppet book revision

2013-12-18 Thread Benito Mourelo Caldeiro
On mar, 2013-12-17 at 14:27 -0800, Stuart Cracraft wrote: > It looks like Amazon/publishers/authors/etc. have revised the new > puppet book date: > > > http://www.amazon.com/Pro-Puppet-Spencer-Krum/dp/1430260408/ref=sr_1_3?ie=UTF8&qid=1387318030&sr=8-3&keywords=puppet+3 > > > Fun! I bought the

Re: [Puppet Users] custom fact should not run on Solaris

2013-12-18 Thread Felix Frank
Yes, exactly, but this begs the question: Am I out of date for adding confine :operatingsystem => %w{Debian SLES OpenSUSE CentOS} outside the setcode block? Thanks, Felix On 12/18/2013 04:34 PM, Jeff Bachtel wrote: > Facts are autoloaded from all modules and distributed to all agents, >

Re: [Puppet Users] custom fact should not run on Solaris

2013-12-18 Thread Jeff Bachtel
Facts are autoloaded from all modules and distributed to all agents, because that step occurs before the DSL is parsed for manifests (as it should be, because the DSL can be (is) impacted by facts). It is up to the custom fact to case itself out of execution for certain operating systems. For

Re: [Puppet Users] recursive descent

2013-12-18 Thread jcbollinger
On Wednesday, December 18, 2013 2:23:52 AM UTC-6, Andy Spiegl wrote: > > On 2013-12-17, 16:31, Ben Ford wrote: > > > If you override something in a recursive directory, you're > > overriding everything. > I see, that makes sense. > > > If you add source => 'puppet:///modules/nagios/var_lib_na

Re: [Puppet Users] How Puppet can evaluate the output od command?

2013-12-18 Thread jcbollinger
On Wednesday, December 18, 2013 3:40:21 AM UTC-6, shlo@gmail.com wrote: > > > I did not understand where exactly put the test line. I tried: > exec { "ls": > command => test $(grep -c aa /tmp/aao) -gt 0 > returns => 1, > path => "/usr/bin:/usr/sbin:/bin", > } >

Re: [Puppet Users] How Puppet can evaluate the output od command?

2013-12-18 Thread Jeff Bachtel
The command should be in single quotes, try exec { "ls": command => 'test $(grep -c aa /tmp/aao) -gt 0', returns => 1, path => "/usr/bin:/usr/sbin:/bin", } Note also that you were missing a comma after the command property, that must be present. Jeff On 12/18/2013 04:40 AM, shlo.af...@gmai

[Puppet Users] Re: very odd Duplicate declaration problem.

2013-12-18 Thread jcbollinger
On Tuesday, December 17, 2013 2:35:58 PM UTC-6, Nathan Earixson wrote: > > puppet 3.3.2 on RHEL6 > > If I run puppet on a node: > # sudo puppet agent --test --noop > > I get the following error: > > > > *Error: Could not retrieve catalog from remote server: Error 400 on > SERVER: Duplicate decla

[Puppet Users] Puppet agent on Solaris no logging

2013-12-18 Thread Andreas Dvorak
Dear all, I have RedHat Server with Puppet and logging in /var/log/puppet But on Solaris it does not work. I am using the CSWpuppet3 3.3.1 Do you have an idea? cat /etc/puppet/puppet.conf # puppet.conf [main] logdir = /var/log/puppet confdir = /etc/opt/csw/puppet config = $confdir/p

[Puppet Users] custom fact should not run on Solaris

2013-12-18 Thread Andreas Dvorak
Dear all I have a module spacewalk with a custom fact to define if the server has been registered to spacewalk. The module should only run on RedHat server class profiles::base { ... case $::osfamily { redhat:{ include spacewalk include logrotate include postfix }

Re: [Puppet Users] Error with service: "invalid byte sequence in US-ASCII"

2013-12-18 Thread Nawaid Shamim
Setting system locales worked Try running "dpkg-reconfigure locales" Thanks, Nawaid. On Tuesday, May 21, 2013 10:43:06 AM UTC+1, David Schmitt wrote: > > On 19.05.2013 14:18, Mateusz Fiołka wrote: > > I'm not sure if it is related to the services. It rather looks like > > puppet related to m

[Puppet Users] Re: Error "Illegal instruction (core dumped)" when running puppet agent (version 3.2.1)

2013-12-18 Thread asim patel
Hi All, even i am facing the same prob, when i am trying to start the puppet agent getting an error illegal instruction (core dump) please let me know the resolution On Tuesday, 28 May 2013 13:04:14 UTC+5:30, Aqeel Nazeer wrote: > > Hi, > I just upgraded my puppet to version to 3.2.1, and whe

[Puppet Users] Re: err: Could not send report: Error 400 on SERVER: (): found character that cannot start any token while scanning for the next token

2013-12-18 Thread John Naggets
Hi Charlie, Thanks for helping out here. I checked the /var/lib/puppet/state/last_run_report.yaml file but unfortunately there are no such files. I also tried running puppet agent --noop --test --verbose but it does not provide any more information relevant to this issue. I am using Debian 7 w

Re: [Puppet Users] How Puppet can evaluate the output od command?

2013-12-18 Thread shlo . afgin
I did not understand where exactly put the test line. I tried: exec { "ls": command => test $(grep -c aa /tmp/aao) -gt 0 returns => 1, path => "/usr/bin:/usr/sbin:/bin", } I got the error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: C

Re: [Puppet Users] How Puppet can evaluate the output od command?

2013-12-18 Thread Stephen Gran
On 12/18/2013 08:41 AM, shlo.af...@gmail.com wrote: Hi, I want to run a command something like: /cat /tmp/aao | grep aa | wc -l/ Check the output of that command, if the output is '0', I want to get a failure from puppet. I tried to use 'exec' with 'returns' but it's seem that 'returns' take t

[Puppet Users] How Puppet can evaluate the output od command?

2013-12-18 Thread shlo . afgin
Hi, I want to run a command something like: *cat /tmp/aao | grep aa | wc -l* Check the output of that command, if the output is '0', I want to get a failure from puppet. I tried to use 'exec' with 'returns' but it's seem that 'returns' take the return code of the command and not the output of

Re: [Puppet Users] new puppet book revision

2013-12-18 Thread Stuart Cracraft
Johan, Same in US as far as I see. Stuart > On Dec 18, 2013, at 12:22 AM, Johan De Wit wrote: > > In europe the delivery date from march 2014, moved to 24 december 2013. > > > > >> On 12/17/2013 11:27 PM, Stuart Cracraft wrote: >> It looks like Amazon/publishers/authors/etc. have revised t

Re: [Puppet Users] recursive descent

2013-12-18 Thread Andy Spiegl
On 2013-12-17, 16:31, Ben Ford wrote: > If you override something in a recursive directory, you're > overriding everything. I see, that makes sense. > If you add source => 'puppet:///modules/nagios/var_lib_nagios/plugins' then > I suspect you'll get what you want. You are right, that did it. Th

Re: [Puppet Users] new puppet book revision

2013-12-18 Thread Johan De Wit
In europe the delivery date from march 2014, moved to 24 december 2013. On 12/17/2013 11:27 PM, Stuart Cracraft wrote: It looks like Amazon/publishers/authors/etc. have revised the new puppet book date: http://www.amazon.com/Pro-Puppet-Spencer-Krum/dp/1430260408/ref=sr_1_3?ie=UTF8&qid=13873