[Puppet Users] Re: Is it possible to access type params in another type?

2012-06-26 Thread Yanis Guenane
What I actually would like it to create a kind of dependency. I would like that a parameter X of any instance of type 'b' *depends* on the path param of the 'a' resource instance namely passed as a parameter. file {'test' : > ensure => present, > name => 'test.txt', > *within* => dir, > } >

[Puppet Users] Re: What permissions should these folders have?

2012-06-26 Thread Michael Altfield
Thanks John, Do you have any recommendations on /var/lib/puppet? Cheers, Michael On Monday, June 11, 2012 9:20:05 AM UTC-4, jcbollinger wrote: > > > > On Jun 8, 7:43 pm, Michael Altfield > wrote: > > Hi, > > > > Is there is an official Puppet stance on what the permissions of these > > fi

Re: [Puppet Users] Next Problem: Puppet 2.7 + Passenger won't connect

2012-06-26 Thread Dan White
On Jun 26, 2012, at 5:07 PM, Craig White wrote: > On Jun 26, 2012, at 1:20 PM, Dan White wrote: >> I am guessing there should be an 8140 in that netstat, right ? > > yes, if you have passenger properly configured as a puppetmaster, it would be > listening on port 8140 Part of the problem is

Re: [Puppet Users] Distribution upgrade and subsequent reboot of machine

2012-06-26 Thread Peter Brown
Hi Mike, Just as a side not I would be rather hesitant to set this up with puppet. This may be a job for some other tool like mcollective but I have not ventured into the land yet. This may work but I haven't done any testing so please test this on a non production server before rolling it out.

[Puppet Users] Re: Distribution upgrade and subsequent reboot of machine

2012-06-26 Thread Mike Reed
As an update, after running this a few times after this initial post, I'm seeing the machine reboot after new classes have been added which is not desired. I might have to rethink the reboot approach. Thanks again, Mike On Tuesday, June 26, 2012 6:12:05 PM UTC-7, Mike Reed wrote: > > Hello al

[Puppet Users] Distribution upgrade and subsequent reboot of machine

2012-06-26 Thread Mike Reed
Hello all, In building out an initial workstation configuration (Ubuntu 10.04 lucid) via Puppet, I have the need to do two things in order. The first is to do a dist-upgrade on the workstation and reboot, followed by an install of a Nvida driver. Upon doing a dist-upgrade, I have to reboot th

Re: [Puppet Users] Base directory with File

2012-06-26 Thread Stefan Schulte
On Mon, Jun 25, 2012 at 10:27:40AM -0700, Mark Roggenkamp wrote: > Hi all, > > I'd like to specify a base_directory and a list of directories (as > variables that may be pulled via hiera later) that will be created under > that base directory. > > base_dir = "/home/base" > bars = ["a", "b", "c"

Re: [Puppet Users] Using generate() to mine a shadow file hash

2012-06-26 Thread John Lyman
It does for me, but I am running as root. Maybe that is the difference. Or maybe your user provider doesn't manage_passwords? On Monday, June 25, 2012 9:30:39 PM UTC-4, Rob B. wrote: > > Hey John, > > It doesnt give the password section. > -- You received this message because you are sub

Re: [Puppet Users] Next Problem: Puppet 2.7 + Passenger won't connect

2012-06-26 Thread Craig White
On Jun 26, 2012, at 1:20 PM, Dan White wrote: > > > “Sometimes I think the surest sign that intelligent life exists elsewhere in > the universe is that none of it has tried to contact us.” > Bill Waterson (Calvin & Hobbes) > > - Craig White wrote: >> >> On Jun 26, 2012, at 11:43 AM, Dan

[Puppet Users] Re: Gentoo package provider

2012-06-26 Thread Calvin Walton
On Thursday, 21 June 2012 14:04:05 UTC-4, Stefan Schulte wrote: > In my opinion these changes should fix all the issues above. One issue > will > still exists though: You can install multiple versions of the same package > (slots): > > # portageq match / autoconf > sys-devel/autocon

Re: [Puppet Users] Next Problem: Puppet 2.7 + Passenger won't connect

