Re: [Puppet Users] custom functions

2012-04-18 Thread Chris Donovan
OK, so now that I understand where the functions run, I'll write a type / provider. The reason I need to get something custom run on the client is to learn how puppet works at that level. Then once I'm happy with the level of knowledge I will get with customizing puppet, I'll be able to figure out

Re: [Puppet Users] custom functions

2012-04-18 Thread Gary Larizza
On Wednesday, April 18, 2012, Chris Donovan wrote: > Hi, > > Yes, filename is what is supposed to be there. That's not my issue > however though, my issue is that it doesn't load / run properly. > > If puppet 2.7.6 still does not run functions on the client then that's > great, and I'll write a p

Re: [Puppet Users] custom functions

2012-04-18 Thread Chris Donovan
Hi, Yes, filename is what is supposed to be there. That's not my issue however though, my issue is that it doesn't load / run properly. If puppet 2.7.6 still does not run functions on the client then that's great, and I'll write a provider, and possibly a type. Chris- On Thu, Apr 19, 2012 at

Re: [Puppet Users] custom functions

2012-04-18 Thread Gary Larizza
At first glance (on phone), Check this line: 1. file = File.open(file, 'r+') Don't you want filename as the argument? n Wednesday, April 18, 2012, Chris Donovan wrote: > Hello, > > So I'm working my way through writing custom functions for puppet 2.7.6, > and what I think is valid seem

[Puppet Users] custom functions

2012-04-18 Thread Chris Donovan
Hello, So I'm working my way through writing custom functions for puppet 2.7.6, and what I think is valid seems not to be, and unfortunately I can't find any additional help in the docs. I've got a pastebin link (http://pastebin.com/HimPyWHh) that shows my function, site.pp, and the file I'm

Re: [Puppet Users] Trying to build Ruby 1.8.7 on a RHEL5 systems

2012-04-18 Thread Dan White
On Apr 18, 2012, at 6:08 PM, Jo Rhett wrote: > On Apr 16, 2012, at 6:51 PM, Dan White wrote: >> I got a bunch of error complaining about "rpaths", and in the output was a >> suggestion to prepend an environment setting to the command -- like this: >> >> QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild -ba

Re: [Puppet Users] Trying to build Ruby 1.8.7 on a RHEL5 systems

2012-04-18 Thread Jo Rhett
On Apr 16, 2012, at 6:51 PM, Dan White wrote: > I got a bunch of error complaining about "rpaths", and in the output was a > suggestion to prepend an environment setting to the command -- like this: > > QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild -ba ~/rpmbuild/SPECS/ruby.spec > > When I ran this, the

Re: [Puppet Users] Change location of puppet config files

2012-04-18 Thread JA
# Vardir similarly moved to /app for space issues vardir = /app/puppet/var # The Puppet log directory. # The default value is '$vardir/log'. logdir = /app/puppet/log # Where Puppet PID files are kept. # The default value is '$vardir/run'. rundir = /var/run/puppet

Re: [Puppet Users] Change location of puppet config files

2012-04-18 Thread John Kennedy
On Wed, Apr 18, 2012 at 22:33, Jax01 wrote: > Hi everyone; > > I am trying to change the location of where the ssl cert files are > stored. I have changed this in the puppet.conf file but, when I start > the puppetmaster, the only certs being created are still in /etc/ > puppet. Can someone tel

[Puppet Users] Change location of puppet config files

2012-04-18 Thread Jax01
Hi everyone; I am trying to change the location of where the ssl cert files are stored. I have changed this in the puppet.conf file but, when I start the puppetmaster, the only certs being created are still in /etc/ puppet. Can someone tell me what I am missing here? Thank you! -- You receive

[Puppet Users] Re: Case statements in a file directive

2012-04-18 Thread Forrie
So there were two gotchas :-) One, my mis-typed / and the other the missing ? in the evaluation ;-) Thanks again, guys, I appreciate the feedback. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-use

Re: [Puppet Users] Re: Looking for solution on working configuration for new testing Puppet servers in existing environments

2012-04-18 Thread Ken Lareau
Eric, Thank you for the response, and yes, our current configuration and security requirements have made things a bit difficult at the moment. Fortunately we do already have an ENC which does access an access-controlled database and does have the environment information in it, though we still do

