[Puppet Users] Re: Can I merge Virtual Resources?

2011-10-11 Thread jcbollinger
On Oct 10, 11:15 am, Guy Matz wrote: > Hi!  I've got a requirement that a few users need to have the same username, > but different passwords on qa & prod server.  The users are currently > defined as > @users which gets realized in an appropriate module, and I've been thinking > about splitting

[Puppet Users] Re: Can I merge Virtual Resources?

2011-10-11 Thread jcbollinger
On Oct 11, 8:48 am, jcbollinger wrote: > In neither case does it matter whether the User declarations are > virtual. I should clarify that I mean it does not matter *for this purpose* whether the user declarations are concrete or virtual. Either of the strategies I presented can be used with

[Puppet Users] Collection Questions

2011-10-11 Thread Stephan
Hi, I have a problem with getting puppet to do what I want. I've written a module which I configure via a define, and one of the define's settings is an array of all user names that are supposed to act as admins of this particular service this module is rolling out, like this: application::config

[Puppet Users] Puppet for managing a cloud?

2011-10-11 Thread Lucian Holland
Hi All, I've been exploring puppet and mcollective recently and I was wondering if people here might be able to point me towards some information on a potential use case. It seems like puppet is primarily used at the moment as a tool for managing individual machine configurations ('What do I need

[Puppet Users] puppetlabs-mysql: How does the command on this line get the mysql root password?

2011-10-11 Thread adam
Stupid question here: how does this line of code get the mysql root password?: https://github.com/puppetlabs/puppetlabs-mysql/blob/master/lib/puppet/provider/database/mysql.rb#L12 I am asking because when I run the set of commands to make a mysql server and db locally, everything is fine. When I

Re: [Puppet Users] Puppet for managing a cloud?

2011-10-11 Thread Ken Barber
I've done some work on creating entire networks using defined resources or 100% exported resources for the nodes you build. The following is an example environment with classes included: https://github.com/kbarber/puppet-onedemo/tree/master/manifests If you take a look at the nodes.pp you can see

Re: [Puppet Users] puppetlabs-mysql: How does the command on this line get the mysql root password?

2011-10-11 Thread Dan Bode
It expects the password to be set somewhere other than on the command line (my.cnf) On Tue, Oct 11, 2011 at 7:18 AM, adam wrote: > Stupid question here: how does this line of code get the mysql root > password?: > > > https://github.com/puppetlabs/puppetlabs-mysql/blob/master/lib/puppet/provider

Re: [Puppet Users] puppetlabs-mysql: How does the command on this line get the mysql root password?

2011-10-11 Thread Bruno Leon
~/.my.cnf ? On 11-10-11 10:18 AM, adam wrote: Stupid question here: how does this line of code get the mysql root password?: https://github.com/puppetlabs/puppetlabs-mysql/blob/master/lib/puppet/provider/database/mysql.rb#L12 I am asking because when I run the set of commands to make a mysql s

[Puppet Users] Re: puppetlabs-mysql: How does the command on this line get the mysql root password?

2011-10-11 Thread adam
Thanks, guys. Told you it was a stupid question. I know quite a bit about programming and CS but am not fluent in mysql config. Thanks again! On Oct 11, 1:01 pm, Bruno Leon wrote: > ~/.my.cnf ? > > On 11-10-11 10:18 AM, adam wrote: > > > > > > > > > Stupid question here: how does this line of cod

[Puppet Users] Issues switching over to using environments

2011-10-11 Thread Deven Phillips
Hello all, I have been searching through the list archives, but I have yet to find an answer to my question. The problem I am having is this: 1. I have been using puppet without environments for some time now and it works properly 2. I am trying to reconfigure to use environments, and I am ge

Re: [Puppet Users] Issues switching over to using environments

2011-10-11 Thread Adrien Thebo
When I've run into this error, it was due to the environment manifestdir/modulepath/templatedir not being set correctly or not existing. Are you certain that those directories exist? What environment is demonstrating this? On Tue, Oct 11, 2011 at 10:30 AM, Deven Phillips wrote: > Hello all, >    

Re: [Puppet Users] Issues switching over to using environments

2011-10-11 Thread Deven Phillips
Adrien, I did double check, and the directories do exist. I am running purely against production right now as I have yet to configure any of my agents to use a different environment. Deven On 10/11/2011 02:08 PM, Adrien Thebo wrote: When I've run into this error, it was due to the envir

Re: [Puppet Users] Issues switching over to using environments

2011-10-11 Thread Adrien Thebo
One thing I've noticed is that you've typo'd your templatedir for production, it's $confidr. Are there any useful errors in the puppet master logs? And just for a lark, could you run puppet agent -tv --environment=production on one of your nodes? On Tue, Oct 11, 2011 at 11:13 AM, Deven Phillips w

Re: [Puppet Users] Issues switching over to using environments