2012-06-26 Thread Dan White
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) - Craig White wrote: > > On Jun 26, 2012, at 11:43 AM, Dan White wrote: > > > OK. What did I booger up this time ? > >

Re: [Puppet Users] Next Problem: Puppet 2.7 + Passenger won't connect

2012-06-26 Thread Craig White
On Jun 26, 2012, at 11:43 AM, Dan White wrote: > OK. What did I booger up this time ? > > agent.myexample.org and puppetmaster.myexample.org are the same server. > > > # puppetd --no-daemonize --onetime --debug --noop

Re: [Puppet Users] subscribing to a remote mailbox

2012-06-26 Thread jcbollinger
On Tuesday, June 26, 2012 7:14:20 AM UTC-5, Stephen Gran wrote: > It sounds like you're doing data warehousing and searching, which sounds > like a job for something like a database on the back of an injection > script that runs when a mail arrives. I suspect puppet is not the best > tool fo

Re: [Puppet Users] Clarification Request: The need for ruby 1.8.7 on a RHEL/CentOS 5 Puppet Master

2012-06-26 Thread Dan White
Thanks for the answer, but I am past the installation and trying to understand why it refuses to connect -- see my recent posting "Next Problem: Puppet 2.7 + Passenger won't connect" “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has

[Puppet Users] Re: Is it possible to access type params in another type?

2012-06-26 Thread jcbollinger
On Tuesday, June 26, 2012 6:07:41 AM UTC-5, Yanis Guenane wrote: > > Hey guys, > > I was wondering if it was possible to access type params within another > type. > > Here is an example of what I would like to do. > > Puppet::Type.newtype(:a) do >> > newparam(:name) do >> isnamevar >>

Re: [Puppet Users] Clarification Request: The need for ruby 1.8.7 on a RHEL/CentOS 5 Puppet Master

2012-06-26 Thread RILINDO FOSTER
Puppet will work with 1.8.5. It is passenger that requires 1.8.7, specifically rack. Fortunately, Puppet labs has the older rack version you can use here: http://yum.puppetlabs.com/el/5Server/dependencies/x86_64/ On Jun 26, 2012, at 10:47 AM, Dan White wrote: > I am stuck on RHEL 5 for the mo

[Puppet Users] Request for Feedback - What do you want in an ENC

2012-06-26 Thread Kelsey Hightower
Help me produce the best ENC service/api possible by giving me your user stories, feature requests, and anything that would make a *new* ENC awesome. Don't worry about justifying your feature or user story, I want all ideas, even crazy ones. *What am I building?* Right now my focus is on buildi

[Puppet Users] Next Problem: Puppet 2.7 + Passenger won't connect

2012-06-26 Thread Dan White
OK. What did I booger up this time ? agent.myexample.org and puppetmaster.myexample.org are the same server. # puppetd --no-daemonize --onetime --debug --noop debug: Puppet::Type::User::ProviderUser_role_add: file rol

Re: [Puppet Users] Clarification Request: The need for ruby 1.8.7 on a RHEL/CentOS 5 Puppet Master

2012-06-26 Thread Jo Rhett
Grab the SRPMs from StealthMonkey and you can build and install these without any changes. Point, shoot, go. No edits necessary. On Jun 26, 2012, at 9:44 AM, Dan White wrote: > Thanks for the pointer, Eric, but I was able to build my own ruby 1.8.7 from > the rbel.frameos.org source RPM > > The

Re: [Puppet Users] Clarification Request: The need for ruby 1.8.7 on a RHEL/CentOS 5 Puppet Master

2012-06-26 Thread Jo Rhett
I don't recommend this for a large number of reasons, including the need to source in a large number of japanese and tcl/tk libraries, and a huge level of scratch-patchiness in the srpm. The frameos spec file uses a very small number of patches that are clear and easy to read, and work perfectly

Re: [Puppet Users] Clarification Request: The need for ruby 1.8.7 on a RHEL/CentOS 5 Puppet Master

2012-06-26 Thread Jo Rhett
You can quite easily compile 1.8.7 for rhel5, then use the SRPMs from Stealthmonkeys and get a working system. I've done it several times and for several different sites. Google "puppet ruby 1.8.7 el5 dashboard" and you'll find my post about how to do it. One change: when you grab the spec fil