Re: [Puppet Users] Re: Looking for solution on working configuration for new testing Puppet servers in existing environments

2012-04-18 Thread Ken Lareau
Trevor, Thank you for the response; I believe you got the idea pretty well and while your suggestion makes sense, it is something we definitely can't follow through with right now; our configuration is massive and complex and having to maintain three different yet similar sets of configuration wou

[Puppet Users] Tighter Puppet Dashboard and MCollective integration

2012-04-18 Thread Nigel Benns
I was just thinking about the problem of host groups and such trying to set up our puppet infrastructure properly and came to the realization that using MCollective better in puppet dashboard would allow for more cloud like scaling of infrastructure services. Here is the concept: Right now in

[Puppet Users] Re: Looking for solution on working configuration for new testing Puppet servers in existing environments

2012-04-18 Thread Trevor Smith
I'll take a stab at some of this. Hopefully I'm correctly understanding your issue. Am I correct in the following? : You define 3 environments development, staging, and production. These environments are defined as such in Puppet but they are also separate environments within your network, f

Re: [Puppet Users] Re: file type with links => follow uses wrong permissions if not explicit

2012-04-18 Thread Adam Heinz
Ticket filed. http://projects.puppetlabs.com/issues/14066 -- 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 from this group, send email to puppet-users+unsubscr..

[Puppet Users] Re: Looking for solution on working configuration for new testing Puppet servers in existing environments

2012-04-18 Thread Eric Sorenson
Hi Ken, thanks for posting. It seems like you have introduced some tension between the security requirements (clients which are in a particular environment must not be able to retrieve other environments) and the need to have widespread testing with good coverage. From what I understand you'v

[Puppet Users] Re: Puppet agent hostname/domain change

2012-04-18 Thread Artyom Krilov
Thanks for detailed explanation. Using certname seems to be fine. I'll create some unchanging property as a fact and will use it in manifests. Thanks, Artyom On Wednesday, April 18, 2012 5:29:24 PM UTC+4, jcbollinger wrote: > > > > On Apr 17, 11:34 pm, Artyom Krilov wrote: > > Hi Everybody,

Re: [Puppet Users] Puppet agent hostname/domain change

2012-04-18 Thread Artyom Krilov
In this case if hostname changes are frequent I'll get too much unnecessary traffic. On Wednesday, April 18, 2012 4:35:43 PM UTC+4, Ygor wrote: > > Been there, done that, got a link for you: > > http://infrastructure.fedoraproject.org/infra/docs/infra-hostrename.txt > > Basically, clean out the c

[Puppet Users] Re: Having trouble getting puppet to set users/groups to a defined state

2012-04-18 Thread jcbollinger
On Apr 17, 5:04 pm, Steve Roberts wrote: > On Apr 17, 6:25 am, jcbollinger wrote: > well, allowdupe doesn't fix the issue only masks it.  I knew about > taht attribute but > it just adds a duped group instead of making right the user/group. Indeed, but that's what you asked about. > > That

[Puppet Users] Re: Puppet agent hostname/domain change

2012-04-18 Thread jcbollinger
On Apr 17, 11:34 pm, Artyom Krilov wrote: > Hi Everybody, > > I have a puppet setup working, but run into issue, which couldn't figure > out how to solve. > > Say I have puppet agent generated certificate and signed it on puppet > master. If somehow puppet agent's hostname has been changed it wi

[Puppet Users] Re: Undo

2012-04-18 Thread jcbollinger
On Apr 18, 3:17 am, Luke Bigum wrote: > If you're really really lucky you can look in ${vardir}/clientbucket on > an Agent (usually /var/lib/puppet/clientbucket) and ${vardir}/bucket on > the Master. They are backup directories of files that Puppet replaces, > keyed on the MD5 sum of the file. U

[Puppet Users] Re: file type with links => follow uses wrong permissions if not explicit

2012-04-18 Thread jcbollinger
On Apr 17, 10:42 am, Adam Heinz wrote: > I think I've hit a minor permissions bug using > puppet-2.6.13-2.el6.noarch from EPEL on CentOS 6.  In order to > reproduce production bugs on a test environment, I use puppet to copy > the latest backup to a test server, followed by the remainder of the

