Re: [Puppet Users] 2 package resources for the same package installation in two differents modules caused errors

2012-04-03 Thread Miguel Di Ciurcio Filho
On Tue, Apr 3, 2012 at 3:33 PM, Christophe L  wrote:
> Hello,
>
> We had the following situation where including two classes that were
> ensuring the installation of the same package "php5-imagick" and it
> was causing an error indicating that two ressources of the same name
> are forbidden (sorry, I don't have the exact message error since we
> fixed quickly the error).
>

By the nature of the Puppet's language, resources must have a unique
title and must have only one definition.

Quoting http://docs.puppetlabs.com/guides/language_guide.html#resources:

"The field before the colon is the resource’s title, which must be
unique and can be used to refer to the resource in other parts of the
Puppet configuration."

> Code causing the error:
>
> /etc/puppet/modules/apache/manifests/init.pp
>
> class apache::install {
>  ...
>  package { [ "php5", "php5-cli", "php5-gd", "php5-imagick", "php5-
> mysql", "phpmyadmin", "mysql-client" ]:
>        ensure => installed,
>  }

The line above is just a shortcut to this something like this:

package {"php5":  }
package {"php5-cli":  }
package {"php5-imagick":  }

So when Puppet compiles all your manifests, there can be only one
php5-imagick, in your case.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] HP-UX Puppet Agent

2012-04-03 Thread Michael Glatz
I am currently working on getting a functional HP-UX Agent
communicating to an RHEL Master.

Agent
OS: HP-UX 11.31 Itanium
Ruby: 1.9.1 (depot from iexpress)
Puppet 2.7.12 -  Installed from Source
Facter 1.6.7 -  Installed from Source

They are communicating but I get errors when obtaining the reports

On Console:
Importing report report-5774-1.yaml at 2012-04-03 19:45 UTC
undefined method `each' for nil:NilClass
Backtrace
/opt/puppet/share/puppet-dashboard/lib/puppet/report.rb:202:in
`extended'
/opt/puppet/share/puppet-dashboard/lib/puppet/report.rb:200:in `each'
/opt/puppet/share/puppet-dashboard/lib/puppet/report.rb:200:in
`extended'
/opt/puppet/share/puppet-dashboard/lib/puppet/report.rb:114:in
`extend'
/opt/puppet/share/puppet-dashboard/lib/puppet/report.rb:114:in
`extended'
/opt/puppet/share/puppet-dashboard/app/models/report.rb:107:in
`extend'
/opt/puppet/share/puppet-dashboard/app/models/report.rb:107:in
`create_from_yaml'
/opt/puppet/share/puppet-dashboard/app/models/report.rb:86:in
`create_from_yaml_file'

When starting the agent:
warning: iconv couldn't be loaded, which is required for UTF-8/UTF-16
conversions
debug: Failed to load library 'selinux' for feature 'selinux'
debug: Failed to load library 'shadow' for feature 'libshadow'
debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/
dscl does not exist
debug: Puppet::Type::User::ProviderUseradd: file chage does not exist
debug: Failed to load library 'ldap' for feature 'ldap'
debug: Puppet::Type::User::ProviderLdap: feature ldap is missing
debug: Puppet::Type::User::ProviderPw: file pw does not exist
debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does
not exist
debug: /File[/var/lib/puppet/log]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/
puppet]
debug: /File[/var/lib/puppet/run]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet]
debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/
ssl]
debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet]
debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring File[/etc/
puppet/ssl]
debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring
File[/etc/puppet/ssl]
debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring File[/etc/
puppet/ssl]
debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/
ssl]
debug: /File[/etc/puppet/ssl/certs/.pem]: Autorequiring File[/
etc/puppet/ssl/certs]
debug: /File[/etc/puppet/ssl/private_keys/.pem]: Autorequiring
File[/etc/puppet/ssl/private_keys]
debug: /File[/etc/puppet/ssl/public_keys/.pem]: Autorequiring
File[/etc/puppet/ssl/public_keys]
debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring File[/etc/
puppet/ssl/certs]
debug: /File[/etc/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppet/
ssl]
debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring File[/
var/lib/puppet/state]
debug: /File[/var/lib/puppet/client_yaml]: Autorequiring File[/var/lib/
puppet]
debug: /File[/var/lib/puppet/client_data]: Autorequiring File[/var/lib/
puppet]
debug: /File[/var/lib/puppet/state/classes.txt]: Autorequiring File[/
var/lib/puppet/state]
debug: /File[/var/lib/puppet/state/resources.txt]: Autorequiring File[/
var/lib/puppet/state]
debug: /File[/var/lib/puppet/clientbucket]: Autorequiring File[/var/
lib/puppet]
debug: /File[/var/lib/puppet/state/last_run_summary.yaml]:
Autorequiring File[/var/lib/puppet/state]
debug: /File[/var/lib/puppet/state/last_run_report.yaml]:
Autorequiring File[/var/lib/puppet/state]
debug: /File[/var/lib/puppet/state/graphs]: Autorequiring File[/var/
lib/puppet/state]
debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/
puppet]
debug: Finishing transaction 549707456
debug: /File[/var/lib/puppet/log]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/
puppet]
debug: /File[/var/lib/puppet/run]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet]
debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/
ssl]
debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet]
debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring File[/etc/
puppet/ssl]
debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring
File[/etc/puppet/ssl]
debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring File[/etc/
puppet/ssl]
debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/
ssl]
debug: /File[/etc/puppet/ssl/certs/.pem]: Autorequiring File[/
etc/puppet/ssl/certs]
debug: /File[/etc/puppet/ssl/private_keys/.pem]: Autorequiring
File[/etc/puppet/ssl/private_keys]
debug: /File[/etc/puppet/ssl/public_keys/.pem]: Autorequiring
File[/etc/puppet/ssl/public_keys]
debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring File[/etc/
puppet/ssl/certs]
debug: /File[/etc/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppet/
ssl]
debug: /File[/va

Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Nigel Kersten
On Tue, Apr 3, 2012 at 1:13 PM, Nigel Kersten  wrote:
>
>
> On Tue, Apr 3, 2012 at 12:53 PM, Brian Gupta 
> wrote:
>>
>> On Tue, Apr 3, 2012 at 2:35 PM, Daniel Pittman 
>> wrote:
>>>
>>> On Mon, Apr 2, 2012 at 22:53, Denmat  wrote:
>>> > How about a 'serverfault' or 'stackoverflow' or the like site? One of
>>> > the issues I find is that previous answers are lost in mail lists and hard
>>> > to search for. IRC isn't much help for searching previous answers either.
>>>
>>> I would absolutely support getting a new StackExchange site for
>>> configuration management or something going.  What it really needs is
>>> someone to drive that forward - you can't just ask for one, it needs a
>>> community.
>>
>>
>> Daniel, mmm.. do we want a general purpose configuration management site
>> or a puppet specific one? I'd be willing to help host and setup a puppet
>> specific one, however, I'd have thought that would be something that
>> puppetlabs would want to own/run. Feel free to discuss internally, and let
>> me know which way you guys want to go.
>
>
> Hey Brian, thanks for the offer, it's much appreciated.
>
> We do want to be running this, primarily because we want to provide an
> integrated platform that includes a bit more than just the Q&A site itself.
> We'd like to be able to integrate profiles across the Forge, a Q&A site and
> even the bug tracker.
>
> It would be great if you were on a Q&A site, asking questions about
> developing modules, and to be able to see that the person answering your
> question has published several awesome Puppet modules that are really
> popular. Vice versa, it would be great to be able to look at a module and
> see that the author is a highly engaged member of the community.
>
> So all in all, we do want to provide this as a service by us, and it's
> difficult to get that level of integration with StackExchange.
>
> I would like to point out that we've got a growing ServerFault community
> under the 'puppet' tag, and there are some great people answering Puppet
> questions there.
>
> This is clearly an even more pressing need than we'd been thinking, so we're
> going to try and accelerate this.

And to post the actual ServerFault link:

http://serverfault.com/questions/tagged/puppet





-- 
Nigel Kersten
Product Manager, Puppet Labs

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Nigel Kersten
On Tue, Apr 3, 2012 at 12:53 PM, Brian Gupta wrote:

> On Tue, Apr 3, 2012 at 2:35 PM, Daniel Pittman wrote:
>
>> On Mon, Apr 2, 2012 at 22:53, Denmat  wrote:
>> > How about a 'serverfault' or 'stackoverflow' or the like site? One of
>> the issues I find is that previous answers are lost in mail lists and hard
>> to search for. IRC isn't much help for searching previous answers either.
>>
>> I would absolutely support getting a new StackExchange site for
>> configuration management or something going.  What it really needs is
>> someone to drive that forward - you can't just ask for one, it needs a
>> community.
>>
>
> Daniel, mmm.. do we want a general purpose configuration management site
> or a puppet specific one? I'd be willing to help host and setup a puppet
> specific one, however, I'd have thought that would be something that
> puppetlabs would want to own/run. Feel free to discuss internally, and let
> me know which way you guys want to go.
>

Hey Brian, thanks for the offer, it's much appreciated.

We do want to be running this, primarily because we want to provide an
integrated platform that includes a bit more than just the Q&A site itself.
We'd like to be able to integrate profiles across the Forge, a Q&A site and
even the bug tracker.

It would be great if you were on a Q&A site, asking questions about
developing modules, and to be able to see that the person answering your
question has published several awesome Puppet modules that are really
popular. Vice versa, it would be great to be able to look at a module and
see that the author is a highly engaged member of the community.

So all in all, we do want to provide this as a service by us, and it's
difficult to get that level of integration with StackExchange.

I would like to point out that we've got a growing ServerFault community
under the 'puppet' tag, and there are some great people answering Puppet
questions there.

This is clearly an even more pressing need than we'd been thinking, so
we're going to try and accelerate this.


-- 
Nigel Kersten
Product Manager, Puppet Labs

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Brian Gupta
On Tue, Apr 3, 2012 at 2:35 PM, Daniel Pittman wrote:

> On Mon, Apr 2, 2012 at 22:53, Denmat  wrote:
> > How about a 'serverfault' or 'stackoverflow' or the like site? One of
> the issues I find is that previous answers are lost in mail lists and hard
> to search for. IRC isn't much help for searching previous answers either.
>
> I would absolutely support getting a new StackExchange site for
> configuration management or something going.  What it really needs is
> someone to drive that forward - you can't just ask for one, it needs a
> community.
>

Daniel, mmm.. do we want a general purpose configuration management site or
a puppet specific one? I'd be willing to help host and setup a puppet
specific one, however, I'd have thought that would be something that
puppetlabs would want to own/run. Feel free to discuss internally, and let
me know which way you guys want to go.

Thanks,
Brian


> --
> Daniel Pittman
> ⎋ Puppet Labs Developer – http://puppetlabs.com
> ♲ Made with 100 percent post-consumer electrons
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>


-- 


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] change host file depending on location

2012-04-03 Thread Len Rugen
This sounds like standard file template should work, for that file, use
   content => template("your-class/your-template.erb");

Then in that file (your-template.erb) you can have:

static stuff
<% if location == "us-west-1c -%>
something
<% else %>
default stuff
<% end %>
more static stuff

The else is optional.  Syntax not guaranteed :-)


On Tue, Apr 3, 2012 at 2:01 PM, Jim Dehune  wrote:

> Hi all,
>
> New to puppet and am hoping I can be pointed in the right direction.
>
> I have several Amazon EC2 instance in us-east, us-west, eu, and apac.
> I need different /etc/hosts file for each region.  I'm not sure how to
> implement this in each servers node definition.
>
> I'd like to have something like this:
>
> node server101 {
> $location = us-west-1c
> ...
> ..
> }
>
> and have it setup the hosts file with the appropriate entries needed
> from a template.  facter has 'ec2_placement_availability_zone' which
> has the location info I need.
>
> What do I need to read more about to accomplish this in my classes.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] change host file depending on location

2012-04-03 Thread Jim Dehune
Hi all,

New to puppet and am hoping I can be pointed in the right direction.

I have several Amazon EC2 instance in us-east, us-west, eu, and apac.
I need different /etc/hosts file for each region.  I'm not sure how to
implement this in each servers node definition.

I'd like to have something like this:

node server101 {
$location = us-west-1c
...
..
}

and have it setup the hosts file with the appropriate entries needed
from a template.  facter has 'ec2_placement_availability_zone' which
has the location info I need.

What do I need to read more about to accomplish this in my classes.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Daniel Pittman
On Mon, Apr 2, 2012 at 22:53, Denmat  wrote:
> How about a 'serverfault' or 'stackoverflow' or the like site? One of the 
> issues I find is that previous answers are lost in mail lists and hard to 
> search for. IRC isn't much help for searching previous answers either.

I would absolutely support getting a new StackExchange site for
configuration management or something going.  What it really needs is
someone to drive that forward - you can't just ask for one, it needs a
community.

-- 
Daniel Pittman
⎋ Puppet Labs Developer – http://puppetlabs.com
♲ Made with 100 percent post-consumer electrons

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] 2 package resources for the same package installation in two differents modules caused errors

2012-04-03 Thread Christophe L
Hello,

We had the following situation where including two classes that were
ensuring the installation of the same package "php5-imagick" and it
was causing an error indicating that two ressources of the same name
are forbidden (sorry, I don't have the exact message error since we
fixed quickly the error).

Since we are newbies in puppet, we would like to understand what this
error meant:
does it mean that all the package resource ensuring the installation
of a package need to have a unique resource name ?
Or maybe have we done something wrong in our usage of puppet ?

Below, the code causing the error and how we fixed it.

Thanks in advance for your feebacks.

Best regards,
Christophe

Code causing the error:

/etc/puppet/modules/apache/manifests/init.pp

class apache::install {
  ...
  package { [ "php5", "php5-cli", "php5-gd", "php5-imagick", "php5-
mysql", "phpmyadmin", "mysql-client" ]:
ensure => installed,
  }
  ...
}

/etc/puppet/modules/cms/manifests/init.pp

class cms::installpackage {
  ...
  package { 'php5-imagick':
name => 'php5-imagick',
ensure => 'installed',
  }
  ...
}

In order to fix the error, we prefixed the resource in
cms::installpackage class with cms_

package { 'cms_php5-imagick':
name => 'php5-imagick',
ensure => 'installed',
}

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Nigel Kersten
On Mon, Apr 2, 2012 at 10:56 PM, Brian Gupta wrote:

> Michael,
>
> Would you guys consider standing up a shapado instance?
> http://shapado.com/ (It's basically an FLOSS clone of stackoverflow, and
> is great for Q&A type stuff.) You could stand it up as ask.puppetlabs.com,
> and point new users there for questions. One of the big issues of
> puppet-users, is simple the volume of emails that are blasted into ones
> inbox. (Ignoring the diverse nature of the various discussions.) In
> addition, I have a sense that IRC and mailing lists are a bit old-school,
> and can be intimidating to new users.
>

We've had similar thoughts about accessibility and a Q&A site, and have
been thinking seriously about a FLOSS clone of stackoverflow.

Last time we had a look around OSQA  seemed to be the
best candidate, thanks for the Shapado link Brian.




>
> Personally, I don't love mailing lists, in that I don't want to have to
> subscribe to EVERYTHING, to get the answer to a single question.
>
> I'd also like to address Scott's critique of FAQs. I think that no matter
> how good and complete the documentation, there will be frequently asked
> questions. It's just the nature of the beast.
>
> Thanks,
> Brian
>
> On Tue, Apr 3, 2012 at 12:30 AM, Michael Stahnke 
> wrote:
>
>> Hey, we've been having some mailing list discussion on and off inside
>> of Puppet Labs too. Obviously we have a large community that we are
>> trying to appeal to, and we keep doing our best to create the
>> experience for the user-base.
>>
>> Breaking the users list into two lists has its pros and cons.
>>
>> Pros:
>> * Less code fragments in emails
>> * Advanced users not bogged down with new user questions
>>
>> Cons:
>> * Fragmentation of the user-base
>> * Who will monitor/answer questions on a new user list?
>> * New people may not learn from more experienced people, because the
>> more experienced users may not subscribe to the new-users list
>>
>> What I really think we need, is a way to provide knowledge to new
>> users in an efficient (and non fragmented) way.  In the past we had a
>> horrible problem with documentation all over the place, wiki issues,
>> blogs from everybody and their brother, etc.  Today, we have narrowed
>> those problems with the Learning Puppet series.
>> (http://docs.puppetlabs.com/learning/), and lots of other
>> documentation improvements on docs.puppetlabs.com.
>>
>> The points about FAQ make complete sense.  We'd like to address this
>> with proper documentation and some other online presence that will be
>> rolled out in the in the next quarter or so.
>>
>> As an interrum, could we have a wiki page where we place questions
>> that get asked frequently and have no (or incomplete) associated
>> documentation?
>>
>> http://projects.puppetlabs.com/projects/puppet/wiki/Frequent_Questions_Without_Answers
>>
>>
>> We also hope that IRC is helpful and remains helpful.  I don't often
>> see RTFM comments coming out in #puppet.  When I do, it's quite often
>> because their exact question was already answered, with citations, and
>> the user still didn't read it.  Also in this thread somebody mentioned
>> helping those willing to help themselves.  That's a fair statement,
>> but we really want to make this an accepting community to make
>> everybody better at their workloads with Puppet.
>>
>> I hope I've attempted to answer some of the concerns.  I am totally
>> willing to revisit this in 90 days or so if the community thinks we
>> should be handling this differently.
>>
>> This is also by no means designed to close this discussion, so please
>> weigh in if you have opinions.
>>
>> Michael Stahnke
>> Community Manager
>>
>>
>>
>> On Fri, Mar 30, 2012 at 1:00 PM, Mister IT Guru 
>> wrote:
>> > Good Evening Guys,
>> >
>> > Let me start by saying that I really admire how far puppet has come in
>> the last year or so, with the launch of the Enterprise version, Puppet
>> Forge and the other innovations from within Puppet Labs, and in particular
>> the community participation. I love the mailing list, even though I've been
>> lurking for over a year. It's this "inner shame" that compels me to raise
>> this issue. I apologise if this is not the place to mention this, but hey,
>> you've already got this far, so keep reading!
>> >
>> > I get stage fright looking at some of the "code fragments" that people
>> post to the list and then say "This is how far I've got and I'm trying to
>> do X" where X is something pretty complex/unique doesn't quite seem like
>> best practice or something that you'll find on a general use linux box.
>> While I have no problem or even issue with this, the problem I find is that
>> when I tell my admin geek friends about puppet, they go to google and
>> switch off when they see what they view as "buckets of work" to just get
>> started.
>>
>> We have a lot of Puppet users on Mac, BSD, and now Windows too, so
>> it's not just Linux.
>>
>> >
>> > In a nutshell the perception and fee

Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Scott Merrill
On Tue, Apr 3, 2012 at 12:30 AM, Michael Stahnke  wrote:
> Breaking the users list into two lists has its pros and cons.
>
> Pros:
> * Less code fragments in emails
> * Advanced users not bogged down with new user questions
>
> Cons:
> * Fragmentation of the user-base
> * Who will monitor/answer questions on a new user list?
> * New people may not learn from more experienced people, because the
> more experienced users may not subscribe to the new-users list

I'm -1 on separating the list. While there's a lot of discussion that
isn't relevant or interesting to me on the list, there's been a
non-trivial number of posts that have directly addressed issues I was
researching, or have helped me work through stumbling blocks. Some of
it is simple serendipity, but I'd have lost out on those things if I
was only subscribed to the -newbie list.

> We also hope that IRC is helpful and remains helpful.  I don't often
> see RTFM comments coming out in #puppet.  When I do, it's quite often
> because their exact question was already answered, with citations, and
> the user still didn't read it.  Also in this thread somebody mentioned
> helping those willing to help themselves.  That's a fair statement,
> but we really want to make this an accepting community to make
> everybody better at their workloads with Puppet.

For what it's worth, my experiences in the IRC channel have been
nothing but positive. Yes, my questions have been sometimes answered
with a simple link to existing documentation, but in most cases thus
far those links have been exactly what I needed. And it's worth
pointing out that the links were not provided with aggression or
derision, but a matter-of-fact "here's what you need."


Because there are multiple ways to use Puppet to resolve the problems
of configuration management, there seems to me to be a gulf between
what's documented and what people are using in production. Stated
another way, there's a gap between the "how" and the "why".

Cheers,
Scott

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Secure hostname/Serial number through puppet before signing certs

2012-04-03 Thread Mukul Malhotra
Hi,

How can I restrict other nodes or apply some security check to in my
domain.For example I had two
systems where one is connected with the puppet server for receiving updates
& for second system's
I change the hostname to "test.example.com" & configure the system similar
to the first system & runs puppetd -td --waitforcert 60 where it receives
the updates from the puppet server.

I want to restrict the same as I mentioned in my example with nodes within
the domain & outside the domain.How can this be achieved   ?

Thanks
mac01


On Tue, Mar 20, 2012 at 3:42 PM, mukulm  wrote:

> Hi,
>
> I want to apply a security check on hostnames in my domain
> (abc.example.com) so that puppet should verify the hostname or serial
> number through "dmidecode -s system-serial-number" instead of "facter|
> grep -i serial" so that if any node in the domain changes the hostname
> of the system then also puppet should pick the hostname/serial number
> through  "dmidecode -s system-serial-number" as I had configured "
> *.example.com " in my autosign.conf file. How can this be achived
> through puppet   ?
>
> Also is there any other way so that I can secure my hostname in my
> domain.
>
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Issue with puppet windows

2012-04-03 Thread Marco Parra D.

Hi Josh, I'll check that link,

Thank you again for your help...

Regards...


On 02-04-2012 18:24, Josh Cooper wrote:

Hi Marco,

On Mon, Apr 2, 2012 at 1:17 PM, Marco Parra D. 
mailto:marco.parr...@gmail.com>> wrote:


HI Josh,

The program was uninstalled using Add /remove Feature, I found the
file C:\ProgramData\PuppetLabs\puppet\var\db\package\msi\Universal
Forwarder.yml on the windows agent side, when I removed the puppet
agent install again the package perfect...
/
/I'm thinking in the case that a user by error removes the
application or package from the box, I testing If puppet can
reinstall if the package is missing...  Is it possible do
something like that using puppet?... or I must use another way to
fix possible "uninstall" from users?...

Thank you again for your help...


You could rewrite the msi package provider to use the Windows 
Installer Automation interfaces, which will accurately tell you about 
the state of installed MSI's. I have more information here[1]. We'd 
gladly accept pull requests. Otherwise, it's something we hope to fix 
"soon".


Josh

[1] http://projects.puppetlabs.com/issues/11868#note-6

--
Josh Cooper
Developer, Puppet Labs

--
You received this message because you are subscribed to the Google 
Groups "Puppet Users" group.

To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.


--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Custom Function to generate random password

2012-04-03 Thread Krzysztof Wilczynski
Hi,

I am glad you found it useful.

KW

On Tuesday, 3 April 2012 14:01:44 UTC+1, r0k5t4r wrote:
>
> Hi, 
>
> thanks a lot. Just what I was looking for. Works like a charm. :) 
>
> Best Regards 
>
> On 3 Apr., 13:36, Krzysztof Wilczynski 
>  wrote: 
> > Hi, 
> > 
> > On Tuesday, 3 April 2012 07:36:06 UTC+1, r0k5t4r wrote: 
> > 
> > > Hi, 
> > 
> > > I'm currently trying to write a simple function to generate a random 
> > > password. I have looked at the fqdn_rand.rb script to get things going 
> > > but unfortunately my ruby skills are very bad. 
> > 
> > [...] 
> > 
> > Try this one:
> https://github.com/kwilczynski/puppet-functions/blob/master/lib/puppe... 
> > 
> > KW

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/snUP4f6txQcJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: local vs global variables

2012-04-03 Thread jcbollinger


On Apr 3, 3:17 am, Pablo Fernandez  wrote:
> class data::group_wn {
>      # This is needed to connect freely from/to the CE
>      $sshd_HostbasedAuthentication = 'yes'
>      $sshd_IgnoreUserKnownHosts = 'yes'
>
> }
>
> class data::group_ppwn inherits data::group_wn {
>      # We can override any value here
>
> }
>
> I do it this way, because I have the production group (group_wn) and the
> pre-production group (group_ppwn), and I want them to be cloned, but I
> want to be able to override values in the pre-production group (and
> avoid repeating the same values in a completely separated group schema).
> I have tried doing that, and the overrides work quite nicely, but...
> could it be that the Facts are also inherited? It really seems like,
> otherwise why would Hiera stop looking there?


I'm still thinking about this.  The messages about dynamic lookup of
$netmask are pointing toward the theory I proposed before: variable
lookup in the context of an existing class that does not itself define
a local $netmask variable is pulling in $::netmask (or maybe a
containing class's or superclass's $foo::netmask).  If it's $::netmask
getting pulled in, however, then I don't understand why lookup stops
in the *second* class instead of in the first.

Do note, however, that you should be very careful with the variable
"override" idea.  In particular, you need to understand that Puppet
doesn't have any such concept: what you are actually doing is _hiding_
variables declared in outer scopes.  The difference is that hiding a
variable is scope-dependent.  Both variables still exist, and which
value you get in any expression depends on that expression's context.
I would recommend avoiding such usage.  In fact, I would typically
recommend Hiera as an alternative -- use the data hierarchy instead of
a class hierarchy to do this for you .


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Custom Function to generate random password

2012-04-03 Thread r0k5t4r
Hi,

thanks a lot. Just what I was looking for. Works like a charm. :)

Best Regards

On 3 Apr., 13:36, Krzysztof Wilczynski
 wrote:
> Hi,
>
> On Tuesday, 3 April 2012 07:36:06 UTC+1, r0k5t4r wrote:
>
> > Hi,
>
> > I'm currently trying to write a simple function to generate a random
> > password. I have looked at the fqdn_rand.rb script to get things going
> > but unfortunately my ruby skills are very bad.
>
> [...]
>
> Try this 
> one:https://github.com/kwilczynski/puppet-functions/blob/master/lib/puppe...
>
> KW

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: escaping the "@" symbol

2012-04-03 Thread jcbollinger


On Apr 2, 10:44 am, John Kennedy  wrote:
> I thought the @ was used to define a virtual resource. Does that not give
> it special meaning to puppet?

Not in the context (i.e. quoted) in which it appears in your manifest.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] How to execute a script from the server

2012-04-03 Thread Jeff McCune
On Apr 3, 2012, at 6:16 AM, mac01  wrote:

>
> Hi,
>
> How to only execute the script from the server instead of first copying the 
> file & then executing the script from puppet ?

My answer depends on what you're trying accomplish.  If you're trying
to get some data to fill in a resource, then a function is a good
choice.  Generate() will likely do what you need. If you're trying to
manage something only on the server, I'd still model this as a file
and exec resource so it shows up in your reports and configuration
catalog.

Hope this helps.
-Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] How to execute a script from the server

2012-04-03 Thread Dan White
But that is how it works.

file{
"/etc/puppet/scripts":
ensure => directory,
owner  => "root",
group  => "root",
mode   => 70oo;

"/etc/puppet/scripts/checkUsers.bash":
owner  => "root",
group  => "root",
mode   => 700,
source => "puppet:///modules/password/checkUsers.bash";
}

exec{ "/etc/puppet/scripts/checkUsers.bash":
user  => "root",
logoutput => true,
require   => File["/etc/puppet/scripts/checkUsers.bash"];
}

- mac01  wrote:
> 
> Hi,
> 
> How to only execute the script from the server instead of first copying the 
> file & then executing the script from puppet ?
> 
> Thanks

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

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Dan White
For searching older info, try 
http://www.mail-archive.com/puppet-users@googlegroups.com/

But I concur

-1 for separation

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

- Denmat  wrote:
> How about a 'serverfault' or 'stackoverflow' or the like site? One of the 
> issues I find is that previous answers are lost in mail lists and hard to 
> search for. IRC isn't much help for searching previous answers either.
> 
> -1 for separate lists.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Custom Function to generate random password

2012-04-03 Thread Krzysztof Wilczynski
Hi,

On Tuesday, 3 April 2012 07:36:06 UTC+1, r0k5t4r wrote:
>
> Hi, 
>
> I'm currently trying to write a simple function to generate a random 
> password. I have looked at the fqdn_rand.rb script to get things going 
> but unfortunately my ruby skills are very bad. 
>
[...]

Try this one: 
https://github.com/kwilczynski/puppet-functions/blob/master/lib/puppet/parser/functions/random_password.rb

KW

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/53Dd49kLNDcJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] How to execute a script from the server

2012-04-03 Thread mac01

Hi,

How to only execute the script from the server instead of first copying the 
file & then executing the script from puppet ?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/UQzJIINQqYgJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Hash iteration order in a template not consistent

2012-04-03 Thread Matthias Saou
On Thu, 29 Mar 2012 10:06:01 +0200
Martijn Grendelman  wrote:

[...]
> >
> > ruby hashes are not stored in predictable order so this will
> > happen, the proposed solution should work.
> > 
> > But as always the best is just to test it and see how it goes, it
> > wont bite :)
> 
> <% aliases.sort_by {|key, value| key}.each do |key, val| -%>
> 
> seems to do the trick. 'each_pair' doesn't work here, because the
> sort_by returns an array. Again, I learned something :-)

...and what about those of us which want the hash entries to appear in
the exact same order they are present in the puppet manifest? From what
I've seen, it was working that way up to 2.6 included, and only gets
"randomized" with puppet 2.7.

I've been doing things like this for a while now :

  mm_cfg_settings => {
'ALLOW_SITE_ADMIN_COOKIES' => "Yes",
'PUBLIC_ARCHIVE_URL' => "'https://%(hostname)s/pipermail/%(listname)s'",
'MTA' => "'Postfix'",
'POSTFIX_STYLE_VIRTUAL_DOMAINS' => "'False'",
'DEFAULT_SUBJECT_PREFIX' => "''",
'DEFAULT_REPLY_GOES_TO_LIST' => "1",
  },

  <% mm_cfg_settings.each do |key,value| -%>
  <%= key %> = <%= value %>
  <% end -%>

In this particular example, order isn't critical other than for
readability, but I have some others where items must be in the same
order as they appear in the manifest's hash or things will break.

Is there a way to keep using hashes if the order from the manifest must
be kept in a file generated from the template?

Matthias

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] local vs global variables

2012-04-03 Thread Pablo Fernandez

Hi again,

Ok, this one is getting more interesting. I have tried the --debug 
option, and I see something very strange. It is going to be a bit long 
(sorry, I was asked for more details). Let me first clarify what I do 
with the hierarchy:


:hierarchy:
  - %{hostname}
  - group_%{group0}
  - group_%{group1}
  - group_%{group2}
...
  - group_%{group9}

Then, from site.pp, the first thing I do is import groups.pp that 
defines all the groups there are, searches the current hostname in all 
the groups, and populates the $group0, $group1, etc. accordingly, this 
way. If you believe the above sentence, you can skip it to the next 
paragraph:


# Available groups (there is also preproduction, but they are the same)
$production_groups = ['lrms','cream','wn']
# Groups
$group_wn = range("wn01","wn46")
$group_cream = ["cream01","cream02"]
$group_lrms = ["lrms01", "lrms02"]
[...]
# Combine and flatten all production groups into new "automatic" groups:
# production, preprod, and all:
$group_production = split (inline_template('<%= array=[]; 
production_groups.each { |x| array << eval("group_#{x}")}; 
array.flatten.uniq.join(",") %>'), ",")

# $group_preprod does the same, but with preprod
$group_all = flatten ([$group_production, $group_preprod])  # All machines
$allgroups = flatten ([$production_groups, 
$preprod_groups,'production','preprod','all'])
# And now we search for the current machine, to see which groups does it 
belong to:
$groups_string = inline_template('<%= array=[]; allgroups.each{ |x| 
array << x if eval("group_#{x}").include?(hostname) }; array.join(",") %>')

$groups = split($groups_string, ",")
# And populates the $group0, $group1..$group9
if ($groups[0]) { $group0 =  $groups[0] } else {$group0 = ""}
if ($groups[1]) { $group1 =  $groups[1] } else {$group1 = ""} [...]
if ($groups[9]) { $group9 =  $groups[9] } else {$group9 = ""}

In my example, I do a notify $groups_string and my node (ppwn01) belongs 
to groups "ppwn,preprod,all"


That means Hiera() will look for data::ppwn01, data::ppwn, 
data::preprod, data::all. And in fact it does, if we take a look at a 
sample lookup in the debug output:


debug: hiera(): Looking up postfix_relay_host in Puppet backend
debug: hiera(): Looking for data in data::ppwn01
debug: hiera(): Looking for data in data::group_ppwn
debug: hiera(): Looking for data in data::group_preprod
debug: hiera(): Looking for data in data::group_all

In other examples, it stops as soon as it finds the right value, and in 
the cases I do a hiera_array() it goes to all the empty groups:

debug: hiera(): Looking up root_authorized_keys in Puppet backend
debug: hiera(): Looking for data in data::ppwn01
debug: hiera(): Looking for data in data::group_ppwn
debug: hiera(): Looking for data in data::group_preprod
debug: hiera(): Looking for data in data::group_all
debug: hiera(): Looking for data in data::group_
debug: hiera(): Looking for data in data::group_
debug: hiera(): Looking for data in data::group_
debug: hiera(): Looking for data in data::group_
debug: hiera(): Looking for data in data::group_
debug: hiera(): Looking for data in data::group_
debug: hiera(): Looking for data in data::group_
debug: hiera(): Looking for data in ssh::root_authorized_keys::data
debug: hiera(): Looking for data in ssh::data

After the _all they don't exist, but that's ok with Hiera. So far so 
good. This behavior repeats all the time I use hiera() or hiera_array(), 
as it should, but when I search for hiera('netmask'), I get the following:


debug: hiera(): Looking up netmask in Puppet backend
warning: Dynamic lookup of $hostname is deprecated.  Support will be 
removed in Puppet 2.8.  Use a fully-qualified variable name (e.g., 
$classname::variable) or parameterized classes.
warning: Dynamic lookup of $group0 is deprecated.  Support will be 
removed in Puppet 2.8.  Use a fully-qualified variable name (e.g., 
$classname::variable) or parameterized classes.
warning: Dynamic lookup of $group1 is deprecated.  Support will be 
removed in Puppet 2.8.  Use a fully-qualified variable name (e.g., 
$classname::variable) or parameterized classes.
warning: Dynamic lookup of $group2 is deprecated.  Support will be 
removed in Puppet 2.8.  Use a fully-qualified variable name (e.g., 
$classname::variable) or parameterized classes.
warning: Dynamic lookup of $group3 is deprecated.  Support will be 
removed in Puppet 2.8.  Use a fully-qualified variable name (e.g., 
$classname::variable) or parameterized classes.
warning: Dynamic lookup of $group4 is deprecated.  Support will be 
removed in Puppet 2.8.  Use a fully-qualified variable name (e.g., 
$classname::variable) or parameterized classes.
warning: Dynamic lookup of $group5 is deprecated.  Support will be 
removed in Puppet 2.8.  Use a fully-qualified variable name (e.g., 
$classname::variable) or parameterized classes.
warning: Dynamic lookup of $group6 is deprecated.  Support will be 
removed in Puppet 2.8.  Use a fully-qualified variable name (e.g., 
$class

[Puppet Users] Re: PuppetMaster doesn't trust Puppet Agent on the same host

2012-04-03 Thread Jcduss
Hi,

Thank you,

Then if I change it to [main] after cleaning the puppet.mydomain.com
certs, I get this :

info: Creating a new SSL key for puppet.mydomain.com
warning: peer certificate won't be verified in this SSL session
err: Could not request certificate: SSL_connect returned=1 errno=0
state=SSLv2/v3 read server hello A: unknown protocol
Exiting; failed to retrieve certificate and waitforcert is disabled

If I make a puppetca --list --all, I can't see the puppet.mydomain.com
request and so I can't sign it.

Regards,
JC.

On 2 avr, 22:37, Denmat  wrote:
> Hi,
>
> What happens if you move certname to [main] instead?
>
> Cheers,
> Den
>
> On 03/04/2012, at 1:27, Jcduss  wrote:
>
>
>
>
>
>
>
> > Dear All,
>
> > I've got troubles with my puppet master which doesn't trust its own
> > agent working on the same machine. This master has already about 50
> > clients running on differents servers and differents version of puppet
> > client and working like a charm on them.
>
> > Master is installed with passenger on a stable debian squeeze
> > ii  puppet                               2.6.2-5+squeeze4
> > ii  puppet-common                        2.6.2-5+squeeze4
> > ii  puppetmaster                         2.6.2-5+squeeze4
>
> > I tried different name for my agent (with a puppetca --clean 
> > each time).  And each time I get a
> > "err: Could not retrieve catalog from remote server: SSL_connect
> > returned=1 errno=0 state=SSLv3 read server certificate B: certificate
> > verify failed.  This is often because the time is out of sync on the
> > server or client"
>
> > Agent is configured like this :
>
> > [agent]
> > server=puppet.mydomain.lan
> > certname=puppet.mydomain.lan
> > report=true
>
> > This can't be a date issue, this is the same host for client and
> > server, certificates has also been revewed and dates is ok with
> > openssl.
>
> > My hosts file is configured like this :
> > 127.0.0.1       localhost.localdomain localhost
> > 192.168.1.11    puppet puppet.mydomain.lan
>
> > I tried the tricks with the link in openssl dir in
> >http://projects.puppetlabs.com/issues/8858without success.
>
> > What should I mess ?
>
> > Thank you,
> > JC.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Puppet Users" group.
> > To post to this group, send email to puppet-users@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > puppet-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Pablo Fernandez
I am personally completely against splitting the list. It will basically 
force everyone to be in the two lists, and even worse, those with a 
question that does not get an answer, will try with the second list.


Besides, when you have a question, how do you know if it's a difficult 
one? Sometimes you just hit a bug when you are newby, and sometimes you 
are missing a comma when you are expert.


Then, for people like me that are learning, it is very useful to see all 
those questions getting answer, you learn really a lot from other's 
questions.


I would really focus on the documentation. Maybe going through it, 
checking which paragraphs are more confusing or hide not-so-easy 
concepts or common misconceptions, and back up with better real-life 
examples, together with a FAQ, would probably remove 30% of the 
questions there are here.


Thanks for this list!
Pablo

On 04/03/2012 07:56 AM, Brian Gupta wrote:

Michael,

Would you guys consider standing up a shapado instance? 
http://shapado.com/ (It's basically an FLOSS clone of stackoverflow, 
and is great for Q&A type stuff.) You could stand it up as 
ask.puppetlabs.com , and point new users 
there for questions. One of the big issues of puppet-users, is simple 
the volume of emails that are blasted into ones inbox. (Ignoring the 
diverse nature of the various discussions.) In addition, I have a 
sense that IRC and mailing lists are a bit old-school, and can be 
intimidating to new users.


Personally, I don't love mailing lists, in that I don't want to have 
to subscribe to EVERYTHING, to get the answer to a single question.


I'd also like to address Scott's critique of FAQs. I think that no 
matter how good and complete the documentation, there will be 
frequently asked questions. It's just the nature of the beast.


Thanks,
Brian

On Tue, Apr 3, 2012 at 12:30 AM, Michael Stahnke 
mailto:stah...@puppetlabs.com>> wrote:


Hey, we've been having some mailing list discussion on and off inside
of Puppet Labs too. Obviously we have a large community that we are
trying to appeal to, and we keep doing our best to create the
experience for the user-base.

Breaking the users list into two lists has its pros and cons.

Pros:
* Less code fragments in emails
* Advanced users not bogged down with new user questions

Cons:
* Fragmentation of the user-base
* Who will monitor/answer questions on a new user list?
* New people may not learn from more experienced people, because the
more experienced users may not subscribe to the new-users list

What I really think we need, is a way to provide knowledge to new
users in an efficient (and non fragmented) way.  In the past we had a
horrible problem with documentation all over the place, wiki issues,
blogs from everybody and their brother, etc.  Today, we have narrowed
those problems with the Learning Puppet series.
(http://docs.puppetlabs.com/learning/), and lots of other
documentation improvements on docs.puppetlabs.com
.

The points about FAQ make complete sense.  We'd like to address this
with proper documentation and some other online presence that will be
rolled out in the in the next quarter or so.

As an interrum, could we have a wiki page where we place questions
that get asked frequently and have no (or incomplete) associated
documentation?

http://projects.puppetlabs.com/projects/puppet/wiki/Frequent_Questions_Without_Answers


We also hope that IRC is helpful and remains helpful.  I don't often
see RTFM comments coming out in #puppet.  When I do, it's quite often
because their exact question was already answered, with citations, and
the user still didn't read it.  Also in this thread somebody mentioned
helping those willing to help themselves.  That's a fair statement,
but we really want to make this an accepting community to make
everybody better at their workloads with Puppet.

I hope I've attempted to answer some of the concerns.  I am totally
willing to revisit this in 90 days or so if the community thinks we
should be handling this differently.

This is also by no means designed to close this discussion, so please
weigh in if you have opinions.

Michael Stahnke
Community Manager



On Fri, Mar 30, 2012 at 1:00 PM, Mister IT Guru
mailto:misteritg...@gmx.com>> wrote:
> Good Evening Guys,
>
> Let me start by saying that I really admire how far puppet has
come in the last year or so, with the launch of the Enterprise
version, Puppet Forge and the other innovations from within Puppet
Labs, and in particular the community participation. I love the
mailing list, even though I've been lurking for over a year. It's
this "inner shame" that compels me to raise this issue. I
apologise if this is not the place to mention this, but hey,
you've already