[Puppet Users] Managing classes of machines

2012-09-14 Thread Gregory Orange
Hi everyone, We've got a fairly small set of machines (perhaps 30) soon to be managed with puppet. We're looking for a good way to define which machines get which packages, and how those packages are configured on certain sets of machines. e.g. Apache on devel and production-webserver

Re: [Puppet Users] RHEL Kickstart and Puppet certificates

2012-09-14 Thread David Schmitt
I interpreted that as using hostnames as hardware names and cnames as service names, pointing to the h/w the service is running on. D. On 13.09.2012 15:58, Nielsen, Steve wrote: Mike - Just curious, what do you mean by using cnames as the maker intended ? Are you suggesting a CNAME per

Re: [Puppet Users] AW: Issue with large directory content

2012-09-14 Thread Andrew Stangl
I had a similar issue some time back, and it was pointed out by the very helpful people in this group that puppet does an MD5 sum (or other hash check) on each file in the directory structure (probably something the strace mentioned would show you) This post gives a suggested solution to

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

2012-09-14 Thread Antidot SAS
Hi, I just update my debian with the new dashboard and I am encountering the following error: Processing PagesController#home (for 10.63.1.64 at 2012-09-14 10:12:08) [GET] Parameters: {action=home, controller=pages} Rendering template within layouts/application Rendering pages/home

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

2012-09-14 Thread Antidot SAS
Hi, Apparently the /etc/puppet-dashboard/setting.yml needed to be modify by the one from the package sorry for the disturbance. Regards, JM My bad, forget On Fri, Sep 14, 2012 at 10:13 AM, Antidot SAS antidot...@gmail.com wrote: Hi, I just update my debian with the new dashboard and I

Re: [Puppet Users] Re: I am trying to copy over a authorized_key file over to all the servers using puppet but it doe snot see to work. can any one help?

2012-09-14 Thread Luke Bigum
Can you show us the full file structure of your sshkey module as it appears on your puppet master, as well as the puppet master's puppet.conf. On 14/09/12 02:18, JGonza1 wrote: this is my init.pp file. node ct-eng-pats02-devint inherits default { include patshosts include users

[Puppet Users] puppet master replica in different data center and subnet

2012-09-14 Thread Myra Haubrich
Any suggestions on the best way to configure a puppet master replica/puppet HA/failover in different data center and subnet? Thought about masterless puppet, but seems like it is only good for some number of puppet agents. Thanks, Myra -- You received this message because you are subscribed

Re: [Puppet Users] Managing classes of machines

2012-09-14 Thread Luke Bigum
A very popular design is the module per package/service approach. Your modules become building blocks and your node definitions pull all the building blocks in to describe a certain machine. So if you've got web and database server types, your modules might be apache and mysql. If you are

[Puppet Users] Embedding Puppet / using it as a library / api

2012-09-14 Thread robert.gstoehl
Hey there, I'm thinking about reusing custom types from existing puppet infrastructure in standalone (ruby) applications. Example - Custom Type for a storage pool consisting of volume groups, logical volumes, drbd resources, filesystems, nfs export... you get the idea. Suppose that we have

[Puppet Users] Puppet ignoring ENC classes

2012-09-14 Thread Cosmin-Viorel Ilie
Hi everyone, I've been bashing my head in the wall for several days now trying to find out why puppet isn't loading the class from enc. I've setup the enc from puppet-dashboard which returns: [root@v-test-mng-01 puppet-dashboard]# /usr/bin/env PUPPET_DASHBOARD_URL=http://v-test-mng-01:3000

Re: [Puppet Users] Embedding Puppet / using it as a library / api

2012-09-14 Thread R.I.Pienaar
- Original Message - From: robert.gstoehl robert.gsto...@gmail.com To: puppet-users@googlegroups.com Sent: Friday, September 14, 2012 10:25:51 AM Subject: [Puppet Users] Embedding Puppet / using it as a library / api Hey there, I'm thinking about reusing custom types from

Re: [Puppet Users] Puppet ignoring ENC classes

2012-09-14 Thread R.I.Pienaar
- Original Message - From: Cosmin-Viorel Ilie ilie.cosmin.vio...@gmail.com To: puppet-users@googlegroups.com Sent: Friday, September 14, 2012 10:43:48 AM Subject: [Puppet Users] Puppet ignoring ENC classes Hi everyone, I've been bashing my head in the wall for several days now

Re: [Puppet Users] Embedding Puppet / using it as a library / api

2012-09-14 Thread Robert Gstoehl
On Fri, Sep 14, 2012 at 11:52 AM, R.I.Pienaar r...@devco.net wrote: - Original Message - From: robert.gstoehl robert.gsto...@gmail.com To: puppet-users@googlegroups.com Sent: Friday, September 14, 2012 10:25:51 AM Subject: [Puppet Users] Embedding Puppet / using it as a library /

