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 Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/47f94b33-f9b6-4d98-9573-6364cfa51ace%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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=>"nginx"}, 
> Exec[install_nginx]{:command=>"install_nginx"}]',in the rspec file.  Thats 
> the only way i could make it pass the test.Grtsjo*
>
>
> On Saturday, 21 September 2013 01:52:34 UTC+2, Guy Knights wrote:
>>
>> No such luck. I all the above suggestions (capitalising class names, 
>> removing inner quotes) with another require:
>>
>>  * file { 'set_nginx_dir_permissions':*
>> *ensure  => directory,*
>> *path=> "/opt/nginx-${version}",*
>> *owner   => nginx,*
>> *group   => nginx,*
>> *mode=> '0644',*
>> *require => [User['nginx'],Exec['install_nginx']],*
>> *  }*
>>
>>  but it says the catalogue is set to *[User[nginx]{:name=>"nginx"}, 
>> Exec[install_nginx]{:command=>"install_nginx"}]*, which is what I was 
>> getting with the other require.
>>
>> On Thursday, 19 September 2013 22:12:34 UTC-7, Dan Bode wrote:
>>>
>>> I'm pretty sure the error is b/c the class names need to be capitalized.
>>>
>>>
>>> On Tue, Sep 17, 2013 at 10:05 AM, Guy Knights <
>>> g...@eastsidegamestudio.com> wrote:
>>>
 Can someone tell me the correct way to specify the following require 
 statement in an rspec-puppet test?

 *require => 
 [Class['ssl'],Class['pcre3'],Staging::Extract["nginx-${version}.tar.gz"]]*

 I tried this: *'require' => 
 "[Class['ssl'],Class['pcre3'],Staging::Extract['nginx-1.4.1.tar.gz']]"*but 
 got the following error:


 *Failure/Error: )*
 *expected that the catalogue would contain Exec[install_nginx] with 
 require set to 
 `"[Class['ssl'],Class['pcre3'],Staging::Extract['nginx-1.4.1.tar.gz']]"` 
 but it is set to `[Class[Ssl]{:name=>"Ssl"}, Class[Pcre3]{:name=>"Pcre3"}, 
 Staging::Extract[nginx-1.4.1.tar.gz]{:name=>"nginx-1.4.1.tar.gz"}]` in the 
 catalogue*

 I've tried every combination of different quotes, removing the inner 
 quotes, capitalising the resource titles, and even just copying and 
 pasting 
 what the error above says the catalogue is reporting, but it just doesn't 
 work. I thought I had the syntax for requires figured out, but apparently 
 not.

 Thanks,
 Guy

 -- 
 You received this message because you are subscribed to the Google 
 Groups "Puppet Users" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to puppet-users...@googlegroups.com.
 To post to this group, send email to puppet...@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users.
 For more options, visit https://groups.google.com/groups/opt_out.