Re: [Puppet Users] Puppet commands require root access

2012-06-26 Thread Stefan Schulte
On Mon, Jun 25, 2012 at 05:46:39PM -0400, Worker Bee wrote: > Hi Everyone; > > Why does running "puppet resource" require root/sudo access? Is it > supposed to be this way or do I have a permissions issue? > I installed using the gzip files... > > Thanks! > puppet resource doesnt necessarily r

Re: [Puppet Users] Clarification Request: The need for ruby 1.8.7 on a RHEL/CentOS 5 Puppet Master

2012-06-26 Thread Eric Shamow
Dan, Understood re running into problems and playing nice. Haus' comment stands, 1.8.5 works. -Eric On Tue, Jun 26, 2012 at 10:44 AM, Dan White wrote: > Thanks for the pointer, Eric, but I was able to build my own ruby 1.8.7 > from the rbel.frameos.org source RPM > > The problem is that it wo

Re: [Puppet Users] Clarification Request: The need for ruby 1.8.7 on a RHEL/CentOS 5 Puppet Master

2012-06-26 Thread Dan White
Thanks for the pointer, Eric, but I was able to build my own ruby 1.8.7 from the rbel.frameos.org source RPM The problem is that it won't play nice with the other pieces I want to use. Maybe I could build passenger from source as well, but I'd rather work from binary RPM's as much as possible.

Re: [Puppet Users] Clarification Request: The need for ruby 1.8.7 on a RHEL/CentOS 5 Puppet Master

2012-06-26 Thread Dan White
Many thanks. That information is just what I needed. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) - Matthaus Litteken wrote: > Yes, 1.8.5 will work with puppet 2.7.x. He

Re: [Puppet Users] Clarification Request: The need for ruby 1.8.7 on a RHEL/CentOS 5 Puppet Master

2012-06-26 Thread Eric Shamow
Also as a note, there are (unofficial, but maintained by the CentOS maintainer, Karanbir Singh) packages for RHEL 5 at: http://centos.karan.org/el5/ruby187/ I've used these in production with much success. -Eric On Tue, Jun 26, 2012 at 10:06 AM, Matthaus Litteken wrote: > Yes, 1.8.5 will wor

Re: [Puppet Users] Clarification Request: The need for ruby 1.8.7 on a RHEL/CentOS 5 Puppet Master

