Re: [Puppet Users] librarian-puppet vs git superproject?

2012-07-24 Thread Ohad Levy
On Tue, Jul 24, 2012 at 9:49 AM, David Schmitt wrote: > On 24.07.2012 00:43, Ryan Bowlby wrote: > >> Can anyone comment on their experiences with librarian-puppet or using >> git superproject with per puppet module repositories? We are in the >> midst of determining which route is optimal for our

[Puppet Users] Re: Creating Subgroups in Puppet Dashboard

2012-07-24 Thread Praveen Shivashankar
@Calvin: Thanks for the inputs. I had infact fixed it a few days ago. I created a new group and inherited the parent class into it. After that I defined a parameter with the same name as was in the "All Nodes" section and over rid the value in this new group. Now all the nodes added to the gr

[Puppet Users] Re: subscribe is not restarting the service even though the file has changed :(

2012-07-24 Thread Praveen Shivashankar
@John, Thanks a lot for the detailed reply. I do concur with the idea that they cannot be mutually exclusive. But for some reason the client had that requirement. Fortunately I was able to convince them to let go of that, and now I just went ahead and pass the service name as an external param

Re: [Puppet Users] Passing multiple arrays to define

2012-07-24 Thread Felix Frank
On 07/23/2012 07:16 PM, Jist Anidiot wrote: > and the node file > > $user = [ "A", "B", "C", "D" ] > > mything { $user: > version => "1.5" > > } > > However this still means I'd have to do one for each version (and figure > out how to avoid a Duplicate definition problem. > > Is there an

[Puppet Users] Adding resource parameters in inheritence

2012-07-24 Thread ollies...@googlemail.com
Hello, On some machines being managed by Puppet I would like to perform targetted audit runs with "puppet -t --noop --tags audit" For better or for worse I am trying to do this with a separate module "audit" rather than add the audit => to the resources and use inheritence. i.e. class audit

[Puppet Users] Re: How to delete users from groups ?

2012-07-24 Thread Paul Tötterman
> > So I can do it using membership => inclusive (instead of > key_membership) > You're right, I took a too quick look at http://docs.puppetlabs.com/references/latest/type.html Cheers, Paul -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

[Puppet Users] Re: sshkey type purge

2012-07-24 Thread jcbollinger
On Monday, July 23, 2012 1:10:10 PM UTC-5, Trevor Vaughan wrote: > > So, I'm sure this has been covered somewhere, but I can't seem to find it. > > Is there no 'purge' ability on the 'sshkey' type? It would be nice to > be able to get rid of entries for hosts that are no longer present > witho

Re: [Puppet Users] Passing multiple arrays to define

2012-07-24 Thread Jist Anidiot
Thanks for the reply. More info inline. On Tuesday, July 24, 2012 5:02:19 AM UTC-4, Felix.Frank wrote: > > > If I'm reading this right, you're trying to join two arrays in a > distinct fashion. I'm afraid puppet cannot easily do that. > > Your best bet is the create_resources function, if your

[Puppet Users] Re: Passing multiple arrays to define

2012-07-24 Thread jcbollinger
On Monday, July 23, 2012 12:16:21 PM UTC-5, Jist Anidiot wrote: > > I'm trying to make a defined type with two parameters and pass an array > for each parameter. > In that, you succeeded. > > My first try was something like this: > > init.pp > > define mything ($user, $version) { > exec

Re: [Puppet Users] Re: sshkey type purge

2012-07-24 Thread Trevor Vaughan
I attempted to set it and it wasn't very happy but your assessment is what I had thought as well. Thanks, Trevor On Tue, Jul 24, 2012 at 8:46 AM, jcbollinger wrote: > > > On Monday, July 23, 2012 1:10:10 PM UTC-5, Trevor Vaughan wrote: >> >> So, I'm sure this has been covered somewhere, but I c

Re: [Puppet Users] Facter fact length?

2012-07-24 Thread bg
How exposed are facts? Are there any means to collect resources from a client that I can make use of? On Sunday, July 22, 2012 3:05:28 AM UTC-5, yersinia.spiros wrote: > > Are you sure that exposing a password hash by a fact is a sane thing > to do from a security point of view ? Too simple t

[Puppet Users] Re: Adding resource parameters in inheritence

2012-07-24 Thread jcbollinger
On Tuesday, July 24, 2012 4:45:11 AM UTC-5, olli...@googlemail.com wrote: > > Hello, > > On some machines being managed by Puppet I would like to perform targetted > audit runs with "puppet -t --noop --tags audit" > > For better or for worse I am trying to do this with a separate module > "

[Puppet Users] Re: Adding resource parameters in inheritence

2012-07-24 Thread ollies...@googlemail.com
> > Your general idea sounds feasible. I see two specific problems in the > example code you posted, however: > >1. Is the title of the File resource you want to override really >'resolv.conf'? I mean, it could be if you specified the full path via the >'path' parameter in the ori

Re: [Puppet Users] sshkey type purge

2012-07-24 Thread Nan Liu
On Mon, Jul 23, 2012 at 11:10 AM, Trevor Vaughan wrote: > So, I'm sure this has been covered somewhere, but I can't seem to find it. > > Is there no 'purge' ability on the 'sshkey' type? It would be nice to > be able to get rid of entries for hosts that are no longer present > without actually hav

Re: [Puppet Users] Re: sshkey type purge

2012-07-24 Thread Matthias Saou
On Tue, 24 Jul 2012 09:39:30 -0400 Trevor Vaughan wrote: > I attempted to set it and it wasn't very happy but your assessment is > what I had thought as well. Yup. (Still) Unsupported, unfortunately... See http://projects.puppetlabs.com/issues/1581 Matthias -- Matthias Saou

[Puppet Users] erb question - can you "if val" in an "each do" statement?

2012-07-24 Thread earthgecko
Quick erb question: Can you use a if val in an each do iteration? And if so... how :/ If someone knows and is kind enough to shed some light. Trying to figure what will work and the following do NOT work. <% hosts.each do |val| %><% if val != "<%= hostname %>" %> host (<%= val %>);<% end %>

[Puppet Users] Hiera targetted value lookup

2012-07-24 Thread tomash
Hi, I'm trying to get to grips with hiera and yaml as the backend. given a yaml file like this: --- user: dave: home: "/home/dave" shell: "/bin/bash" steve: home: "/home/steve" shell: "/bin/zsh" How would I do a hiera lookup for steve's shell? on the cli, I cannot do "hi

[Puppet Users] Custom providers/types correct location

2012-07-24 Thread David Campos
Hello all, I do not know whether I have hit a bug or it is just a misconception about puppet configuration but I have found a strange inconsistency setting custom providers and types. Theoretically, custom providers and types can be located at a folder named /lib/puppet/providers or /lib/puppe

[Puppet Users] Re: Passing multiple arrays to define

2012-07-24 Thread Jist Anidiot
On Tuesday, July 24, 2012 9:31:39 AM UTC-4, jcbollinger wrote: > > I think it important to not only come up with a means to your end, but > also to understand what you've done once you get there. What you need to > know in this case is that Puppet provides a shortcut for declaring multiple >

[Puppet Users] Re: Puppet template tags and Java JSP tags

2012-07-24 Thread Yanis Guenane
Thanks a lot to both of you. Effectively, escaping the JSP opening tag with <%% made the trick. The closing tag needs not to be closed. It is not interpreted in anyway. @John : Thanks for the complementaries informations to do it with ERB. On Monday, July 23, 2012 2:57:13 PM UTC+2, jcbollinger

Re: [Puppet Users] access facts in ENC

2012-07-24 Thread Stefan Schulte
On Mon, Jul 23, 2012 at 08:25:49PM -0400, Brian Gupta wrote: > Your ENC script can pretty much do whatever you want it to do. I'm not > exactly following what you want to do with the facts, but you could > upload them to your ENC like so: > https://github.com/theforeman/puppet-foreman/blob/master/t

[Puppet Users] Re: Custom providers/types correct location

2012-07-24 Thread ZJE
On Tuesday, July 24, 2012 10:33:11 AM UTC-5, David Campos wrote: > > Hello all, > > I do not know whether I have hit a bug or it is just a misconception about > puppet configuration but I have found a strange inconsistency setting > custom providers and types. Theoretically, custom providers and

[Puppet Users] Could not retrieve catalog from remote server: end of file reached

2012-07-24 Thread Matt Wise
I've got a few puppet servers running behind Nginx, load balanced with an ELB. I occasionally see this error in bursts.. > > Tue Jul 24 09:41:23 + 2012 Puppet (err): Could not retrieve catalog from > remote server: end of file reached > Tue Jul 24 09:41:24 + 2012 Puppet (err): Could not

Re: [Puppet Users] Method across providers for the same type

2012-07-24 Thread ZJE
On Tuesday, July 17, 2012 2:29:55 PM UTC-5, ZJE wrote: > > > On Tuesday, July 17, 2012 2:02:10 PM UTC-5, ZJE wrote: >> >> >> On Tuesday, July 17, 2012 12:29:52 PM UTC-5, Jeff McCune wrote: >>> >>> On Tue, Jul 17, 2012 at 9:49 AM, Nan Liu <> wrote: >>> On Tue, Jul 17, 2012 at 8:34 AM, ZJE <>

Re: [Puppet Users] erb question - can you "if val" in an "each do" statement?

2012-07-24 Thread Stefan Schulte
On Tue, Jul 24, 2012 at 08:08:30AM -0700, earthgecko wrote: > Quick erb question: > > Can you use a if val in an each do iteration? And if so... how :/ If > someone knows and is kind enough to shed some light. > > Trying to figure what will work and the following do NOT work. > > <% hosts.eac

Re: [Puppet Users] Hiera targetted value lookup

2012-07-24 Thread Aaron Grewell
On Tue, Jul 24, 2012 at 8:08 AM, tomash wrote: > Hi, > > I'm trying to get to grips with hiera and yaml as the backend. > > given a yaml file like this: > > --- > user: > dave: > home: "/home/dave" > shell: "/bin/bash" > steve: > home: "/home/steve" > shell: "/bin/zsh" > > How

Re: [Puppet Users] erb question - can you "if val" in an "each do" statement?

2012-07-24 Thread earthgecko
Thank you Stefan Just testing and ... gary@mc9:/../github/dev/puppet$ erb -P -x -T '-' modules/csync2/templates/host.csync2.cfg.erb | ruby -c Syntax OK gary@mc9:/../github/dev/puppet$ Brilliant, thank you very much. Would still be interested to know if you can use if val in the each do contex

[Puppet Users] Re: Custom providers/types correct location

2012-07-24 Thread Nick Fagerlund
On Tuesday, July 24, 2012 9:33:28 AM UTC-7, ZJE wrote: > > I'm using Puppet 3.0.0rfc3, so your YMMV, but for me it's > /lib/puppet/provider/ > and /lib/puppet/type > Note both "type" and "provider" are both singular - there's no trailing > 's'. > What ZJE said. The docs are here: http://doc

[Puppet Users] aggregate facts

2012-07-24 Thread ZJE
In our environment, we publish a SKU to identify each class of server, such that a server with X CPUs, Y DIMMS, and Z disks is SKU-2012-123. I would like to create a custom fact to take this information from facter and generate these SKUs. I'm relatively new to ruby, so I'm wondering what the b

[Puppet Users] Re: cert issues, puppet agent applying configs, problems oh my!

2012-07-24 Thread Zippy Zeppoli
>Does directory /var/run/puppet exist? Does the puppet agent have write access to it? (Don't neglect to consider SELinux if you're running it in enforcing mode.) Yes it exists, and I turned selinux off just to make sure. It still has the same problem. [root@ip ~]# puppet agent dnsdomainname:

[Puppet Users] can dashboard and foreman be used at the same time?

2012-07-24 Thread Hai Tao
I wonder if I can use dashboard and foreman at the same time, and for the same puppet master? Thanks. Hai T. -- 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 fro

Re: [Puppet Users] Re: problem using apache & passenger to run dashboard

2012-07-24 Thread banjer
I'm having the same exact problem trying to get Apache to serve puppet dashboard on CentOS 6.3. Apache is set up to serve my puppet master, and the puppetmaster is configured and working just fine. I get this in the apache error log: Directory index forbidden by Options directive: /usr/sha

Re: [Puppet Users] Re: problem using apache & passenger to run dashboard

2012-07-24 Thread banjer
And 2 minutes after I posted this, I got it working :). It was indeed the RailsAutoDetect. I commented it out and set RailsBaseURI to /. Like this: #RailsAutoDetect On RailsBaseURI / Listen 3000 ...snip... Hai, hope this works for you! On Tuesday, July 24, 2012 2:30:46 PM UTC