>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b1fb2231-8c8e-4be2-9a65-b90c27fc4c8c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[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 
repository:

# rpm -q puppet
puppet-3.3.2-1.el6.noarch

# rpm -ql puppet | egrep -i command
/usr/lib/ruby/site_ruby/1.8/puppet/provider/command.rb
/usr/lib/ruby/site_ruby/1.8/puppet/type/nagios_command.rb
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line/puppet_option_parser.rb
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line/trollop.rb

I am working around this temorarily by editing /usr/bin/puppet and changing 
the first line to:

#!/usr/bin/ruby1.8

...of course, this requires that you have ruby-1.8 installed.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/10f3160f-aeab-47e7-86d9-3f9d069ea28c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[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, 
which is to much. I want the check to only few seconds. I heard that it 
would be possible if I use yaml with using a single command which contains 
all the desired packages. But I don't know how to do it.

Hopefully someone can help.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/108cb765-add9-4f0b-ad2e-fa521836ec8b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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

On 12/18/2013 09:08 PM, Louis wrote:

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 
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/64e7bbda-b2c3-4176-9cc4-2e46a9f1b16c%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52B25D89.4010309%40bericotechnologies.com.
For more options, visit https://groups.google.com/groups/opt_out.


[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 Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/64e7bbda-b2c3-4176-9cc4-2e46a9f1b16c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[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 export the file resources on each web node with IP as the content 
and collect them on the db node. Then I have to load those file content 
using a custom function. Then generate a hash from them that will be sent 
to mysql::server grants variable. 

Is there a easier way to do it? Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/bfe2880e-0f5c-4f6d-b65b-9e832f4f9510%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[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.  However, when I run puppet on the node that should collect these 
resources they aren't applied. Querying PuppetDB via the API shows no 
resources exported for puppet1 or puppet2.  Again, all other nodes are 
exporting their resources as expected.

The only differences I can think between the masters and regular nodes are:

   - The puppetdb-terminus package is installed
   - They have /etc/puppet/routes.yaml and /etc/puppet/puppetdb.conf
   - storeconfigs = true and storeconfigs_backend = puppetdb is set in the 
   [main] section of puppet.conf
   - The certs for the masters were created using --dns-alt-names 
   puppet.example.com
   

This is were I'm really stumped. When I query the PostgreSQL database 
directly I see all of the resources should have been exported from both 
nodes in the catalog_resources table. It looks like the catalog has been 
correctly submitted to PuppetDB and was correctly stored in the database.  
Its just not being returned by PuppetDB either from the API or during a 
catalog compile.

My setup is basically fully stock using the puppetlabs-puppetdb module with 
PuppetDB and PostgreSQL hosted together on a host other than the master 
servers and I've got a certificate-whitelist set up with the certnames for 
puppet1, puppet2, and puppetdb1 in it.  Ironically configured using 
exported resources presumably from ActiveRecord storeconfigs before I 
pushed the change to point to my newly set up PuppetDB.

Any help would be much appreciated.  I'm at a loss here.

Russell

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/4613c8d2-2c61-4bb0-9554-6d26610bb598%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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 posting,
and did not find an appropriate solution) and nobody has yet stepped
forward to say "I have that," though you have been given many examples,
some very detailed, and haven't given back any indication that you tried
them. If the prices that PL charges for consulting are too expensive,
and the same is true for hiring some random ruby coder, I think either
you (or someone at your company) need to learn ruby, or reassess how you
are using Puppet and your requirements. From your many previous posts,
it seems like you're asking things of puppet that are relatively uncommon.

There have been some very good responses in this thread, including the
(IMO) best, which is to use PuppetDB and its API, in which case you also
wouldn't be restricted to Ruby. What have you tried so far? What issues
do you have with the various options?

This list has over 6,600 members, and you alone are responsible for a
whopping 10% (yes, one in ten) of the posts in the last month. If you
feel that the responses you receive are not adequate, perhaps you should
be more judicious in how quickly you appeal to the community for an
answer, how much detail you give (specifically "I tried this  and seem to be experiencing this "),
and give a better indication that you've actually tried the suggested
solutions, and what the results were.

On 12/18/2013 02:46 PM, Stuart Cracraft wrote:
> 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 to contact us.”
> Bill Waterson (Calvin & Hobbes)
>
> 
> *From: *"Stuart Cracraft" >
> *To: *puppet...@googlegroups.com 
> *Sent: *Wednesday, December 18, 2013 1:01:42 PM
> *Subject: *Re: [Puppet Users] get a *structured* version of the
> puppet agent output
>
>
> 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 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 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
> >
> > --
> > You received this message because you are subscribed to a topic
> in the Google Groups "Puppet Users" group.
> > To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/cHpZlKkPmr4/unsubscribe
> .
> > To unsubscribe from this group and all its topics, send an email
> to puppet-users...@googlegroups.com .
> > To view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/puppet-users/52B1E2AB.7060909%40tacorp.net
> 
> .
> > For more options, visit https://groups.google.com/groups/opt_out
> .
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to puppet-users...@googlegroups.com .
> To view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/puppet-users/36C6B660-92B8-4056-B82D-789C1B0AE7ED%40me.com
> 
> .
> For more options, visit https://groups.google.com/groups/opt_out
> .
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/65902161-3831-4b46-8

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 to contact us.”
> Bill Waterson (Calvin & Hobbes)
>
> --
> *From: *"Stuart Cracraft" >
> *To: *puppet...@googlegroups.com 
> *Sent: *Wednesday, December 18, 2013 1:01:42 PM
> *Subject: *Re: [Puppet Users] get a *structured* version of the puppet 
> agent output
>
>
> 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 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 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
> > 
> > -- 
> > You received this message because you are subscribed to a topic in the 
> Google Groups "Puppet Users" group.
> > To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/puppet-users/cHpZlKkPmr4/unsubscribe.
> > To unsubscribe from this group and all its topics, send an email to 
> puppet-users...@googlegroups.com .
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/52B1E2AB.7060909%40tacorp.net
> .
> > For more options, visit https://groups.google.com/groups/opt_out.
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to puppet-users...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/36C6B660-92B8-4056-B82D-789C1B0AE7ED%40me.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/65902161-3831-4b46-8828-d80f2f3355f1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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-users@googlegroups.com 
Sent: Wednesday, December 18, 2013 1:01:42 PM 
Subject: Re: [Puppet Users] get a *structured* version of the puppet agent 
output 


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 
> 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 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 
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Puppet Users" group. 
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/puppet-users/cHpZlKkPmr4/unsubscribe. 
> To unsubscribe from this group and all its topics, send an email to 
> puppet-users+unsubscr...@googlegroups.com. 
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/52B1E2AB.7060909%40tacorp.net. 
> For more options, visit https://groups.google.com/groups/opt_out. 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group. 
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com. 
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/36C6B660-92B8-4056-B82D-789C1B0AE7ED%40me.com.
 
For more options, visit https://groups.google.com/groups/opt_out. 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/184556643.104256.1387394731423.JavaMail.root%40sz0126a.westchester.pa.mail.comcast.net.
For more options, visit https://groups.google.com/groups/opt_out.


[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 noop restriction for a normal
apply.

This program will report in a reasonable format for those non-noop 
executed actions, but we want the reverse.

 

#!/usr/bin/ruby 

 

require 'puppet'

if defined?(ARGV)

   filename = ARGV.first

 

   if defined?(filename)

   report = YAML.load_file(filename)

   print "Report for : "

   puts report.host

   print "Started : "

   puts report.time

   print "Log count: "

   puts report.logs.size

   print "Metrics count: "

   puts report.metrics.size

   print "Resource Status count: "

   puts report.resource_statuses.size

   print "Status: "

   puts report.status

 

   report.logs.each do |logg|

   puts "LOG -"

   if logg.file

   print "File: "

   puts logg.file

   end

 

   if logg.line

   print "Line: "

   puts logg.line

   end

 

   print "Level: "

   puts logg.level

   print "Message: "

   puts logg.message

   print "Source: "

   puts logg.source

   print "Tags: "

   puts logg.tags.join(" ")

   print "Time: "

   puts logg.time

   end

 

   report.resource_statuses.keys.each do |kk|

   if report.resource_statuses["#{kk}"].change_count > 0

   puts "RESOURCE STATUS "

   puts "#{kk} "

   report.resource_statuses["#{kk}"].events.each do |line|

   print "property: "

   puts line.property

   print "message: "

   puts line.message

   print "name: "

   puts line.name

   print "status: "

   puts line.status

   print "when: "

   puts line.time

   end

   end

   end

   puts "-"

   end

end

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/da81b10c-a6e1-4e20-9f98-ad43d3038688%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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 
> 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 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
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Puppet Users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/puppet-users/cHpZlKkPmr4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/52B1E2AB.7060909%40tacorp.net.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/36C6B660-92B8-4056-B82D-789C1B0AE7ED%40me.com.
For more options, visit https://groups.google.com/groups/opt_out.


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 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



--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52B1E2AB.7060909%40tacorp.net.
For more options, visit https://groups.google.com/groups/opt_out.


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. 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 alfa book, and today I could download the PDF of the 2nd 
> edition from apress.com. 
>
> Saudos, Benito. 
>
>
>
>
>
>
>   
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/cc4ad721-f2a2-4647-9e10-14386b78b345%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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, David Portabella wrote:

> Thanks again! It is great to use the puppet report yaml files!
> here there is an example script that prints all resources statuses, 
> then it filters them by taking only the services,
> then it filters them by taking only the services changed to running.
>
> test.ruby
> #!/usr/bin/ruby 
>
> require 'puppet' 
> filename = ARGV.first 
> report = YAML.load_file(filename) 
> rs = report.resource_statuses.values.sort_by{|r| r.resource}
>
> puts "PRINT ALL RESOURCES STATUSES."
> rs.each do |r| 
>   puts "#{r.change_count} #{r.events.map {|e| e.previous_value}} 
> #{r.events.map {|e| e.desired_value}} #{r.resource}"
> end 
>
> puts "PRINT ALL SERVICES."
> services = rs.select{|r| r.resource_type == 'Service'}
> services.each do |r| 
>   puts "#{r.change_count} #{r.events.map {|e| e.previous_value}} 
> #{r.events.map {|e| e.desired_value}} #{r.resource}"
> end 
>
> puts "PRINT ALL SERVICES CHANGED TO RUNNING."
> services_changed_to_running = rs.select{|r| r.resource_type == 'Service' 
> && r.change_count > 0 && r.events.index { |e| e.desired_value == :running } 
> != nil}
> services_changed_to_running.each do |r| 
>   puts "#{r.change_count} #{r.events.map {|e| e.previous_value}} 
> #{r.events.map {|e| e.desired_value}} #{r.resource}"
> end 
>  
> example output:
> $ test.ruby /var/opt/lib/pe-puppet/reports/test/201311261645.yaml 
> PRINT ALL RESOURCES STATUSES.
> 1 [:absent] [:directory] File[/var/app]
> 1 [:absent] [:file] File[/var/app/app.conf]
> 2 [0, "755"] [91, "775"] File[/var/log/tomcat6]
> 0 [] [] Filebucket[puppet]
> 1 [:absent] [:present] Group[release]
> 1 [:absent] [:present] Package[varnish]
> 0 [] [] Schedule[weekly]
> 1 [:stopped] [:running] Service[varnish]
> 0 [] [] Tidy[/etc/collectd.d/]
> 1 ["/sbin/nologin"] ["/bin/bash"] User[tomcat]
> ...
>
> PRINT ALL SERVICES.
> 1 [:stopped] [:running] Service[collectd]
> 1 [:stopped] [:running] Service[logstash-agent]
> 1 [:true] [:false] Service[logstash]
> 1 [:stopped] [:running] Service[nginx]
> 0 [] [] Service[rsyslog]
> 1 [:stopped] [:running] Service[statsd]
> 1 [:false] [:true] Service[supervisord]
> 1 [:stopped] [:running] Service[varnish]
>
> PRINT ALL SERVICES CHANGED TO RUNNING
> 1 [:stopped] [:running] Service[collectd]
> 1 [:stopped] [:running] Service[logstash-agent]
> 1 [:stopped] [:running] Service[nginx]
> 1 [:stopped] [:running] Service[statsd]
> 1 [:stopped] [:running] Service[varnish]
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/37dc9802-5090-4502-aac2-c3f6421236fa%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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.2.4.
>

The provider is probably missing self.instances method required to populate
this data.

Nan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CACqVBqDagj_J6tU8QPtmzmTPr%2BET%2Bt78Zpmgo7YPhXYDmYbbpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


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{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,
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 instance, from the postgresql pupmod comes this
snippet from the customer fact about default versions:

Facter.add("postgres_default_version") do
   setcode do
 result =
   case Facter.value('osfamily')
 when 'RedHat'
   get_redhatfamily_postgres_version()
 when 'Linux'
   get_redhatfamily_postgres_version()
 when 'Debian'
   get_debianfamily_postgres_version()
 else
   nil
   end

Jeff


--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52B1DCF4.5%40bericotechnologies.com.
For more options, visit https://groups.google.com/groups/opt_out.


[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 you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1ceb04c6-47d4-466f-a8df-5783440aeddc%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/20131218163912.GA4246%40spiegl.de.
For more options, visit https://groups.google.com/groups/opt_out.


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 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
>> global picture:
>> we are just asking to get the list of all resources updated when
>> executing "puppet apply" in a non master/agent puppet environment.
>> this should be a basic functionality; we are not asking something weird.
>>
>> after Christmas I'll take a look at installing PuppetDB in the same
>> virtual machine, connecting puppet apply to it, and try to get the list of
>> resources updated by puppet apply.
>>
>>
>> Regards,
>> David
>>
>> On Sunday, December 15, 2013 8:59:37 PM UTC+1, Charlie Sharpsteen wrote:
>>>
>>> On Friday, December 13, 2013 2:43:41 PM UTC-8, David Portabella wrote:
>>>
>>>
 is there a way to get the list of resources created when using a puppet
 apply (instead of puppet agent)?

 the point is that we need this when refactoring puppet modules, in
 order to test the modules in a vagrant machine and check that there are not
 regression issues.
 so, i run our current puppet modules in a vagrant machine, get the list
 of all puppet resources created,
 then i refactor the puppet modules, i run again the refactored puppet
 modules in a new vagrant machine,
 and i compare all the files and other resources.

>>>  If you are looking to keep track of resources while refactoring, then
>>> there are a few approaches you can take:
>>>
>>>1. Add another VM to your Vagrant environment that runs a Puppet
>>>Master and do the refactoring there. This gives you access to tools such 
>>> as
>>>PuppetDB and the Dashboard while also simulating how your refactor will
>>>affect an agent/master setup.
>>>2. Set up your VM such that puppet apply submits the catalog and
>>>reports to PuppetDB: https://docs.puppetlabs.com/
>>>
>>> puppetdb/1.5/connect_puppet_apply.html
>>>3. Configure configure YAML caching for puppet apply in
>>>/etc/puppet/routes.yaml:
>>>
>>>
>>> ---
>>> apply:
>>>   catalog:
>>> cache: yaml
>>>
>>> This will cause puppet apply to save a copy of the last compiled
>>> catalog to /var/lib/puppet/state/client_yaml/catalog/.yaml.
>>> The information in this file can be combined with the report in
>>> /var/lib/puppet/state/last_run_report.yaml to create a list of applied
>>> resources along with their properties and resulting changes.
>>>
>>> The first two approaches will cut down on the amount of custom code you
>>> need to write as the task of parsing and storing the reports and catalogs
>>> is handled by PuppetDB or the dashboard. Approach 3 works as well and
>>> offers a lot of control, but you will need to write a bit of code that
>>> extracts data from the catalog and report files before you can focus on the
>>> analysis.
>>> --
>>> Charlie Sharpsteen
>>> Open Source Support Engineer
>>> Puppet Labs
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to puppet-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/puppet-users/6d2793ce-0b9f-468b-bc35-76b149f31f46%40googlegroups.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Erik Dalén
>



-- 
Erik Dalén

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAAAzDLdTcE0nAObFJC0ZgPSEiXA2ST1hOz8g8LYkXEh1PC61EQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


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
> global picture:
> we are just asking to get the list of all resources updated when executing
> "puppet apply" in a non master/agent puppet environment.
> this should be a basic functionality; we are not asking something weird.
>
> after Christmas I'll take a look at installing PuppetDB in the same
> virtual machine, connecting puppet apply to it, and try to get the list of
> resources updated by puppet apply.
>
>
> Regards,
> David
>
> On Sunday, December 15, 2013 8:59:37 PM UTC+1, Charlie Sharpsteen wrote:
>>
>> On Friday, December 13, 2013 2:43:41 PM UTC-8, David Portabella wrote:
>>
>>
>>> is there a way to get the list of resources created when using a puppet
>>> apply (instead of puppet agent)?
>>>
>>> the point is that we need this when refactoring puppet modules, in order
>>> to test the modules in a vagrant machine and check that there are not
>>> regression issues.
>>> so, i run our current puppet modules in a vagrant machine, get the list
>>> of all puppet resources created,
>>> then i refactor the puppet modules, i run again the refactored puppet
>>> modules in a new vagrant machine,
>>> and i compare all the files and other resources.
>>>
>>  If you are looking to keep track of resources while refactoring, then
>> there are a few approaches you can take:
>>
>>1. Add another VM to your Vagrant environment that runs a Puppet
>>Master and do the refactoring there. This gives you access to tools such 
>> as
>>PuppetDB and the Dashboard while also simulating how your refactor will
>>affect an agent/master setup.
>>2. Set up your VM such that puppet apply submits the catalog and
>>reports to PuppetDB: https://docs.puppetlabs.com/
>>
>> puppetdb/1.5/connect_puppet_apply.html
>>3. Configure configure YAML caching for puppet apply in
>>/etc/puppet/routes.yaml:
>>
>>
>> ---
>> apply:
>>   catalog:
>> cache: yaml
>>
>> This will cause puppet apply to save a copy of the last compiled catalog
>> to /var/lib/puppet/state/client_yaml/catalog/.yaml. The
>> information in this file can be combined with the report in
>> /var/lib/puppet/state/last_run_report.yaml to create a list of applied
>> resources along with their properties and resulting changes.
>>
>> The first two approaches will cut down on the amount of custom code you
>> need to write as the task of parsing and storing the reports and catalogs
>> is handled by PuppetDB or the dashboard. Approach 3 works as well and
>> offers a lot of control, but you will need to write a bit of code that
>> extracts data from the catalog and report files before you can focus on the
>> analysis.
>> --
>> Charlie Sharpsteen
>> Open Source Support Engineer
>> Puppet Labs
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/6d2793ce-0b9f-468b-bc35-76b149f31f46%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Erik Dalén

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAAAzDLdZKfuqaOSWzgZYuJFHCaJ6oYgnSbUQ3RcMe0hkivcvhw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


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 alfa book, and today I could download the PDF of the 2nd
edition from apress.com.

Saudos, Benito.






 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1387380771.25983.6.camel%40minho.
For more options, visit https://groups.google.com/groups/opt_out.


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,
> 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 instance, from the postgresql pupmod comes this
> snippet from the customer fact about default versions:
> 
> Facter.add("postgres_default_version") do
>   setcode do
> result =
>   case Facter.value('osfamily')
> when 'RedHat'
>   get_redhatfamily_postgres_version()
> when 'Linux'
>   get_redhatfamily_postgres_version()
> when 'Debian'
>   get_debianfamily_postgres_version()
> else
>   nil
>   end
> 
> Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52B1C1DF.6010608%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/groups/opt_out.


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 instance, from the postgresql pupmod comes this 
snippet from the customer fact about default versions:


Facter.add("postgres_default_version") do
  setcode do
result =
  case Facter.value('osfamily')
when 'RedHat'
  get_redhatfamily_postgres_version()
when 'Linux'
  get_redhatfamily_postgres_version()
when 'Debian'
  get_debianfamily_postgres_version()
else
  nil
  end

Jeff

On 12/18/2013 09:29 AM, Andreas Dvorak wrote:

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
}
solaris:{
  include sendmail
}
default:{
  fail("Unsupported platform: ${::osfamily}")
}
  }
}

but the fact of the module spacewalk is run on Solaris.
bash-3.00# /opt/csw/bin/facter osfamily
Solaris
bash-3.00# /opt/csw/bin/puppet agent --test
Info: Retrieving plugin
Notice: /File[/var/opt/csw/puppet/lib/facter/spacewalk.rb]/ensure: 
defined content as '{md5}9aea0fbd79bc329b3685b7cfd22a5809'


I have another custom fact that should only run on certain server but 
it is installed on every server.

Can you please help me?
Are facts always installed on every server even if the module of the 
fact in only installed on certain server?


Best regards,
Andreas
--
You received this message because you are subscribed to the Google 
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/95b66593-0ff9-4ffe-b54c-963bb84f7010%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52B1C08F.80800%40bericotechnologies.com.
For more options, visit https://groups.google.com/groups/opt_out.


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_nagios/plugins' 
> then 
> > I suspect you'll get what you want. 
> You are right, that did it.  Thanks! 
>
> > I should also point out that this is unnecessary, as Puppet will 
> > automatically promote read permissions to read & execute permissions 
> > for directories. 
> No, not exactly as the mode definition is meant for the files in the 
> subdirectory.  There are executables in "bin" and "plugins". 
>
> So, what would be a better way of changing the mode of some files 
> within a directory resource with "recurse" activated?  Adding "source" 
> for all of them seems awkward... 
>
>
 
Sorry, Puppet does not do the kind of resource property merging that you 
seem to want.  As Ben wrote, when you have an explicit declaration of a 
File resource that otherwise would be managed via a recursive directory 
resource, the explicit declaration is the only one considered.  Consider 
that the sources of the /var/lib/nagios/{plugins,bin} directories needn't 
actually appear on the masters as subdirectories of the source for 
/var/lib/nagios -- expressing the sources explicitly is not awkward, it's 
appropriate.

There are a few things you could do to make this more palatable.  For 
example, you can keep the needed manifest code DRY and clear by using a 
variable to specify the sources:

  $nagios_source = 'puppet:///modules/nagios/var_lib_nagios'
  file { '/var/lib/nagios': 
ensure=> directory, 
source=> ${nagios_source}, 
recurse   => true, 
mode  => '0664', 
  } 
  file { '/var/lib/nagios/plugins': 
ensure=> directory, 
source=> "${nagios_source}/plugins", 
recurse   => true, 
mode  => '0775', 
  } 
  file { '/var/lib/nagios/bin': 
ensure=> directory, 
source=> "${nagios_source}/bin", 
recurse   => true, 
mode  => '0775', 
  } 


Alternatively, packages are sometimes better than recursive File resources 
for managing directory trees.

Or you could abandon managing file modes for the whole /var/lib/nagios tree 
via File resources, and do it instead via an Exec.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/96a5ef72-2784-42ef-890f-f1f52c12fe66%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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",
> } 
> I got the error:
> Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
> Could not match $(grep at /etc/puppet/.../init.pp:4 on node agent
>
>
Add

  provider => 'sh'

to the exec.  Or, better, the command

  grep -q 'aa' /tmp/aao

better and more simply matches your intent: it exits 0 if any match is 
found, or nonzero otherwise.  No need for wc.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/6ac45a8a-9e1d-455d-ad69-8778cd98df18%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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...@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",
}
I got the error:
Error: Could not retrieve catalog from remote server: Error 400 on 
SERVER: Could not match $(grep at /etc/puppet/.../init.pp:4 on node 
agent


I need the test to run each time Puppet run.
Thank you for your quick response.

On Wednesday, December 18, 2013 11:11:00 AM UTC+2, Stephen Gran wrote:

On 12/18/2013 08:41 AM, shlo@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
> the return code of the command and not the output of the command.
> How can I do it right?

test $(grep -c aa /tmp/aao) -gt 0

Cheers,

-- 
Stephen Gran

Senior Systems Integrator - theguardian.com 
Please consider the environment before printing this email.
--
Visit theguardian.com 

On your mobile, download the Guardian iPhone app
theguardian.com/iphone  and our
iPad edition theguardian.com/iPad 
Save up to 33% by subscribing to the Guardian and Observer -
choose the papers you want and get full digital access.
Visit subscribe.theguardian.com 

This e-mail and all attachments are confidential and may also
be privileged. If you are not the named recipient, please notify
the sender and delete the e-mail and all attachments immediately.
Do not disclose the contents to another person. You may not use
the information for any purpose, or store, or copy, it in any way.

Guardian News & Media Limited is not liable for any computer
viruses or other material transmitted with or as part of this
e-mail. You should employ virus checking software.

Guardian News & Media Limited

A member of Guardian Media Group plc
Registered Office
PO Box 68164
Kings Place
90 York Way
London
N1P 2AP

Registered in England Number 908396

--


--
You received this message because you are subscribed to the Google 
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d0a7ec9b-82a7-4f1d-800c-29ddd53cc480%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52B1B810.5090906%40bericotechnologies.com.
For more options, visit https://groups.google.com/groups/opt_out.


[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 declaration: Package[bind] is already declared in file 
> /etc/puppet/modules/site/manifests/dns_test.pp:4; cannot redeclare at 
> /etc/puppet/modules/site/manifests/dns.pp:4 on node 
> bushlnxadm01.chicagobooth.edu 
> Warning: Not using cache on failed 
> catalogError: Could not retrieve catalog; skipping run*
>
>
> That's weird. That node isn't a DNS server and shouldn't even be thinking 
> about running bind.
>
> If I open /etc/puppet/manifests/site.pp and save the file, the error goes 
> away on next puppet agent run.
>
> After about 15 minutes the node starts trying to apply the classes from 
> */etc/puppet/modules/site/manifests/dns_test.pp 
> *and after another 5 or so minutes I start getting the duplicate 
> declaration error again.
>
> If I save the manifest the puppet agent command works as expected for 
> another 15 minutes or so.
>
>
>
> I can't even begin to think of where to start looking on this. Any 
> thoughts would be appreciated.
> This seems to be happening on every node.
>
>

Strange caching behavior sometimes results when you have declarations at 
top level in a manifest other than site.pp or one directly or indirectly 
'import'ed by site.pp.  For instance,

/my_module/manifests/init.pp:

class my_module {
  # doesn't matter
}

# Oops:
include dns_test

# Also oops:
Class['dns'] -> Class['my_module']


That sort of thing is very bad form because any declaration at top scope 
(i.e. outside any class, node, or type definition) applies, in principle, 
to all nodes, but manifests that are (only) autoloaded are may not actually 
be evaluated for every node.  The manifest author's intention is often that 
the top-scope declaration apply only to nodes that declare the class or 
type associated with the manifest, but that's not the actual semantics.

Behavior much like what you describe can result: everything works as 
intended when the master first starts, but after a node checks in that 
declares a certain class or type, nodes that subsequently check in get 
cached top-scope declarations that were not intended for them.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/f5ad49c5-a8f0-49e9-852d-d38af59d2731%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[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/puppet.conf
vardir = /var/opt/csw/puppet
ssldir = $vardir/ssl
server = rh6-puppet-master.baag
pluginsync = true

[agent]
classfile = $vardir/classes.txt
localconfig = $vardir/localconfig

Best regards
Andreas

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d8ba5045-49f8-4eb2-b71c-376f13069717%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[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
}
solaris:{
  include sendmail
}
default:{
  fail("Unsupported platform: ${::osfamily}")
}
  }
}

but the fact of the module spacewalk is run on Solaris.
bash-3.00# /opt/csw/bin/facter osfamily
Solaris
bash-3.00# /opt/csw/bin/puppet agent --test
Info: Retrieving plugin
Notice: /File[/var/opt/csw/puppet/lib/facter/spacewalk.rb]/ensure: defined 
content as '{md5}9aea0fbd79bc329b3685b7cfd22a5809'

I have another custom fact that should only run on certain server but it is 
installed on every server.
Can you please help me?
Are facts always installed on every server even if the module of the fact 
in only installed on certain server?

Best regards,
Andreas

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/95b66593-0ff9-4ffe-b54c-963bb84f7010%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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 me. 
> > I'm having a similar problem on a newly created vps. When I do puppet 
> > apply first time I get the message: 
> > 
> > Error: Could not set 'present' on ensure: invalid byte sequence in 
> > US-ASCII at 3:/root/mf-prod.pp 
>
> I've seen this error when the puppet master process started by init 
> receives a different locale environment than when it is started from the 
> command line. 
>
> Check /proc/$pid/env of the running puppet master process for LANG/LC_* 
> and compare that to your shell env. 
>
>
> Regards, David 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d903dbcb-3d3b-4671-87f8-de70e1f8a412%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[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 when running the agent, 
> I get an error saying "Illegal instruction (core dumped)". Here is some 
> details:
>
> - both master and agent is run on the same machine
>
> - # cat /etc/redhat-release
>   CentOS release 6.2 (Final)
>
> - # uname -r
>   3.9.3-x86_64-linode33
>
> - #ruby --version
>   ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
>
> - RPM installed is "puppet-3.2.1-1.el6.noarch.rpm"
>
> However when I run puppet agent with the same version on another host, 
> everything goes fine. Problem is only while running agent on the same 
> machine as the server.
> Any idea what is going on ?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/35e7f2e2-b75a-4b23-9cc4-5e6fdb3f3b3f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[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 with its standard puppet packages. You have any other idea 
what I could check? Somehow I have the feeling this is related to the 
puppetlabs-mysql module as all the nodes failing to send the report to the 
dashboard are those which use this module.

Cheers
John


On Sunday, December 15, 2013 8:06:34 AM UTC+1, Charlie Sharpsteen wrote:
>
> On Saturday, December 14, 2013 6:59:22 AM UTC-8, John Naggets wrote:
>>
>> Hi,
>>
>> On some of my puppet agents at each puppet agent run I get the following 
>> error message:
>>
>> err: Could not send report: Error 400 on SERVER: (): found 
>> character that cannot start any token while scanning for the next token at 
>> line 1519 column 14
>>
>> I believe the agent has some issues here sending the report to the puppet 
>> dashboard but I can't find what is the issue. Does anyone have an idea? 
>> Also which file exactly is this error message referring to (line 1519 
>> column 14)?
>>
>> Thanks
>> John
>>
>
> Hi John,
>
> This error is thrown by the Ruby YAML parser when it encounters a 
> malformed YAML document (such as a report) that cannot be loaded. It looks 
> like the report is being sent fine, but the YAML parser in the receiving 
> dashboard is throwing an error. A copy of the report the agent was 
> attempting to send can usually be found in 
> /var/lib/puppet/state/last_run_report.yaml --- this is the file that the 
> line and column numbers relate to.
>
> Hope this is helpful!
>
> -- 
> Charlie Sharpsteen
> Open Source Support Engineer
> Puppet Labs
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b3aadfac-b806-45f1-bbe6-f28f42d1143f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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: 
Could not match $(grep at /etc/puppet/.../init.pp:4 on node agent

I need the test to run each time Puppet run.
Thank you for your quick response.

On Wednesday, December 18, 2013 11:11:00 AM UTC+2, Stephen Gran wrote:
>
> On 12/18/2013 08:41 AM, shlo@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 
> > the return code of the command and not the output of the command. 
> > How can I do it right? 
>
> test $(grep -c aa /tmp/aao) -gt 0 
>
> Cheers, 
>
> -- 
> Stephen Gran 
> Senior Systems Integrator - theguardian.com 
> Please consider the environment before printing this email. 
> -- 
> Visit theguardian.com   
>
> On your mobile, download the Guardian iPhone app theguardian.com/iphoneand 
> our iPad edition 
> theguardian.com/iPad   
> Save up to 33% by subscribing to the Guardian and Observer - choose the 
> papers you want and get full digital access. 
> Visit subscribe.theguardian.com 
>
> This e-mail and all attachments are confidential and may also 
> be privileged. If you are not the named recipient, please notify 
> the sender and delete the e-mail and all attachments immediately. 
> Do not disclose the contents to another person. You may not use 
> the information for any purpose, or store, or copy, it in any way. 
>   
> Guardian News & Media Limited is not liable for any computer 
> viruses or other material transmitted with or as part of this 
> e-mail. You should employ virus checking software. 
>   
> Guardian News & Media Limited 
>   
> A member of Guardian Media Group plc 
> Registered Office 
> PO Box 68164 
> Kings Place 
> 90 York Way 
> London 
> N1P 2AP 
>   
> Registered in England Number 908396 
>
> -- 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d0a7ec9b-82a7-4f1d-800c-29ddd53cc480%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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
the return code of the command and not the output of the command.
How can I do it right?


test $(grep -c aa /tmp/aao) -gt 0

Cheers,

--
Stephen Gran
Senior Systems Integrator - theguardian.com
Please consider the environment before printing this email.
--
Visit theguardian.com   

On your mobile, download the Guardian iPhone app theguardian.com/iphone and our iPad edition theguardian.com/iPad   
Save up to 33% by subscribing to the Guardian and Observer - choose the papers you want and get full digital access.

Visit subscribe.theguardian.com

This e-mail and all attachments are confidential and may also
be privileged. If you are not the named recipient, please notify
the sender and delete the e-mail and all attachments immediately.
Do not disclose the contents to another person. You may not use
the information for any purpose, or store, or copy, it in any way.

Guardian News & Media Limited is not liable for any computer
viruses or other material transmitted with or as part of this
e-mail. You should employ virus checking software.

Guardian News & Media Limited

A member of Guardian Media Group plc
Registered Office
PO Box 68164
Kings Place
90 York Way
London
N1P 2AP

Registered in England Number 908396

--

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52B166A4.5060304%40guardian.co.uk.
For more options, visit https://groups.google.com/groups/opt_out.


[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 the command.
How can I do it right?


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/8e6127be-3919-4769-a68f-c0e9c01a46c1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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 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!
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Puppet Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to puppet-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/875905a6-03ea-4da3-83fe-eda66f34384a%40googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> -- 
> Johan De Wit
> 
> Open Source Consultant
> 
> Red Hat Certified Engineer (805008667232363)
> Puppet Certified Professional 2013 (PCP006)
> _
> Open-Future Phone +32 (0)2/255 70 70
> Zavelstraat 72  Fax   +32 (0)2/255 70 71
> 3071 KORTENBERG Mobile+32 (0)474/42 40 73
> BELGIUM http://www.open-future.be
> _
> 
> Next Events:
> Puppet Advanced Training | 
> http://www.open-future.be/puppet-advanced-training-7-till-9th-january
> Puppet Fundamentals Training | 
> http://www.open-future.be/puppet-fundamentals-training-4-till-6th-february
> Subscribe to our newsletter | http://eepurl.com/BUG8H

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/98203B35-8ED8-4B86-A3F9-01251B3DE84A%40me.com.
For more options, visit https://groups.google.com/groups/opt_out.


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.  Thanks!

> I should also point out that this is unnecessary, as Puppet will
> automatically promote read permissions to read & execute permissions
> for directories.
No, not exactly as the mode definition is meant for the files in the
subdirectory.  There are executables in "bin" and "plugins".

So, what would be a better way of changing the mode of some files
within a directory resource with "recurse" activated?  Adding "source"
for all of them seems awkward...

Thanks for your help!
 Andy.

-- 
 Suburbia is where the developer bulldozes out the trees,
 then names the streets after them.
   (Bill Vaughan)

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/20131218082352.GA25905%40spiegl.de.
For more options, visit https://groups.google.com/groups/opt_out.


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=1387318030&sr=8-3&keywords=puppet+3

Fun!
--
You received this message because you are subscribed to the Google 
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/875905a6-03ea-4da3-83fe-eda66f34384a%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 


Next Events:
Puppet Advanced Training | 
http://www.open-future.be/puppet-advanced-training-7-till-9th-january
Puppet Fundamentals Training | 
http://www.open-future.be/puppet-fundamentals-training-4-till-6th-february
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52B15B3F.6010104%40open-future.be.
For more options, visit https://groups.google.com/groups/opt_out.