2012-06-26 Thread Matthaus Litteken
Yes, 1.8.5 will work with puppet 2.7.x. Here is a quick link to a supported ruby versions chart (http://docs.puppetlabs.com/guides/platforms.html#ruby-versions). 1.8.7 is better for various reasons, but 1.8.5 will work. HTH. On Tue, Jun 26, 2012 at 8:47 AM, Dan White wrote: > I am stuck on RHEL

Re: [Puppet Users] Puppet Forge question

2012-06-26 Thread llow...@oreillyauto.com
On Friday, June 15, 2012 2:19:21 PM UTC-5, llo...@oreillyauto.com wrote: > > Comments in line again > > On Friday, June 15, 2012 2:13:08 PM UTC-5, Ryan Coleman wrote: >> >> I won't get a chance to replicate your situation and test further >> until this weekend. Apologies. >> >> On Fri, Jun 15,

[Puppet Users] firewall rule moving between chains?

2012-06-26 Thread C R Ritson
I am starting to experiment with the firewall module and as part of a test attempted to move a rule between two chains (INPUT and a user-defined one). The firewall module noticed that the rule had changed but then attempted to use "iptables -R" to move the rule. Because it was moving from one ch

[Puppet Users] Clarification Request: The need for ruby 1.8.7 on a RHEL/CentOS 5 Puppet Master

2012-06-26 Thread Dan White
I am stuck on RHEL 5 for the moment, and I am trying to set up a Puppet 2.7.x Master. >From this post ( >http://www.mail-archive.com/puppet-users@googlegroups.com/msg27199.html ), I got the impression that I needed ruby 1.8.7. I tried to install passenger using the stealthymonkeys.com repo and

Re: [Puppet Users] Re: Extending Puppet using Rubygems

2012-06-26 Thread llow...@oreillyauto.com
This sort of support would have saved me about 2-3 days of time here recently. It certainly has my support, and I have upvoted the pull the request. On Tuesday, June 26, 2012 8:55:50 AM UTC-5, Kelsey Hightower wrote: > > On Tuesday, June 26, 2012 9:41:00 AM UTC-4, jmslagle wrote: >> >> >> On 06

Re: [Puppet Users] changing port on windows client

2012-06-26 Thread Jeff McCune
On Tue, Jun 26, 2012 at 2:35 AM, Romain Gales wrote: > Hi, > > Is it possible to change the puppetmaster port on a windows agent? > > Thanks for your help. Sure, just change (or add) the masterport=8140 setting in the [main] section of %ProgramData%/PuppetLabs/puppet/puppet.conf -Jeff -- You r

Re: [Puppet Users] Re: Extending Puppet using Rubygems

2012-06-26 Thread Kelsey Hightower
On Tuesday, June 26, 2012 9:41:00 AM UTC-4, jmslagle wrote: > > > On 06/25/2012 09:25 AM, Kelsey Hightower wrote: > > > > John you make a really good point. Rubygems support would be totally > > optional. One of my hopes is that once people are able to use rubygems > > for things like parser fu

Re: [Puppet Users] Re: Extending Puppet using Rubygems

2012-06-26 Thread Eric Shamow
Jason, Packaging gems as OS packages is pretty easy to do. You can use gem2rpm on RHEL systems or fpm (https://github.com/jordansissel/fpm) in the more general case. -Eric On Tue, Jun 26, 2012 at 7:41 AM, Jason Slagle wrote: > > On 06/25/2012 09:25 AM, Kelsey Hightower wrote: > >> >> John you

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

2012-06-26 Thread jcbollinger
On Monday, June 25, 2012 7:54:54 AM UTC-5, Azfar Hashmi wrote: > > Anyone please > > I don't see anything inherently wrong with the class, and the behavior you describe is not normal for Puppet, so the issue likely arises from a combination of the node's current configuration with the configura

Re: [Puppet Users] Re: Extending Puppet using Rubygems

2012-06-26 Thread Jason Slagle
On 06/25/2012 09:25 AM, Kelsey Hightower wrote: John you make a really good point. Rubygems support would be totally optional. One of my hopes is that once people are able to use rubygems for things like parser functions and report processors we start seeing more OS packages built from those

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

2012-06-26 Thread jcbollinger
On Tuesday, June 26, 2012 5:14:32 AM UTC-5, Stephen Gran wrote: > > I disagree that instantiating a class twice with identical (especially > default) parameters should result in an error. A class is a singleton, > unlike a define, so should not be indexed solely on it's name. It > should be

Re: [Puppet Users] access "indexed" facter facts

2012-06-26 Thread R.I.Pienaar
- Original Message - > From: "tobias" > To: puppet-users@googlegroups.com > Sent: Tuesday, June 26, 2012 1:52:48 PM > Subject: [Puppet Users] access "indexed" facter facts > > Hi everyone, > > I have a fact which looks like that: drbdconnectionstate0. You see > the "0" at the end... No

[Puppet Users] Re: Puppet commands require root access

2012-06-26 Thread jcbollinger
On Monday, June 25, 2012 4:46:39 PM UTC-5, Worker Bee wrote: > > Why does running "puppet resource" require root/sudo access? Is it > supposed to be this way or do I have a permissions issue? > I installed using the gzip files... > I guess in principle it's for the same reason that the agen

[Puppet Users] access "indexed" facter facts

2012-06-26 Thread tobias
Hi everyone, I have a fact which looks like that: drbdconnectionstate0. You see the "0" at the end... Now I'd like to access this fact in a "dynamic" way, the "0" should be variable. I'm thinking of something like that: if ${drbdconnectionstate0}${drbddevice} == 'Unconfigured'. But as you may g

[Puppet Users] Is it possible to access type params in another type?

2012-06-26 Thread Yanis Guenane
Hey guys, I was wondering if it was possible to access type params within another type. Here is an example of what I would like to do. Puppet::Type.newtype(:a) do > newparam(:name) do > isnamevar > end > newparam(:path) do > end > end > Puppet::Type.newtype(:b) do >

Re: [Puppet Users] subscribing to a remote mailbox

2012-06-26 Thread Stephen Gran
Hi, It sounds like you're doing data warehousing and searching, which sounds like a job for something like a database on the back of an injection script that runs when a mail arrives. I suspect puppet is not the best tool for processing at all. Cheers, On Tue, 2012-06-26 at 05:01 -0700, Paul Me

Re: [Puppet Users] subscribing to a remote mailbox

2012-06-26 Thread Paul Mena
Felix, Thanks for the reply. That's a good point about the potential security hole. Ironically, it would be good news if my ISP doesn't permit it. Here's my task in a nutshell: I've been processing the entirety of an email folder using a program called HyperMail, which converts individual mes

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

2012-06-26 Thread Stephen Gran
Hi, On Tue, 2012-06-26 at 11:47 +0200, Felix Frank wrote: > Hi, > > On 06/26/2012 10:56 AM, Stephen Gran wrote: > > There is one difference that is most likely a bug. try this manifest: > > > > ./test.pp > > class { 'wobble': } > > class { 'wibble': } > > I disagree on this being a bug. > >

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

2012-06-26 Thread Felix Frank
Hi, On 06/26/2012 10:56 AM, Stephen Gran wrote: > There is one difference that is most likely a bug. try this manifest: > > ./test.pp > class { 'wobble': } > class { 'wibble': } I disagree on this being a bug. This syntax is for parameterized classes. Such classes cannot be declared more than

[Puppet Users] changing port on windows client

2012-06-26 Thread Romain Gales
Hi, Is it possible to change the puppetmaster port on a windows agent? Thanks for your help. Romain -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/kaLG

Re: [Puppet Users] "Listing" the keys in a hash as an array

2012-06-26 Thread Jon Jackson
I'm going to add to this thread because this function (keys - Returns the keys of a hash as an array ) and other similar utility functions are now just a download away in the puppet stdlib http://forge.puppetlabs.com/puppetlabs/stdlib (this page currently lists a few of the functions) -- Yo

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

2012-06-26 Thread Antidot SAS
Thx for the quick answer. On Tue, Jun 26, 2012 at 10:56 AM, Stephen Gran wrote: > Hi, > > They should do the same thing - include a class with default values if > it is parameterized. > > There is one difference that is most likely a bug. try this manifest: > > ./test.pp > class { 'wobble': }

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

2012-06-26 Thread Stephen Gran
Hi, They should do the same thing - include a class with default values if it is parameterized. There is one difference that is most likely a bug. try this manifest: ./test.pp class { 'wobble': } class { 'wibble': } ./modules/wobble/manifests/init.pp class wobble { class { 'wibble': } } ./m

[Puppet Users] class invocation instead of 'include'

2012-06-26 Thread Antidot SAS
Hi everyone, I am asking a quick question is there any concept difference between: -- include myclass -- and -- class { 'myclass'} -- I confess that the border between those 2 concepts are very similar for me... Regards, Jeremy MAURO -- You received this message because you are subscribed to

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

2012-06-26 Thread Felix Frank
Hi, On 06/26/2012 02:01 AM, Chris Price wrote: > > Slightly longer term, we are thinking of simply removing support for > "run-mode"-specific configuration sections in the puppet.conf file. We > would only allow three sections: "main" (possibly renamed to "global" or > similar), "master", and "c

Re: [Puppet Users] subscribing to a remote mailbox

2012-06-26 Thread Felix Frank
Hi, On 06/26/2012 12:30 AM, Paul Mena wrote: > I think the answer is yes, but is it possible for Puppet to subscribe to > an email folder on a remote server? My plan is to perform an action > whenever the mailbox receives a new email message. I suppose you can cobble something up using an exec

Re: [Puppet Users] Puppet Subscribe Metaparameter

2012-06-26 Thread Felix Frank
Hi, On 06/26/2012 01:39 AM, Worker Bee wrote: > Hello Everyone; > > I am just learning puppet and playing around. > > I was testing the 'subscribe' metaparameter and making changes to the > live file on the node, specifically, making modifications the > /etc/ssh/sshd_config. What I found out w