Re: [Puppet Users] package provider for FreeBSD

2012-06-29 Thread Gregory Orange
On 29/06/12 02:18, R. Tyler Croy wrote: On Thu, 28 Jun 2012, Gregory Orange wrote: Are there providers documented somewhere? I'm not sure where to The different package resource providers and their differences documented here: http://docs.puppetlabs.com/references/latest/type.html#package

[Puppet Users] Style guide question..

2012-06-29 Thread Brian Gupta
According to the style guide, Classes and defined resource types must not be defined within other classes. However looking at https://github.com/puppetlabs/puppetlabs-nginx/blob/master/manifests/init.pp shows that there are a number of other classes defined in class nginx. What's the correct

Re: [Puppet Users] Style guide question..

2012-06-29 Thread David Schmitt
On 29.06.2012 08:51, Brian Gupta wrote: According to the style guide, Classes and defined resource types must not be defined within other classes. However looking at https://github.com/puppetlabs/puppetlabs-nginx/blob/master/manifests/init.pp shows that there are a number of other classes

Re: [Puppet Users] Re: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type ruby::gemInstall at myFile.pp:82

2012-06-29 Thread Felix Frank
Hi, On 06/28/2012 05:22 PM, llow...@oreillyauto.com wrote: This works, but it appears to be executing for the whole list of gems I am passing it, even though those gems are already installed and the unless command should prevent it. But that's another matter that I should be able to figure

Re: [Puppet Users] Fwd: possible changes to puppet config file

2012-06-29 Thread Erik Dalén
On 26 June 2012 02:01, Chris Price ch...@puppetlabs.com wrote: Hi everyone, We've been doing some work lately to harden the pluginsync functionality for Puppet 3.x.  An issue was brought to my attention by Jeff McCune: In current versions of puppet, it's possible to configure things like

Re: [Puppet Users] class invocation instead of 'include'

2012-06-29 Thread Stephen Gran
Hi, On Thu, 2012-06-28 at 14:40 -0700, Nick Fagerlund wrote: On Tuesday, June 26, 2012 6:13:21 AM UTC-7, jcbollinger wrote: I sympathize and agree in principle with the view that it should be possible to re-declare the same parameterized class provided the

Re: [Puppet Users] Style guide question..

2012-06-29 Thread Brian Gupta
On Fri, Jun 29, 2012 at 3:09 AM, David Schmitt da...@dasz.at wrote: On 29.06.2012 08:51, Brian Gupta wrote: According to the style guide,  Classes and defined resource types must not be defined within other classes. However looking at

Re: [Puppet Users] Style guide question..

2012-06-29 Thread David Schmitt
On 29.06.2012 10:45, Brian Gupta wrote: On Fri, Jun 29, 2012 at 3:09 AM, David Schmitt da...@dasz.at wrote: On 29.06.2012 08:51, Brian Gupta wrote: According to the style guide, Classes and defined resource types must not be defined within other classes. However looking at

Re: [Puppet Users] system users class hogging whole cpu

2012-06-29 Thread Azfar Hashmi
After doing what, exactly? Did you actually try adding these users manually via adduser and/or useradd? No I didn't add them manually some times puppet works and add them if not existed some time it just hang. Please forgive me if I am skeptical. Does the command 'puppet resource user' agree

[Puppet Users] puppetmaster init script - bug ?

2012-06-29 Thread Brett Maton
I've configured puppet to use storedconfigs and puppetDB, If I start the puppet master using the init script puppetmaster I get a permission denied error when a node connects: Master: [root@puppet ~]# service puppetmaster start Starting puppetmaster: [ OK ]

[Puppet Users] Optional template files?

2012-06-29 Thread GriffaA10
Hi, I'm trying get Puppet to manage my snmpd instances. I have a base snmpd.conf constructed from a template, but some hosts require additional config. My plan was to have something like snmpd.conf.$hostname.erb in the templates directory and concatenate this with the base template. However,

Re: [Puppet Users] Optional template files?