Re: [Puppet Users] Embedding Puppet / using it as a library / api

2012-09-14 Thread Robert Gstoehl
On Fri, Sep 14, 2012 at 11:59 AM, Robert Gstoehl robert.gsto...@gmail.com wrote: On Fri, Sep 14, 2012 at 11:52 AM, R.I.Pienaar r...@devco.net wrote: - Original Message - From: robert.gstoehl robert.gsto...@gmail.com To: puppet-users@googlegroups.com Sent: Friday, September 14, 2012

Re: [Puppet Users] Why agent report is so slow?

2012-09-14 Thread flex
Thanks, Daniel. We do have some recursive file copies and hundreds of other resources. So we'd better decrease the resources numbers? On Fri, Sep 14, 2012 at 2:44 AM, Daniel Pittman dan...@puppetlabs.comwrote: On Thu, Sep 13, 2012 at 12:31 AM, flex frostyn...@gmail.com wrote: I use cron to

Re: [Puppet Users] Puppet ignoring ENC classes

2012-09-14 Thread Cosmin-Viorel Ilie
If i try to emulate what puppet is doing and call the script with the node name i get: [root@v-test-mng-01 puppet-dashboard]# /usr/bin/env PUPPET_DASHBOARD_URL=http://v-test-mng-01:3000 /usr/share/puppet-dashboard/bin/external_node v-test-tst-01.domain.net --- name: v-test-tst-01.domain.net

Re: [Puppet Users] Embedding Puppet / using it as a library / api

2012-09-14 Thread Robert Gstoehl
On Fri, Sep 14, 2012 at 12:21 PM, R.I.Pienaar r...@devco.net wrote: - Original Message - From: Robert Gstoehl robert.gsto...@gmail.com To: puppet-users@googlegroups.com Sent: Friday, September 14, 2012 11:12:14 AM Subject: Re: [Puppet Users] Embedding Puppet / using it as a library

Re: [Puppet Users] AW: Issue with large directory content

2012-09-14 Thread jcbollinger
On Friday, September 14, 2012 6:14:37 AM UTC-5, badamowicz wrote: The other questions from all of you and finally Den's question, which was: Are you trying to set any permissions inside that directory elsewhere in the manifest? made me rethink everything and pointed me to the right

[Puppet Users] Automatic require in custom type?

2012-09-14 Thread Jakov Sosic
Hi. I have 3 custom types, for example A, B, and C. A and B are build blocks for C. So if there is no A or B, C will fail to be added. For example: typeA { 'A': ... ... } typeB { 'B': ... ... } typeC { 'C': optionA = 'A', optionB = 'B', } So, I would have to write the require in

[Puppet Users] Where puppet store the source files?