2011-10-11 Thread Craig White
Did you restart the 'service' (web server) ? If you make changes to the puppetmaster, you undoubtedly have to restart the service (webrick or mongrel) or apache/nginx (if passenger) Craig On Oct 11, 2011, at 11:13 AM, Deven Phillips wrote: > Adrien, > >I did double check, and the director

Re: [Puppet Users] Issues switching over to using environments

2011-10-11 Thread Craig White
On Oct 11, 2011, at 10:30 AM, Deven Phillips wrote: > Hello all, > > I have been searching through the list archives, but I have yet to find > an answer to my question. The problem I am having is this: > > 1. I have been using puppet without environments for some time now and it > works p

Re: [Puppet Users] Issues switching over to using environments

2011-10-11 Thread Deven Phillips
Nope, that didn't seem to help the way I tried it... So, here's my layout: /etc/puppet/                  prod/                         modules/                                      files/                                             generic_node/                                                    

Re: [Puppet Users] Issues switching over to using environments

2011-10-11 Thread Deven Phillips
The manifest which calls this looks like: file {"/etc/ssh/sshd_config": owner => "root", group => "root", mode=> "0644", ensure => "present", source => "puppet://lou1/modules/files/generic_node/etc/ss

RE: [Puppet Users] Hostname fact doesn't handle hostnames with periods

2011-10-11 Thread Steve Shipway
We have a situation here where we have multiple internal subdomains, but want to configure Nagios to identify hosts without our main domain. Thus, the 'hostname' we use for some items would be hostname.subdomain . We also have to strrip off a certain subdomain (I wont go into the convoluted

Re: [Puppet Users] Issues switching over to using environments

2011-10-11 Thread Jacob Helwig
The layout should look something more like this: /etc/puppet/prod/modules/$module_name/files/generic_node/etc/ssh/sshd_config With the source lines looking like: puppet://lou1/modules/$module_name/generic_node/etc/ssh/sshd_config If you wanted 'generic_node' to be the name of the module, the

[Puppet Users] URL too long...

2011-10-11 Thread Matthew Nicholson
So, I've got a system that does this: root@emcbackup8 puppet]# puppet agent -t info: Loading facts in php_version info: Loading facts in lsf_queues info: Loading facts in need_proxy info: Loading facts in n_mounts info: Loading facts in compute_node info: Loading facts in php_version info: Loading

RE: [Puppet Users] Applying policy based on network address

2011-10-11 Thread CZACHOR, KRISTOPHER
Craig, Craig, thanks for your input. It certainly gave me some ideas for what I needed. I think I found a way to do exactly what I'm looking for. I'm not a Ruby wizard by any stretch of the imagination but I think this will work: Facter.add("network") do setcode do ipaddy = Facter.value

Re: [Puppet Users] Issues switching over to using environments

2011-10-11 Thread Deven Phillips
Trying that out now.. I will respond back in a bit with results. Thanks!!! Deven On Tue, Oct 11, 2011 at 3:42 PM, Jacob Helwig wrote: > The layout should look something more like this: >  /etc/puppet/prod/modules/$module_name/files/generic_node/etc/ssh/sshd_config > > With the source lines look

[Puppet Users] Re: Collection Questions

2011-10-11 Thread jdk
In playing around with something like this, I was able to tag the users and then use the tags to realize the correct set of users: @user { "user1": tag => [ 'app_1' , 'app_2' ]; "user2": tag => [ 'app_1' , 'app_2' ]; "user3": tag => [ 'app_2' ]; } Then, you can use this to realize

Re: [Puppet Users] Announce: Puppet Dashboard 1.2.2 Available

2011-10-11 Thread Nick Steel
Any chance of getting RPMS for EL 5? On Mon, Oct 10, 2011 at 11:33 AM, Michael Stahnke wrote: > This is a maintenance release of Puppet Dashboard 1.2.2. > > > This release is available for download at: > http://downloads.puppetlabs.com/dashboard/ > > We have included Debian and RPM packages as

Re: [Puppet Users] Issues switching over to using environments

2011-10-11 Thread Deven Phillips
Jacob, That was the problem!! Thanks so much for the help. And Aaron and everyone else as well. Much appreciated!! Deven On Tue, Oct 11, 2011 at 3:56 PM, Deven Phillips wrote: > Trying that out now.. I will respond back in a bit with results. > > Thanks!!! > > Deven > > On Tue, Oct 11, 2011

Re: [Puppet Users] URL too long...

2011-10-11 Thread John Warburton
On 12 October 2011 06:52, Matthew Nicholson wrote: > > 414 Request-URI Too Large > > Request-URI Too Large > > Which run just fine. All the clients involved have identical puppet > versions (2.6.7, the master is 2.7.1). I know I can change the URL > > It looks like http://projects.puppetlabs.co

Re: [Puppet Users] URL too long...

2011-10-11 Thread Stefan Schulte
On Tue, Oct 11, 2011 at 03:52:21PM -0400, Matthew Nicholson wrote: > So, I've got a system that does this: > > root@emcbackup8 puppet]# puppet agent -t > info: Loading facts in php_version > info: Loading facts in lsf_queues > info: Loading facts in need_proxy > info: Loading facts in n_mounts > i

[Puppet Users] Different paths based on environment

2011-10-11 Thread Gonzalo Servat
Hi All, In our environment, we have production and DR puppet clients that live on different networks. Currently, we do things like "include s_service::prod" or "include s_service::dr", etc. Both of these subclasses would inherit from s_service where common things lie. I am re-doing the Puppet con

Re: [Puppet Users] Issues switching over to using environments

2011-10-11 Thread Gonzalo Servat
Somewhat related to this, is there a way for Puppet to source files in this manner: First: /etc/puppet/modules//$environment/ Default: /etc/puppet/modules// Just to avoid having the same directory structure under /etc/puppet/$environment/ as Deven has done. Best regards, Gonzalo On Wed, Oct 12,

[Puppet Users] Re: Collection Questions

2011-10-11 Thread Nick Fagerlund
On Oct 11, 4:38 am, Stephan wrote: >      User<| title == $app-admin |> { >           groups +> "$title", >      } Stephan, I think you might want an "in" expression: http://docs.puppetlabs.com/guides/language_guide.html#in-expressions I've never tried these with the collection operator, but

[Puppet Users] Re: Hostname fact doesn't handle hostnames with periods

2011-10-11 Thread Tim Coote
Hi easybeats On Oct 7, 4:54 pm, easybeats wrote: > Hi Tim, > > > IMO, you've got to be clear what the underlying information model that > > puppet / facter supports is. In particular, if you simply say that the > > facts are the data reported by the underlying tools, then you've got > > zero abst

[Puppet Users] Re: Hostname fact doesn't handle hostnames with periods

2011-10-11 Thread Tim Coote
Hi Ken [sorry for top-posting] I'm not a fan of supporting bad practice too strongly, it just becomes a stick with which to beat yourself with ;-) I think that it would be better to show folk how to get a better model, and to point out that fqdns are not properties of hosts (they're properties of

Re: [Puppet Users] Re: Collection Questions

2011-10-11 Thread Jeremy Kindy
On Tue, Oct 11, 2011 at 5:48 PM, Nick Fagerlund < nick.fagerl...@puppetlabs.com> wrote: > I've never tried these with the collection operator, but it would look > something like: > > User<| title in $app-admin |> { > groups +> "$title", > } > > Does that work? > I wish it did. However, what you

Re: [Puppet Users] Announce: Puppet Dashboard 1.2.2 Available

2011-10-11 Thread Michael Stahnke
On Tue, Oct 11, 2011 at 2:06 PM, Nick Steel wrote: > Any chance of getting RPMS for EL 5? > The Dashboard requires ruby 1.8.7, which isn't available natively on EL5. If you have an updated ruby, you *should* be able to make the EL6 ones work, I think. You can also run: rpmbuild -tb puppet-da

Re: [Puppet Users] Issues switching over to using environments

2011-10-11 Thread Dan White
http://docs.puppetlabs.com/references/stable/type.html#file under "source" If you specify multiple file sources for a file, then the first source that exists will be used. This allows you to specify what amount to search paths for files: file { "/path/to/my/file": source => [ "/modu

Re: [Puppet Users] Issues switching over to using environments

2011-10-11 Thread Gonzalo Servat
Thanks Dan. I thought Puppet may have a way to automagically search for a file based on environment first (e.g. modules/nfs/$environment/foo), then a default as specified by source (e.g. modules/nfs/foo). I can see how what you pasted helps, but it could become tedious having to specify the search

[Puppet Users] Could not evaluate: Field 'key' is required when exporting ssh_authorized_keys

2011-10-11 Thread Sam Morrison
I seem to have a weird error when trying to collect ssh keys and installing them on our backup server. On all hosts I have: @@ssh_authorized_key { "root@$fqdn": type => ssh-rsa, key => $rootsshkey, tag => 'host', user => backups, } Then on my backup server I have: Ssh_au

[Puppet Users] Could not retrieve local facts: private method `split' called for nil:NilClass

2011-10-11 Thread Berry Sizemore
Hello, I am installing Puppet Enterprise agent (puppet-enterprise-1.2.1- solaris-10-sparc) on a Solaris 10 64bit SPARC system. When I view the logs for the agent I see: puppet-agent[14680]: [ID 702911 daemon.error] Could not run Puppet configuration client: Could not retrieve local facts: privat

[Puppet Users] tlsv1 alert - unknown ca!

2011-10-11 Thread Sumit
Hi, I have setup puppet (2.7.5) on 2 different machines on ec2. Puppet master config 1. Ruby - 1.9.3 2. OS - Amazon linux image 3. runs from root user Puppet agent config 1. Ruby - 1.9.3 2. OS - centos 3. runs from root user When i run the agent, it throws an error "unknown ca" (can been seen i