[Puppet Users] $lsbdistcodename stays the same after dist-upgrade

2012-04-18 Thread ScOut3R
Dear List, i was running a few natty systems and upgraded one of them to oneiric. Facter shows the right lsbdistcodename, lsbdistrelease, etc. parameters, but when i'm running puppet agent the modules has access to the previous (natty, etc.) values. As i see on puppetmaster in /var/ lib/puppet/yam

Re: [Puppet Users] Puppet agent hostname/domain change

2012-04-18 Thread Dan White
Been there, done that, got a link for you: http://infrastructure.fedoraproject.org/infra/docs/infra-hostrename.txt Basically, clean out the certificate info on the client/agent, clear the old info from the master, and then re-certify the agent/client with the new info. “Sometimes I think the s

[Puppet Users] Re: Virtual resources for a list of server ip addresses in Apache config

2012-04-18 Thread Robert Rothenberg
I should add that I am using a masterless puppet environment, so a global list of all nodes is not available. Some Googling suggested the use of multiple files that are concatenated, but I think that's a messy kluge, and would like to avoid doing that. On Wednesday, April 18, 2012 12:38:08 PM U

[Puppet Users] WG: Could not send report: Error 400 on SERVER: execution expired

2012-04-18 Thread Bernd Adamowicz
No ideas? > -Ursprüngliche Nachricht- > Von: Bernd Adamowicz > Gesendet: Montag, 16. April 2012 13:32 > An: 'puppet-users@googlegroups.com' > Betreff: Could not send report: Error 400 on SERVER: execution expired > > Hi all! > > One of my Puppet masters has to compile some 3800 stored co

[Puppet Users] Virtual resources for a list of server ip addresses in Apache config

2012-04-18 Thread Robert Rothenberg
I have an internal web site that can only be accessed from other servers. It seems to me that I should pass an array of the addresses to the class that instantiates the template for the Apache configuration. That seems easy. The hard part is getting every node to "register" itself so that it's

Re: [Puppet Users] Generating dhcp/pxe configuration from puppet

2012-04-18 Thread Luke Bigum
If you wanted to do this all in Puppet, you could take the same approach that people do with Nagios an use exported resources. Have each of your nodes export some kind of resource that describes what it's DHCP configuration would be based on it's IP and MAC address Facts, then collect those res

Re: AW: [Puppet Users] Undo

2012-04-18 Thread Luke Bigum
If you're really really lucky you can look in ${vardir}/clientbucket on an Agent (usually /var/lib/puppet/clientbucket) and ${vardir}/bucket on the Master. They are backup directories of files that Puppet replaces, keyed on the MD5 sum of the file. Unfortunately I don't think the User providers

[Puppet Users] Generating dhcp/pxe configuration from puppet

2012-04-18 Thread Christian Requena
Hello, I want to generate my infrastructure's dhcp/pxe config from puppet, but to go through the node definitions? Btw. we only use explicit definitions, no regexp. So everything is explicit. I thought about using Puppet::Parser...something ... any hints? Thanks for you help! Christian -- Y

[Puppet Users] Puppet agent hostname/domain change

2012-04-18 Thread Artyom Krilov
Hi Everybody, I have a puppet setup working, but run into issue, which couldn't figure out how to solve. Say I have puppet agent generated certificate and signed it on puppet master. If somehow puppet agent's hostname has been changed it will stop communication with puppet master. I would like

Re: [Puppet Users] Functionality provided puppet dashboard.

2012-04-18 Thread Alexander Holte-Davidsen
Hi Mangesh, I don't believe you can do all this with the dashboard. You will be able to show the your nodes and their puppet reports. This will also indicate their current status (Unchanged, changed, failed, not responding). You will not be able to show logs from other applications if thats what y

[Puppet Users] Looking for solution on working configuration for new testing Puppet servers in existing environments

2012-04-18 Thread Ken Lareau
Hello folks, After some conversation on #puppet on Freenode IRC, Eric Sorenson requested I repost the information and question here, so I am doing so and hopefully it will all make sense... We currently have a well-established and relatively complex Puppet setup in place at my company and I'm in