Re: [Puppet Users] Re: problem using apache & passenger to run dashboard

2012-07-24 Thread Hai Tao
I have figured it out. Simply move "RailsAutoDetect On" into the virtualhost block will resolve the issue. Basically, their example should be fixed the same way. On Tue, Jul 24, 2012 at 11:30 AM, banjer wrote: > I'm having the same exact problem trying to get Apache to serve puppet > dashboard

Re: [Puppet Users] Re: sshkey type purge

2012-07-24 Thread Trevor Vaughan
That's a different type, but same difference. I was looking at sshkey not ssh_authorized_key but it is the exact same problem. Thanks! Trevor On Tue, Jul 24, 2012 at 10:57 AM, Matthias Saou wrote: > On Tue, 24 Jul 2012 09:39:30 -0400 > Trevor Vaughan wrote: > >> I attempted to set it and it w

Re: [Puppet Users] can dashboard and foreman be used at the same time?

2012-07-24 Thread Ohad Levy
On Tue, Jul 24, 2012 at 9:28 PM, Hai Tao wrote: > I wonder if I can use dashboard and foreman at the same time, and for > the same puppet master? > > sure, just make sure you have both reports defined and that dashboard and foreman are running on different ports... Ohad > Thanks. > > Hai T. > >

Re: [Puppet Users] Escaping Quotes

