[Puppet Users] How do design next-gen modules, any guidelines ? a question for gurus...

2012-10-22 Thread Thomas Guthmann
Hi, My dilemma is how should I write my module to be next-gen ? Not from a code point of view but from a design/layout point of view. We wrote our modules for 2.6.x like every beginner would have done: write everything in init.pp. But now, the fashion is to use parameterized classes and

[Puppet Users] Possible to exclude an event in Puppet dashboard?

2012-10-22 Thread Martin Willemsma
Hi All, I was wondering if it is possible to NOT show an event in puppet dashboard. I have an exec resource that fires of a ruby script. This is triggering a changed event on every run, but actually I want to exclude this from showing up as CHANGED Is this possible, if so how can I achieve this?

Re: [Puppet Users] Possible to exclude an event in Puppet dashboard?

2012-10-22 Thread Stephen Gran
Hi, On Mon, 2012-10-22 at 10:28 +0200, Martin Willemsma wrote: Hi All, I was wondering if it is possible to NOT show an event in puppet dashboard. I have an exec resource that fires of a ruby script. This is triggering a changed event on every run, but actually I want to exclude this from

Re: [Puppet Users] Puppet spuriously removing classes from classes.txt

2012-10-22 Thread Matt Carroll
Hmm, I'm not sure that this is the same issue... the issue details the classes.txt only containing a newline wheras I'm experiencing a problem whereby the file sometimes only contains the default class 'settings'. It appears as if the node is compiling spuriously against a different environment

Re: [Puppet Users] Puppet spuriously removing classes from classes.txt

2012-10-22 Thread R.I.Pienaar
- Original Message - From: Matt Carroll ohol...@gmail.com To: puppet-users@googlegroups.com Sent: Monday, October 22, 2012 10:43:44 AM Subject: Re: [Puppet Users] Puppet spuriously removing classes from classes.txt Hmm, I'm not sure that this is the same issue... the issue

[Puppet Users] Re: How to find the utilization of agents

2012-10-22 Thread SRIRAAM DHILIBAN
Want to know in which yaml file the inventory details of the agents are getting saved On Sunday, 21 October 2012 09:16:21 UTC+5:30, SRIRAAM DHILIBAN wrote: Is there any way to get the report about how much the agent is utilized and how much time the agent is powered ON using PE ? . Will the

Re: [Puppet Users] stages examples/advices