2012-06-29 Thread Darren Chamberlain
* GriffaA10 alan.griffiths at interoute.com [2012/06/29 05:35]: I'm trying get Puppet to manage my snmpd instances. I have a base snmpd.conf constructed from a template, but some hosts require additional config. My plan was to have something like snmpd.conf.$hostname.erb in the templates

Re: [Puppet Users] Trying link to home directory

2012-06-29 Thread Felix Frank
On 06/28/2012 01:53 PM, eduardo wrote: root@casa:/# ls -ld /etc/puppet # LOOKS VERY BAD. drwxr-xr-x 3 root root 4096 2012-06-27 18:13 /etc/puppet root@casa:/# Well, the puppet master is careful not to let /etc/puppet be a symlink. Just make /home/era/speedy_repo/puppet-eduardo/puppet be a

[Puppet Users] can´t call custom fact

2012-06-29 Thread Spter
Hi, i like to use some custom facts. My clients are connectet to 1 puppetmaster with mod_passenger and all works fine. Both on puppetmaster and my node: puppet.conf: pluginsync = true on my puppetmaster: modules/system/manifest/init.pp: file { /root/my_oc4j: ensure = link, target =

[Puppet Users] Re: Style guide question..

2012-06-29 Thread jcbollinger
On Friday, June 29, 2012 1:51:52 AM UTC-5, Brian Gupta wrote: According to the style guide, Classes and defined resource types must not be defined within other classes. However looking at https://github.com/puppetlabs/puppetlabs-nginx/blob/master/manifests/init.pp shows that there

Re: [Puppet Users] Optional template files?

2012-06-29 Thread Dan White
- Darren Chamberlain dar...@boston.com wrote: The file() function returns the content of the first file that exists, so you can use it with inline_template(): file { /etc/snmpd.conf: ensure = present, content = inline_template(

[Puppet Users] Announce: Beta release of integration with Google Compute Engine

2012-06-29 Thread Scott Johnston
Yesterday Puppet Labs made available a Beta release of its integration with Google Compute Engine (GCE), Google's new Infrastructure-as-a-Service cloud. Compatible with both Puppet Enterprise and Puppet open source, the release and documentation are freely downloadable from Puppet Forge:

[Puppet Users] Re: Trying link to home directory

2012-06-29 Thread eduardo
Thanks you Felix for clarify me about /etc/puppet directory. I'm googling looking for git and puppet and i realize that there are another ways i can get advantage of nevertheless i'll check trick you suggest me. Regards, eduardo. On 29 jun, 09:34, Felix Frank

[Puppet Users] virtual resources spaceship syntax

2012-06-29 Thread Brett Maton
I'm probably missing something really simple here, but I can't get the following to work: node 'puppet-slave.test.net' { include users::accounts User | title=account | } Any suggestions welcomed :) Modules: modules/users/manifests/virtual.pp class users::virtual { define account (

Re: [Puppet Users] Optional template files?

2012-06-29 Thread GriffaA10
Great, that's done the trick, thanks Just one thing to note. file() takes an absolute file path (i.e. /etc/puppet/modules/snmp/templates/snmpd.conf.erb). Spent a few minutes trying to figure out the error I was getting before finally RTFM. On Friday, June 29, 2012 2:04:06 PM UTC+1, Darren

Re: [Puppet Users] Optional template files?

2012-06-29 Thread R.I.Pienaar
- Original Message - From: GriffaA10 alan.griffi...@interoute.com To: puppet-users@googlegroups.com Sent: Friday, June 29, 2012 3:37:29 PM Subject: Re: [Puppet Users] Optional template files? Great, that's done the trick, thanks Just one thing to note. file() takes an absolute

Re: [Puppet Users] Re: Style guide question..

2012-06-29 Thread David Schmitt
On 29.06.2012 15:55, jcbollinger wrote: On Friday, June 29, 2012 1:51:52 AM UTC-5, Brian Gupta wrote: According to the style guide, Classes and defined resource types must not be defined within other classes. However looking at

Re: [Puppet Users] virtual resources spaceship syntax

2012-06-29 Thread puppet-users
Hi, On Fri, 29 Jun 2012 15:36:35 +0100 Brett Maton brett.ma...@googlemail.com wrote: I'm probably missing something really simple here, but I can't get the following to work: node 'puppet-slave.test.net' { include users::accounts User | title=account | } It’s supposed to be a

[Puppet Users] PuppetCamp Dublin, 6th July 2012

2012-06-29 Thread Simon McCartney
come share learn! http://puppetcampdublin.eventbrite.com/ http://lanyrd.com/2012/puppet-camp-dublin/ *Engineers Ireland* 22 Clyde Road Ballsbridge Dublin Ireland Friday, July 6, 2012 from 10:00 AM to 5:00 PM -- Simon McCartney E: si...@mccartney.ie M: +44 7710 836 915 -- You received this

Re: [Puppet Users] virtual resources spaceship syntax

2012-06-29 Thread matonb
Thanks for looking Henk, I think my email client replaced == with =, it is using the comparison op in the actual code On Friday, 29 June 2012 16:07:55 UTC+1, (unknown) wrote: Hi, On Fri, 29 Jun 2012 15:36:35 +0100 Brett Maton brett.ma...@googlemail.com wrote: I'm probably

Re: [Puppet Users] Error 400 on SERVER: invalid value for Integer

2012-06-29 Thread Kmbu
Maybe I'm doing something wrong, but I snooped some traffic and actually caught a successful and a failed request, but it's all in HTTPS so not really readable in order to compare. Any ideas? On Thursday, 28 June 2012 12:18:36 UTC+2, Felix.Frank wrote: Hi, On 06/28/2012 12:12 PM, Kmbu

Re: [Puppet Users] Error 400 on SERVER: invalid value for Integer

2012-06-29 Thread Felix Frank
On 06/29/2012 05:26 PM, Kmbu wrote: Maybe I'm doing something wrong, but I snooped some traffic and actually caught a successful and a failed request, but it's all in HTTPS so not really readable in order to compare. Any ideas? Yes, actually. You could install stunnel on the master and have it

Re: [Puppet Users] virtual resources spaceship syntax

2012-06-29 Thread Kristof Willaert
Hi, [snip] node 'puppet-slave.test.net' { include users::accounts User | title=account | } Your virtual resource is not a user, but a define called users::virtual::account. So you need to realize it using: Users::Virtual::Account | title == account | Kind regards, kristof --

Re: [Puppet Users] UX/UI of puppet help when face actions have unmet dependencies

2012-06-29 Thread Jeff McCune
On Thu, Jun 28, 2012 at 8:00 PM, Daniel Pittman dan...@puppetlabs.com wrote: Do you think the message, check STDERR in each of the node, node_aws, and node_vmware subcommands is adequate? No, mentioning STDERR is terrible UX, even if I know what it means. :) I think a better approach would

[Puppet Users] Re: can´t call custom fact

2012-06-29 Thread ad
Do you have pluginsync enabled in pupppet.conf? [main] pluginsync = true Regards, Adam On Jun 29, 8:46 am, Spter tschmeling.obrigh...@googlemail.com wrote: Hi, i like to use some custom facts. My clients are connectet to 1 puppetmaster with mod_passenger and all works fine. Both on

Re: [Puppet Users] virtual resources spaceship syntax

2012-06-29 Thread Brett Maton
:D I knew it would be something simple, thanks Kristof that's working now. Brett On 29 Jun 2012, at 16:54, Kristof Willaert wrote: Hi, [snip] node 'puppet-slave.test.net' { include users::accounts User | title=account | } Your virtual resource is not a user, but a

Re: [Puppet Users] UX/UI of puppet help when face actions have unmet dependencies

2012-06-29 Thread Randall Hansen
On Thu, Jun 28, 2012 at 8:00 PM, Daniel Pittman dan...@puppetlabs.com wrote: No, mentioning STDERR is terrible UX, even if I know what it means. :) I think a better approach would be to capture the error and report it meaningfully. The mockup does that, albeit before the rest of help output.

Re: [Puppet Users] Error 400 on SERVER: invalid value for Integer

2012-06-29 Thread Eric Sorenson
I saw this in the past, and the encoded data was the fact upload from the client, which for some reason is malformed/corrupted by the time it hits the master. What version of puppet are you running? I'm guessing a 2.6 series; 2.7 moves this data to POST body rather than GET (Bug #6117 in

Re: [Puppet Users] UX/UI of puppet help when face actions have unmet dependencies

2012-06-29 Thread Daniel Pittman
On Fri, Jun 29, 2012 at 9:11 AM, Randall Hansen rand...@puppetlabs.com wrote: On Thu, Jun 28, 2012 at 8:00 PM, Daniel Pittman dan...@puppetlabs.com wrote: No, mentioning STDERR is terrible UX, even if I know what it means. :) I think a better approach would be to capture the error and report

Re: [Puppet Users] UX/UI of puppet help when face actions have unmet dependencies

2012-06-29 Thread Randall Hansen
On Fri, Jun 29, 2012 at 10:22 AM, Daniel Pittman dan...@puppetlabs.com wrote: So, perhaps the title of that should change from available subcommands to all subcommands or something? That was the key part that, to me, was worth making that change - that these were absolutely *not* available,

[Puppet Users] Nvidia driver install - condition for install

2012-06-29 Thread Mike Reed
Hello all, I'd like to use puppet to install an Nvidia driver on a local workstation. I've written the following manifest for this puprpose: class nvidia_driver { # This will place the nvidia installer locally in /tmp. File is pulled from puppet. file {

Re: [Puppet Users] Nvidia driver install - condition for install

2012-06-29 Thread Dan White
- Mike Reed mjohn.r...@gmail.com wrote: Hello all, I'd like to use puppet to install an Nvidia driver on a local workstation. I've written the following manifest for this puprpose: class nvidia_driver { # This will place the nvidia installer locally in /tmp. File is

Re: [Puppet Users] Nvidia driver install - condition for install

2012-06-29 Thread Nan Liu
On Fri, Jun 29, 2012 at 12:23 PM, Dan White y...@comcast.net wrote: - Mike Reed mjohn.r...@gmail.com wrote: Hello all, I'd like to use puppet to install an Nvidia driver on a local workstation.  I've written the following manifest for this puprpose: class nvidia_driver {         # This

[Puppet Users] Ruby custom fact question/problem

2012-06-29 Thread llow...@oreillyauto.com
I originally started this post to ask about one problem, but in the process of getting the question written I learned that it was due to differences between 1.8.7 and 1.9.2 that had caused my problem, so I got that fixed. I now have the fact successfully loading when I run puppet: info:

Re: [Puppet Users] Ruby custom fact question/problem

2012-06-29 Thread Nigel Kersten
On Fri, Jun 29, 2012 at 1:05 PM, llow...@oreillyauto.com llow...@oreillyauto.com wrote: I originally started this post to ask about one problem, but in the process of getting the question written I learned that it was due to differences between 1.8.7 and 1.9.2 that had caused my problem, so I

Re: [Puppet Users] Ruby custom fact question/problem

2012-06-29 Thread R.I.Pienaar
- Original Message - From: llow...@oreillyauto.com To: puppet-users@googlegroups.com Sent: Friday, June 29, 2012 9:05:53 PM Subject: [Puppet Users] Ruby custom fact question/problem I originally started this post to ask about one problem, but in the process of getting the

Re: [Puppet Users] Nvidia driver install - condition for install

2012-06-29 Thread Peter Bukowinski
On Jun 29, 2012, at 3:49 PM, Nan Liu wrote: On Fri, Jun 29, 2012 at 12:23 PM, Dan White y...@comcast.net wrote: - Mike Reed mjohn.r...@gmail.com wrote: Hello all, I'd like to use puppet to install an Nvidia driver on a local workstation. I've written the following manifest for this

Re: [Puppet Users] Ruby custom fact question/problem

2012-06-29 Thread llow...@oreillyauto.com
Comments inline On Friday, June 29, 2012 3:13:18 PM UTC-5, R.I. Pienaar wrote: - Original Message - Sent: Friday, June 29, 2012 9:05:53 PM Subject: [Puppet Users] Ruby custom fact question/problem I originally started this post to ask about one problem, but in the

Re: [Puppet Users] subscribing to a remote mailbox

2012-06-29 Thread Paul Mena
I just thought I'd report that I've implemented a procmail rule to create a transient folder containing only new, unprocessed haiku that is then processed by Hypermail into an HTML file. Further post-processing strips the email header and footer, leaving only the haiku, and concatenates it to

Re: [Puppet Users] Nvidia driver install - condition for install

2012-06-29 Thread Tim Mooney
In regard to: [Puppet Users] Nvidia driver install - condition for install,...: Hello all, I'd like to use puppet to install an Nvidia driver on a local workstation. I've written the following manifest for this puprpose: class nvidia_driver { # This will place the nvidia installer

Re: [Puppet Users] Re: Style guide question..

2012-06-29 Thread jcbollinger
On Friday, June 29, 2012 9:56:04 AM UTC-5, David Schmitt wrote: Indeed! Even more so as using the word declare for include is a load of utter bollocks. Declare in the common programming language sense means indicating the existence of a thing that is defined elsewhere. Like declaring an

Re: [Puppet Users] hiera questions

2012-06-29 Thread Tim Mooney
In regard to: Re: [Puppet Users] hiera questions, llow...@oreillyauto.com...: On Thursday, June 28, 2012 2:04:09 PM UTC-5, R.I. Pienaar wrote: - Original Message - I would make facts on the nodes for these. Let say $role and $subrole and then just use those in your hierarchy with

Re: [Puppet Users] Hiera Tutorials

2012-06-29 Thread Tim Mooney
In regard to: [Puppet Users] Hiera Tutorials, Kelsey Hightower said (at...: I'm beginning the process of creating Hiera tutorials covering the following topics: *Beginner* - Getting Started with Hiera

Re: [Puppet Users] puppet node report

2012-06-29 Thread Tim Mooney
In regard to: [Puppet Users] puppet node report, hai wu said (at 3:04am on...: Is there a way to download latest node report log from puppet dashboard? There's a way to do just about anything, but before you write some complicated web screen-scraping code to get the report from the web

Re: [Puppet Users] can´t call custom fact

2012-06-29 Thread Tim Mooney
In regard to: [Puppet Users] can?t call custom fact, Spter said (at 6:46am...: Both on puppetmaster and my node: puppet.conf: pluginsync = true on my puppetmaster: modules/system/manifest/init.pp: file { /root/my_oc4j: ensure = link, target = /var/${::oc4j}, }

Re: [Puppet Users] puppet node report

2012-06-29 Thread hai wu
Thanks Tim. The problem is if you have multiple puppetmaster servers with different Puppet[:reportdir] on different local drives, thus for each node report yaml file, you would have to go to each puppetmaster server to retrieve the latest report file for that node, which is not ideal, as the copy

[Puppet Users] SSL_connect?? Because of master is not running?

2012-06-29 Thread tas
My master is running 12.04 Version: 2.7.11-1ubuntu2 Depends: ruby1.8, puppetmaster-common (= 2.7.11-1ubuntu2) My client is 10.04 Version: 2.6.3-0ubuntu1~lucid1 Depends: puppet-common (= 2.6.3-0ubuntu1~lucid1), ruby1.8 I followed this tutorial to install Puppet on the client:

[Puppet Users] Custom provider/types and adding to puppet forge

2012-06-29 Thread Luke Baker
*Note, I'm very green when it comes to ruby development.. I've created a couple of custom providers and types, both of which rely on a particular ruby gem in order to function. How should I go about ensuring the gem dependency on the puppet clients before puppet syncs the plugins (the broken