2012-07-24 Thread Corby
I placed the printf string in a separate variabe, then I can double quote the variable and it will take care of escaping correctly. $fdisk_cmd = "c\nu\nn\np\n1\n\n\nw\n" exec { "fdisk /dev/${name}": command => "printf \"$fdisk_cmd\" | fdisk /dev/${name}", unless => "cat /proc/partitions | gre

Re: [Puppet Users] Facter fact length?

2012-07-24 Thread Denmat
Hi, Coming In late to the conversation so forgive me if I dont get it. You want to do a one way sync (a pull) from the backup server to other nodes? Well I would say just rsync using passphraseless keys into a directory structure split by node name. However if you want to build a new password

Re: [Puppet Users] erb question - can you "if val" in an "each do" statement?

2012-07-24 Thread Stefan Schulte
On Tue, Jul 24, 2012 at 10:47:40AM -0700, earthgecko wrote: [...] > Would still be interested to know if you can use if val in the each do > context. > [...] > On Tuesday, July 24, 2012 6:12:27 PM UTC+1, Stefan Schulte wrote: > > On Tue, Jul 24, 2012 at 08:08:30AM -0700, earthgecko wrote: > > >

Re: [Puppet Users] can dashboard and foreman be used at the same time?

2012-07-24 Thread Hai Tao
can dashboard and foreman share the same database then? On Tue, Jul 24, 2012 at 11:46 AM, Ohad Levy wrote: > > > On Tue, Jul 24, 2012 at 9:28 PM, Hai Tao wrote: >> >> I wonder if I can use dashboard and foreman at the same time, and for >> the same puppet master? >> > sure, just make sure you ha

[Puppet Users] does foreman require stored config?

2012-07-24 Thread Hai Tao
I am trying to isntall foreman, but it seems that it required to config stored config first, and it will use the puppet database. can someone explain why it has to use the stored config database? Thanks. -- You received this message because you are subscribed to the Google Groups "Puppet Users

Re: [Puppet Users] can dashboard and foreman be used at the same time?

2012-07-24 Thread llow...@oreillyauto.com
On Tuesday, July 24, 2012 4:27:39 PM UTC-5, Hai wrote: > > can dashboard and foreman share the same database then? > > Yes, I have dashboard and foreman on my test Vm all set to use Puppet'd database. > On Tue, Jul 24, 2012 at 11:46 AM, Ohad Levy wrote: > > > > > > On Tue, Jul 24, 2012 a

[Puppet Users] Re: does foreman require stored config?

2012-07-24 Thread llow...@oreillyauto.com
It only is needed if you want to have the foreman list/show facts and such for the puppet master. It makes life a lot easier, and makes foreman a lot more useful, and it does make the process of importing classes a lot easier as well. On Tuesday, July 24, 2012 4:35:42 PM UTC-5, Hai wrote: > >

Re: [Puppet Users] sshkey type purge

2012-07-24 Thread jcbollinger
On Tuesday, July 24, 2012 9:47:25 AM UTC-5, Nan Liu wrote: > > On Mon, Jul 23, 2012 at 11:10 AM, Trevor Vaughan > wrote: > > So, I'm sure this has been covered somewhere, but I can't seem to find > it. > > > > Is there no 'purge' ability on the 'sshkey' type? It would be nice to > > be abl

Re: [Puppet Users] sshkey type purge

2012-07-24 Thread Nan Liu
On Tue, Jul 24, 2012 at 3:05 PM, jcbollinger wrote: > > > On Tuesday, July 24, 2012 9:47:25 AM UTC-5, Nan Liu wrote: >> >> On Mon, Jul 23, 2012 at 11:10 AM, Trevor Vaughan >> wrote: >> > So, I'm sure this has been covered somewhere, but I can't seem to find >> > it. >> > >> > Is there no 'purge'

[Puppet Users] Re: cert issues, puppet agent applying configs, problems oh my!

2012-07-24 Thread jcbollinger
On Tuesday, July 24, 2012 1:04:38 PM UTC-5, Zippy Zeppoli wrote: > > >Does directory /var/run/puppet exist? Does the puppet agent have write > access to it? (Don't neglect to consider SELinux if you're running it in > enforcing mode.) > Yes it exists, and I turned selinux off just to make sur

Re: [Puppet Users] librarian-puppet vs git superproject?

2012-07-24 Thread Ryan Bowlby
Thanks all, we've decided to stick with git super project and per module repositories. Some of the modules will be a clone from github, but most are internal. It seems to suit our needs and we don't see a reason to implement librarian-puppet. Ohad, I setup pulp at work and it's pretty good (tas

Re: [Puppet Users] sshkey type purge

2012-07-24 Thread Trevor Vaughan
d'oh! Syntax failure on my part it seems. However, you can point sshkey to different files, so that could be my issue. If you actually specify a target file for your sshkey instances, does it still work? Trevor On Tue, Jul 24, 2012 at 6:21 PM, Nan Liu wrote: > On Tue, Jul 24, 2012 at 3:05 PM,

Re: [Puppet Users] sshkey type purge

2012-07-24 Thread Nan Liu
On Tue, Jul 24, 2012 at 5:09 PM, Trevor Vaughan wrote: > d'oh! > > Syntax failure on my part it seems. > > However, you can point sshkey to different files, so that could be my issue. > > If you actually specify a target file for your sshkey instances, does > it still work? No, back to parsedfile

Re: [Puppet Users] Facter fact length?

2012-07-24 Thread bg
Probably need to clarify a few things. The server relationships are simply production/backup pairs (almost all 1:1, but > 100 of these unique pairings), and it would be a master/slave type relationship, so there wouldn't be conflicts between production/backup (the application isn't active/active

Re: [Puppet Users] sshkey type purge

2012-07-24 Thread Trevor Vaughan
Ok, that verifies what I was seeing then. Ah well. Thanks! Trevor On Tue, Jul 24, 2012 at 8:15 PM, Nan Liu wrote: > On Tue, Jul 24, 2012 at 5:09 PM, Trevor Vaughan > wrote: >> d'oh! >> >> Syntax failure on my part it seems. >> >> However, you can point sshkey to different files, so that could

[Puppet Users] Is modulename::parentclass::subclassname ok style?

2012-07-24 Thread Brian Gupta
And is the following the best way to support this: (ie: will it be supported for the foreseeable future.) $modulepath/modulename/manifests/parentclass/subclassname.pp the way the autoloader supports this? Long story short, I can test and see if it works, but I don't want to trust that as a way to

Re: [Puppet Users] Re: does foreman require stored config?

2012-07-24 Thread Brian Gupta
I'd like to add that *IF* you are using Foreman as an ENC, the preferred method of putting facts in the Foreman database is the new ENC script that updates facts on every puppet run: https://github.com/theforeman/puppet-foreman/blob/master/templates/external_node.rb.erb Where you might want to us

[Puppet Users] Skeleton configuration for managing multiple locations in puppet

2012-07-24 Thread Kyle Sexton
I created a skeleton configuration for managing multiple locations in puppet that I would appreciate feedback on. The configuration as it stands is that two sites are defined, Earth and Mars. Parameters for each site are defined in site/manifests/earth/params.pp and site/manifests/mars/params.p

[Puppet Users] Has anyone written an ENC script that uses EC2 tags for classification purposes?

2012-07-24 Thread Brian Gupta
I'm thinking it should be fairly simple to have a puppetmaster call out to an ENC script that queries the EC2 API to get tags for classification purposes, and would be surprised if someone hasn't already written an ENC script to do this. I'm thinking this will help let nodes in autoscaling groups

Re: [Puppet Users] Re: how to scale puppet with F5 load balancer?

2012-07-24 Thread Matt
The issue I ran into that caused problems was the following Puppet 2.7.14 for some reason on my environment sets the keylength by default to 4096. F5 LTM on at least 10.1 version can not support anything more than 2048 for both the cert on the F5 and the client cert for authentication the LTM w

Re: [Puppet Users] Re: how to scale puppet with F5 load balancer?

2012-07-24 Thread Nan Liu
On Tue, Jul 24, 2012 at 10:19 PM, Matt wrote: > The issue I ran into that caused problems was the following > > Puppet 2.7.14 for some reason on my environment sets the keylength by > default to 4096. F5 LTM on at least 10.1 version can not support anything > more than 2048 for both the cert on th