2012-10-22 Thread Danie van Zyl
My 2cents, Why not use the stdlib that puppet provides. It contains the following stage presets, class stdlib::stages { stage { 'setup': before = Stage['main'] } stage { 'runtime': require = Stage['main'] } - stage { 'setup_infra': } - stage { 'deploy_infra': } - stage {

Re: [Puppet Users] Possible to exclude an event in Puppet dashboard?

2012-10-22 Thread Martin Willemsma
2012/10/22 Stephen Gran stephen.g...@guardian.co.uk Hi, On Mon, 2012-10-22 at 10:28 +0200, Martin Willemsma wrote: Hi All, I was wondering if it is possible to NOT show an event in puppet dashboard. I have an exec resource that fires of a ruby script. This is triggering a changed

Re: [Puppet Users] Possible to exclude an event in Puppet dashboard?

2012-10-22 Thread Calvin Walton
On Mon, 2012-10-22 at 10:28 +0200, Martin Willemsma wrote: Hi All, I was wondering if it is possible to NOT show an event in puppet dashboard. I have an exec resource that fires of a ruby script. This is triggering a changed event on every run, but actually I want to exclude this from

[Puppet Users] Re: Node specific exported resources

2012-10-22 Thread jcbollinger
On Friday, October 19, 2012 9:03:39 AM UTC-5, Alex C wrote: Greetings, I'm trying to wrap my head around a solution to a problem I'm facing with an exported resources configuration I have. I'm using the following simple config to build a munin configuration: @@file {

[Puppet Users] Re: Using Hiera with Parameters set for the Puppet Node

2012-10-22 Thread jcbollinger
On Friday, October 19, 2012 3:18:59 PM UTC-5, Thomas Biddle wrote: Is it possible to have Hiera look at a key set for the node first, before looking at other items in the hierarchy? In particular - I'm using Puppet Dashboard and am setting keys params for there, so I would like for any

[Puppet Users] Re: Puppet spuriously removing classes from classes.txt

2012-10-22 Thread jcbollinger
On Friday, October 19, 2012 10:55:03 AM UTC-5, Matt Carroll wrote: I've been asked to look at a problem on an overseas rig whereby certain bits of config were going awry. This was down to the fact that they were querying the mcollective registration database and feeding back in to the

[Puppet Users] Re: Failed to set group to '0': Operation not permitted

2012-10-22 Thread jcbollinger
On Friday, October 19, 2012 9:38:25 AM UTC-5, Dominic wrote: Hi everyone, Here is the task, I just need to get the file from master, untar it and execute a file. Step 1: Working as a root user,having the default puppet.conf for root and the agent could get the source file from

Re: [Puppet Users] Re: Variables and autoloading

2012-10-22 Thread jcbollinger
On Sunday, October 21, 2012 6:02:39 PM UTC-5, Guzmán Brasó wrote: John, I'm new to puppet and your mails confuse me a little bit... if parameterized classes are not recommended and you suggest when dealing with someone else parameterized class to set it through hiera (Puppet 3). Then I

[Puppet Users] Re: use regex to ensure multiple directories are absent or exist

2012-10-22 Thread jcbollinger
On Sunday, October 21, 2012 11:37:25 AM UTC-5, Panaman wrote: Is it possible to use regex to ensure directories are deleted. I want to be able to do something like: file { '/var/directory[1-9]': ensure = absent, } Would also be nice to use regex to ensure directories are

[Puppet Users] Re: Nginx + passenger + puppetmaster

2012-10-22 Thread Geert Booster
Hello, Op donderdag 7 juni 2012 08:44:54 UTC+2 schreef vulzscht het volgende: i will dig into it a bit more and provide my results here in case of success Did you found any solution? I am looking at the same problems, after a fresh puppetmaster install with passenger, getting: err: Could

Re: [Puppet Users] Puppet on OpenSuSE SLES

2012-10-22 Thread Niels Abspoel
If you don't want to compile it yourself: Look at these: home project: https://build.opensuse.org/package/show?package=puppetproject=home%3Aaboe76%3Abranches%3Asystemsmanagement%3Apuppet%3Adevel devel project maintainer opensuse

Re: [Puppet Users] Puppet on OpenSuSE SLES

2012-10-22 Thread Niels Abspoel
Or you can go to https://build.opensuse.org/ They have two projects running: 2.7.19: systemsmanagement-puppethttps://build.opensuse.org/package/show?package=puppetproject=systemsmanagement%3Apuppet 3.0.0:

Re: [Puppet Users] How do design next-gen modules, any guidelines ? a question for gurus...

2012-10-22 Thread Ryan Coleman
On Mon, Oct 22, 2012 at 12:33 AM, Thomas Guthmann tguthm...@iseek.com.auwrote: But now, the fashion is to use parameterized classes and Hiera which we will use with puppet 2.7.x. On this point, I'd suggest you read this docs page with some points on writing classes with other versions in

Re: [Puppet Users] Puppet on OpenSuSE SLES

2012-10-22 Thread Darin Perusich
Hi Niels, The only thing those SuSE packages are missing, imo, is the ruby-shadow packages and dependency. I've been meaning to submit ruby-shadow and an updated spec to systemsmanagement:puppet just haven't had the time. -- Later, Darin On Mon, Oct 22, 2012 at 1:18 AM, Niels Abspoel

Re: [Puppet Users] Razor Mongodb related questions

2012-10-22 Thread Hong
Thanks so much for your reply on my questions. I will move this topic to dev list :) On Sunday, October 21, 2012 9:20:15 PM UTC-7, Daniel Pittman wrote: On Sun, Oct 21, 2012 at 10:12 AM, Hong hong...@gmail.com javascript: wrote: I'm new to Razor and have two questions related to Razor

[Puppet Users] Re: How do design next-gen modules, any guidelines ? a question for gurus...

2012-10-22 Thread jcbollinger
On Monday, October 22, 2012 2:33:18 AM UTC-5, Thomas Guthmann wrote: Hi, My dilemma is how should I write my module to be next-gen ? Not from a code point of view but from a design/layout point of view. I don't think much has changed in that area in a long time. Styles have come and

[Puppet Users] Chicago Puppet UG: Chat with Puppet Labs folks on Oct 24

2012-10-22 Thread Dawn Foster
I wanted to make sure that people in and around Chicago are aware of an upcoming Puppet UG meetup on October 24. Here are the details that were posted on the meetup site, but you should visit the meetup page for more info: http://www.meetup.com/Chicago-Puppet-users-group/events/87307142/ Chat

Re: [Puppet Users] Re: Variables and autoloading

2012-10-22 Thread Guzman Braso
John: Very concise and helpful answer, thank you very much for your time! Best regards from Montevideo, Guzmán On Mon, Oct 22, 2012 at 12:37 PM, jcbollinger john.bollin...@stjude.orgwrote: On Sunday, October 21, 2012 6:02:39 PM UTC-5, Guzmán Brasó wrote: John, I'm new to puppet and your

[Puppet Users] Re: Failed to set group to '0': Operation not permitted

2012-10-22 Thread Dominic
Hi JCBollinger, Thank you so much for your suggestions. Here goes my manifests: #init.pp class rabbitmq { include rabbitmq::source, rabbitmq::service } #source.pp class rabbitmq::source { file { /home/user: ensure = directory } file {

[Puppet Users] Your number of resources and time of your catalog runs

2012-10-22 Thread Bostjan Skufca
Hi, I was just wondering what is someone else's number of manager resources and catalog run time. Mine is 1,700 resources and average catalog run of 70-100 seconds (40 seconds for catalog retrieval, 30-60 for catalog run), depending on the network distance between puppetmaster and managed

Re: [Puppet Users] File optimizations

2012-10-22 Thread Stephen Gran
Hi, On Mon, 2012-10-22 at 12:09 -0700, Bostjan Skufca wrote: Hi there, I'm running into slow catalog runs because of many files that are managed. I was thinking about some optimizations of this functionality. Your suggestions look reasonable to me, but I'm not a puppetlabs person, so

[Puppet Users] Re: Node specific exported resources

2012-10-22 Thread Alex C
We're not ready to roll out hiera just yet. I ended up storing the extra config in a parameter in puppet-dashboard and I'm appending that variable to the existing configuration: $extra = regsubst($::munin_extra, '\\n', , 'G') @@file { /etc/munin/munin.conf.d/${::fqdn}.node: content =

[Puppet Users] Duplicate class declaration because of counterintuitive class scoping

2012-10-22 Thread Kristof Willaert
Hi, I bumped into the following this afternoon (on a 2.7.19 puppet master/agent combo): consider a class profile::tomcat in module profile with the following content: $ cat modules/profile/manifests/tomcat.pp class profile::tomcat { class { 'tomcat': } notice('Class profile::tomcat in

Re: [Puppet Users] File optimizations

2012-10-22 Thread Nikola Petrov
On Mon, Oct 22, 2012 at 12:09:45PM -0700, Bostjan Skufca wrote: Hi there, I'm running into slow catalog runs because of many files that are managed. I was thinking about some optimizations of this functionality. 1: On puppetmaster: For files with source = 'puppet:///modules...'

Re: [Puppet Users] custom type with array property?

2012-10-22 Thread Jakov Sosic
On 10/21/2012 10:43 PM, Nan Liu wrote: Puppet::Type.newtype(:customtype) do newproperty(:myarray, array_matching = :all) do end end Thank you! Although you have syntax error, it should be: newproperty(:myarray, :array_matching = :all) do Note the collon in front of array_matching.

Re: [Puppet Users] Your number of resources and time of your catalog runs

2012-10-22 Thread Jakov Sosic
On 10/22/2012 09:04 PM, Bostjan Skufca wrote: Hi, I was just wondering what is someone else's number of manager resources and catalog run time. Mine is 1,700 resources and average catalog run of 70-100 seconds (40 seconds for catalog retrieval, 30-60 for catalog run), depending on the

Re: [Puppet Users] File optimizations

2012-10-22 Thread Brice Figureau
On 23/10/12 01:39, Nikola Petrov wrote: On Mon, Oct 22, 2012 at 12:09:45PM -0700, Bostjan Skufca wrote: Hi there, I'm running into slow catalog runs because of many files that are managed. I was thinking about some optimizations of this functionality. 1: On puppetmaster: For files with

Re: [Puppet Users] File optimizations

2012-10-22 Thread Brice Figureau
Hi, For development questions, feel free to post in puppet-dev :) You're not the first irritated by those md5 computations taking time. That's something I'd like to really optimize since a lng time. That's simple quite difficult. On 22/10/12 21:09, Bostjan Skufca wrote: Hi there, I'm

Re: [Puppet Users] Your number of resources and time of your catalog runs

2012-10-22 Thread llowder
On Monday, October 22, 2012 4:12:15 PM UTC-5, Jakov Sosic wrote: On 10/22/2012 09:04 PM, Bostjan Skufca wrote: Hi, I was just wondering what is someone else's number of manager resources and catalog run time. Mine is 1,700 resources and average catalog run of 70-100 seconds (40

Re: [Puppet Users] Change Tab behavior in 3.0+

2012-10-22 Thread Jo Rhett
On Oct 15, 2012, at 2:23 PM, Matt Zagrabelny wrote: There are a truckload of reasons to not use them. No, there is only one reason: force everybody on the project to use the indentation you prefer. Every editor and command line tool allows for personalized tab adjustments. Logic based on how

Re: [Puppet Users] Your number of resources and time of your catalog runs

2012-10-22 Thread Ramin K
On 10/22/2012 2:11 PM, Jakov Sosic wrote: But as a side note, I'm wondering at what number of nodes one must replace puppetmaster with Apache+Passanger? Just a rough estimate, let's say master runs on 2 socket quadcore. Is it 50 agents? 100 agents? 200 agents? Available CPU has no bearing

[Puppet Users] Re: Duplicate class declaration because of counterintuitive class scoping

2012-10-22 Thread jcbollinger
On Monday, October 22, 2012 3:21:57 PM UTC-5, Kristof Willaert wrote: Hi, I bumped into the following this afternoon (on a 2.7.19 puppet master/agent combo): consider a class profile::tomcat in module profile with the following content: $ cat modules/profile/manifests/tomcat.pp

[Puppet Users] Re: Failed to set group to '0': Operation not permitted

2012-10-22 Thread jcbollinger
On Monday, October 22, 2012 12:55:25 PM UTC-5, Dominic wrote: Hi JCBollinger, Thank you so much for your suggestions. Here goes my manifests: #init.pp class rabbitmq { include rabbitmq::source, rabbitmq::service } #source.pp class rabbitmq::source { file { /home/user:

Re: [Puppet Users] File optimizations

2012-10-22 Thread Bostjan Skufca
Inline On Monday, 22 October 2012 23:28:03 UTC+2, Brice Figureau wrote: Hi, For development questions, feel free to post in puppet-dev :) You're not the first irritated by those md5 computations taking time. That's something I'd like to really optimize since a lng time. That's

Re: [Puppet Users] Re: Variables and autoloading

2012-10-22 Thread jcbollinger
On Monday, October 22, 2012 12:26:15 PM UTC-5, Nan Liu wrote: On Mon, Oct 22, 2012 at 7:37 AM, jcbollinger john.bo...@stjude.orgjavascript: wrote: PL put a lot of effort into improving parametrized classes for Puppet 3, and they are indeed better. As I have lately written, I think

Re: [Puppet Users] File optimizations

2012-10-22 Thread Bostjan Skufca
Hi Stephen, On Monday, 22 October 2012 21:28:23 UTC+2, Stephen Gran wrote: Turn the question around for a moment: why do you have so many file resources? These systems are puppet-controlled from the /etc/inittab through the whole boot process and each and every service startup file

[Puppet Users] Re: Puppet 3.0: Not authorized to call find on /file_metadata, more issues?

2012-10-22 Thread Nick Fagerlund
Hi everybody, This is a bug, and we're working on it. I'm about to update the auth.conf docs with info about allow_ip. Additionally, have a complete workaround for anyone being affected by this today. This offers complete equivalence to the fileserver.conf behavior that worked in 2.x and

Re: [Puppet Users] Re: Duplicate class declaration because of counterintuitive class scoping

2012-10-22 Thread Kristof Willaert
Hi John, I think the behavior you discovered is a natural and expected consequence of Puppet's name scoping and resolution rules. The current namespace is searched first for unqualified class names. Only if no matching class is found there will other namespaces be considered. The difference

Re: [Puppet Users] Puppet/Passenger :: Could not retrieve catalog from remote server:Error 403 on server

2012-10-22 Thread Scott Cameron
On Wednesday, 3 October 2012 22:45:11 UTC-4, Jo wrote: On Oct 1, 2012, at 5:00 PM, Lunixer wrote: I'll try strace instead of tcpdump, being that this is not a TCP communication problem over the wire but rather a file or directory access problem. Um, no. Puppet client talks to the

Re: [Puppet Users] custom type with array property?

2012-10-22 Thread Stefan Schulte
On Mon, Oct 22, 2012 at 10:53:44PM +0200, Jakov Sosic wrote: On 10/21/2012 10:43 PM, Nan Liu wrote: Puppet::Type.newtype(:customtype) do newproperty(:myarray, array_matching = :all) do end end Thank you! Although you have syntax error, it should be: newproperty(:myarray,

[Puppet Users] Re: How catch a notify inside a define

2012-10-22 Thread Caio Cezar Zapater de Souza
Thanks, I will try this. On Friday, October 19, 2012 11:07:08 AM UTC-3, jcbollinger wrote: On Friday, October 19, 2012 9:01:01 AM UTC-5, jcbollinger wrote: Oops, I sent my response a bit prematurely. Strike the two appearances of notify = Mount[${path}]; from my suggested

[Puppet Users] Re: Puppet 3.0: Not authorized to call find on /file_metadata, more issues?

2012-10-22 Thread Forrie
Wow, thank you Nick for taking the time to post that. Much appreciated! I have moved Puppet 3.0.x onto a staging system to test out all the kinks before I upgrade our primary master. So I will test out your suggestions -- otherwise this bug pretty much brings all of our Puppet down and makes

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-10-22 Thread Jeff McCune
Thanks, I didn't get a chance to dive into this today, but I'll try my best to investigate the problem soon. If it's Thursday and I haven't replied please ping me again. Am I correct in my understanding that this is only affecting one node? Could you also paste the output of facter --puppet

Re: [Puppet Users] How to trace puppet execution to troubleshoot odd problems

2012-10-22 Thread Jeff McCune
On Sat, Oct 20, 2012 at 7:09 PM, Jakov Sosic jso...@srce.hr wrote: On 10/16/2012 08:49 PM, Jeff McCune wrote: With the --debug flag, providers will print out the exact command they're executing to modify the system. What should a custom type/provider author put in provider code for

[Puppet Users] New puppet based service: ServerBishop.com

2012-10-22 Thread Radu Spineanu
Hi. I've been working on a way to quickly create, share, and deploy puppet recipes. It's called serverbishop and you can see it here: http://serverbishop.com/. Here is how it works: you create recipes visually, like http://serverbishop.com/radu-spineanu/graphite-debian-squeeze. Each recipe

Re: [Puppet Users] New puppet based service: ServerBishop.com

2012-10-22 Thread Guzman Braso
Hi! I like very much the visual interface :) It's importing recipes in the plan already? Most of us already have our recipes we would like to test with Thanks! Guzman On Mon, Oct 22, 2012 at 10:27 PM, Radu Spineanu radu.spine...@gmail.comwrote: Hi. I've been working on a way to quickly

Re: [Puppet Users] New puppet based service: ServerBishop.com

2012-10-22 Thread Radu Spineanu
Hi Guzmán, I'm really glad you like it. Yes, I'm planning to add support for importing modules. Though it will be limited at first (it will not support all the features of puppet's syntax language). -R. On Monday, October 22, 2012 9:46:23 PM UTC-7, Guzmán Brasó wrote: Hi! I like very much