2012-09-14 Thread itJunky
I have a directive like this: file { /etc/sudoers: owner = root, group = root, mode = 440, source = puppet:///modules/sudo/sudoers } When i try to get this file on puppet agent, i see error: err: /Stage[main]/Sudo/File[/etc/sudoers]: Could not evaluate:

[Puppet Users] Re: Where puppet store the source files?

2012-09-14 Thread Cosmin-Viorel Ilie
I think you need to edit the auth.conf file to allow the puppet client access. On Friday, September 14, 2012 5:12:49 PM UTC+3, itJunky wrote: I have a directive like this: file { /etc/sudoers: owner = root, group = root, mode = 440, source =

[Puppet Users] assistance needed - err: Could not retrieve catalog from remote server: execution expired

2012-09-14 Thread Jason Antman
Hi, I have a puppet infrastructure running 2.6.14 under Passenger with about 30 nodes. I'm just spinning up a new Cent 6.3, puppet 2.7.19 master. Right now I have the master built and configured using the same configuration as my 2.6.14 setup, with a few tweaks for the new version. Puppet on

[Puppet Users] Re: assistance needed - err: Could not retrieve catalog from remote server: execution expired

2012-09-14 Thread Jason Antman
Commented out storeconfigs/thin_storeconfigs as we were only using them to get facts in a DB and for Dashboard. Also commented out the Inventory Service stuff. Looks like that did it. Now I just need to figure out the real fix... On Friday, September 14, 2012 10:40:16 AM UTC-4, Jason Antman

[Puppet Users] Complex custom type?

2012-09-14 Thread Jakov Sosic
Hi. I've successfully written and tested three puppet custom types for managing cobbler so far (distro, repo and profile). So far it has been interesting week, learning ruby from zero, learning custom types etc. But I'm really satisfied with the results so far. Now I'm trying to figure out how

[Puppet Users] Node collecting its own exported resource

2012-09-14 Thread Jon McKenzie
I'm writing a module in which nodes export a concat::fragment, collect all other nodes' analogous resource, and populate a config file (in this case, the krb5.conf for MIT Kerberos). It seems that nodes are not able to collect their own resource, but they can collect every other resource, with

[Puppet Users] Changes to allowed function calls in Puppet 3.0

2012-09-14 Thread Andy Parker
This is a heads up to anyone who has written code that calls custom functions. We are making a change in Puppet 3.0 that will make the calls reject incorrect calls (see bug #15756). Calling functions from ruby code (either other functions or erb templates) was always supposed to be done by placing

[Puppet Users] Do you rely on 'param=undef' being equal to '(nothing)'?

2012-09-14 Thread Eric Sorenson
Hi, there's an issue that came up recently in the 3.0RCs -- Big thanks to Erik Dalén for reporting it in #16221 -- that involves a behaviour change to part of the DSL. In a nutshell, this code: define foobar ($param='Hello world') { notice($param) } foobar { 'test': param =

[Puppet Users] Re: Changes to allowed function calls in Puppet 3.0

2012-09-14 Thread Alessandro Franceschi
Hi Andrew, thank you for the notice (and thanks to Ken B. for informing me about it). In my modules I have tons of calls to custom functions in the *arguments* of my classes. Things like: class apache ( $my_class= params_lookup( 'my_class' ), $source = params_lookup(

Re: [Puppet Users] pe version of puppet, vmware provisioning with from template with guest customization

2012-09-14 Thread Jeff McCune
On Thu, Sep 13, 2012 at 2:36 PM, jimmy james.miller110...@gmail.com wrote: Hi All, I'm using puppet enterprise and am getting a feel for the vmware provisioning. I've been able to provision vms by using: puppet node_vmware create NameOfMyTemplate That sort of works, but I basically have

[Puppet Users] Re: [Puppet-dev] Re: Changes to allowed function calls in Puppet 3.0

2012-09-14 Thread Nick Lewis
On Friday, September 14, 2012 at 1:55 PM, Alessandro Franceschi wrote: Hi Andrew, thank you for the notice (and thanks to Ken B. for informing me about it). In my modules I have tons of calls to custom functions in the *arguments* of my classes. Things like: class apache ( $my_class

Re: [Puppet Users] Module critique

2012-09-14 Thread Alessandro Franceschi
On Thursday, September 6, 2012 11:48:40 PM UTC+2, Andreas Ntaflos wrote: On 2012-09-04 17:26, Bai Shen wrote: class solr { I recommend you follow best practices and not manage every aspect of your Solr resource in a single class, but split it up into subclasses, probably at least:

[Puppet Users] Re: [Puppet-dev] Do you rely on 'param=undef' being equal to '(nothing)'?

2012-09-14 Thread Aaron Grewell
I'm using the current behavior in inherited classes to unset parameters set by the parent class. If that no longer works it will definitely impact my code. On Sep 14, 2012 11:31 AM, Eric Sorenson eric.soren...@puppetlabs.com wrote: Hi, there's an issue that came up recently in the 3.0RCs -- Big

[Puppet Users] Re: [Puppet-dev] Do you rely on 'param=undef' being equal to '(nothing)'?

2012-09-14 Thread Stefan Schulte
On Fri, Sep 14, 2012 at 11:31:08AM -0700, Eric Sorenson wrote: Hi, there's an issue that came up recently in the 3.0RCs -- Big thanks to Erik Dalén for reporting it in #16221 -- that involves a behaviour change to part of the DSL. In a nutshell, this code: [..] class toplevel (

[Puppet Users] Help me name a class in the new puppetdb module!

2012-09-14 Thread Chris Price
Anyone interested in helping me name a class in the forthcoming puppetdb module? There are 2 major parts to the module... the part that sets up puppetdb itself, and the part that sets up the puppet master to talk to puppetdb. I'm brainstorming names for the latter... a class that you would apply

[Puppet Users] Arbitrary Code in plugin lib/

2012-09-14 Thread Mitchell Hashimoto
Hi, I'd like to DRY up some of my Puppet lib code and wanted to put helper classes in other parts of the lib/ folder in my plugin. What is the best way to access these files? I can think of various ways that may be considered hacks but wanted to know if there was a preferred way. Best, Mitchell

[Puppet Users] Live session on Puppet + AWS through Google Hangout on Air

2012-09-14 Thread Walter Heck - OlinData.com
Hi all, just wanted to let you know that there's a community event going on in Kuala Lumpur right now, currently there's a talk on OpenShift, and at noon (GMT+8) one of our guys will do a session on Puppet+AWS. It's being recorded by Google Hangout on Air, so even if you're late you can watch it

[Puppet Users] Re: Live session on Puppet + AWS through Google Hangout on Air

2012-09-14 Thread Walter Heck - OlinData.com
Sorry, a new hangout was started for the Puppet+AWS session: http://www.youtube.com/watch?v=XCvK2u_bI04feature=youtu.be cheers, Walter On Sat, Sep 15, 2012 at 10:13 AM, Walter Heck - OlinData.com walterh...@olindata.com wrote: Hi all, just wanted to let you know that there's a community