Re: [Puppet Users] scheduling package installs - ignore schedule if not installed

2011-04-28 Thread Felix Frank
On 04/23/2011 04:01 AM, Steven Acres wrote: > On Fri, Apr 22, 2011 at 2:34 PM, trey85stang > wrote: > > Is there a way to override a schedule for a package if the package is > not installed? > > class packages { > schedule { installs: >range

Re: [Puppet Users] how to get around nis conflicts

2011-04-28 Thread Felix Frank
On 04/26/2011 10:16 PM, ncdirtbag wrote: > hey all, I am running puppet and running into a conflict with nis when > trying to add a local group to this particular server. > > [root@old-neon]$ ${PUPPET_TREE}/scripts/run-puppet > err: /Stage[main]/Disco::Group/Group[mygroup]/ensure: change from > ab

Re: [Puppet Users] File serving with Puppet

2011-04-28 Thread Patrick
On Apr 27, 2011, at 11:26 AM, John Kennedy wrote: > I am trying to serve some files though Puppet. I have configured > fileserver.conf on the Puppet master: > > # Configuration > [configuration] > path /etc/puppet/manifests/files/configuration/%H > # Modules > [modules] > allow *.example.co.uk

[Puppet Users] Fetching the domain name from a string variable

2011-04-28 Thread Jan
Hi guys, is there a simple way to fetch the domain name (e.g. test-domain.tld) from a string variable (e.g. host-internal.test-domain.tld)? Jan -- 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@g

Re: [Puppet Users] Fetching the domain name from a string variable

2011-04-28 Thread Mohit Chawla
On Thu, Apr 28, 2011 at 2:24 PM, Jan wrote: > is there a simple way to fetch the domain name (e.g. test-domain.tld) from > a string variable (e.g. host-internal.test-domain.tld)? > Directly use the domain fact from facter or: http://docs.puppetlabs.com/references/latest/function.html#split --

Re: [Puppet Users] Re: unable to request certificate

2011-04-28 Thread Felix Frank
On 04/27/2011 06:42 PM, ki_chi_saga wrote: > > Sorry > >> Yes,by running; >> "/sbin/puppetd --server puppet-server.lmera.ericsson.se --verbose -- >> test" > > should be > > # ../sbin/puppetd --server puppet-server.lmera.ericsson.se -- > waitforcert 60 --verbose --test > > Hi, that's not

[Puppet Users] Re: Automating Nagios with Puppet

2011-04-28 Thread Sans
Just one question: On Apr 26, 9:29 am, Fransua33 wrote: > [ ] > >         $servicelist=["nagios", "httpd"] > >         service { $servicelist: >                 ensure          => "running", >                 hasstatus       => "true", >                 hasrestart      => "true" >         }

[Puppet Users] User management and group overriding

2011-04-28 Thread Thomas Rasmussen
Hey I'm having a problem getting my user management module to work. I can create users and groups without any problems, but if I need to override group memberships on a single node, I get the "Error 400 on SERVER: Only subclasses can override parameters" This is what I have setup: usermgmt modul

Re: [Puppet Users] [SOLVED] Fetching the domain name from a string variable

2011-04-28 Thread Jan
On 04/28/2011 10:58 AM Mohit Chawla wrote: > On Thu, Apr 28, 2011 at 2:24 PM, Jan wrote: > >> is there a simple way to fetch the domain name (e.g. test-domain.tld) from >> a string variable (e.g. host-internal.test-domain.tld)? >> > > Directly use the domain fact from facter or: > http://docs.pu

Re: [Puppet Users] [SOLVED] Fetching the domain name from a string variable

2011-04-28 Thread Mohit Chawla
On Thu, Apr 28, 2011 at 5:52 PM, Mohit Chawla wrote: > On Thu, Apr 28, 2011 at 5:14 PM, Jan wrote: > >> Works like a charm, just what I was searching for ;) >> > > Heh, sorry for not understanding the problem correctly. Thanks for posting > the solution. :) > > -- You received this message bec

Re: [Puppet Users] Subscribe and Require

2011-04-28 Thread Martin Harrigan
On Wed, Apr 27, 2011 at 2:47 PM, Nigel Kersten wrote: > > > On Wed, Apr 27, 2011 at 3:40 PM, Stig Sandbeck Mathisen > wrote: >> >> Martin Harrigan writes: >> >> > Hi all, >> > >> > Does a subscription result in an auto-requirement? >> >> A "subscribe" should imply a "require", although this is n

[Puppet Users] Re: run stages and mixed class styles

2011-04-28 Thread jcbollinger
On Apr 27, 2:25 pm, vagn scott wrote: > I didn't run this (simplified) example so there might be errors, but > anyway -- say we have: > > --- > > stage { aptstuff: } > > Stage[aptstuff] -> Stage[main] > > class proxy($url) { >          file

Re: [Puppet Users] Re: Force resigning of existing certificates

2011-04-28 Thread Matt Wise
Unfortunately, this is still a 'missing feature' of Puppet IMO. I applaud Foreman for adding it as functionality though in their own code. For our situation, we ended up writing our own CGI script on the Puppet CA servers as well as a client-side script that runs periodically on the clients to v

[Puppet Users] Re: unable to request certificate

2011-04-28 Thread ki_chi_saga
Hello Felix! > > In most circumstances, disabling autosigning is indeed a good idea. That's what I've read too. > About your general problems, Well, this is the first time I installed a puppet client and I wanted having it going right away an a Solaris system (to an on-site education on puppet).

Re: [Puppet Users] Re: Force resigning of existing certificates

2011-04-28 Thread Trevor Vaughan
Out of curiosity, if you're going to do this, why not just set the TTL to 100y and be done with it? Doesn't help old systems, but certainly fixes new ones without the need for constant re-signing. Trevor On Thu, Apr 28, 2011 at 10:30 AM, Matt Wise wrote: > Unfortunately, this is still a 'missin

Re: [Puppet Users] Is it necessary for site.pp to change in order to apply a new catalog?

2011-04-28 Thread Nan Liu
On Wed, Apr 27, 2011 at 4:23 PM, Sriramu Singaram wrote: > Hi everyone, > > I am using Puppet 2.6.5 on my Master and Client. > > My /etc/puppet/manifests/site.pp looks like this: > > import "nodes/*" > import "templates" > import "nodes" > > I have a templates.pp file with a "class baseclass {...}

Re: [Puppet Users] Re: Automating Nagios with Puppet

2011-04-28 Thread Gabriel Filion
Hello, On 11-04-28 05:55 AM, Sans wrote: > On Apr 26, 9:29 am, Fransua33 wrote: >> > [ ] >> > >> > $servicelist=["nagios", "httpd"] >> > >> > service { $servicelist: >> > ensure => "running", >> > hasstatus => "true", >> >

[Puppet Users] Re: Is it necessary for site.pp to change in order to apply a new catalog?

2011-04-28 Thread Sriramu Singaram
On Apr 28, 9:11 am, Nan Liu wrote: > On Wed, Apr 27, 2011 at 4:23 PM, Sriramu Singaram > > wrote: > > Hi everyone, > > > I am using Puppet 2.6.5 on my Master and Client. > > > My /etc/puppet/manifests/site.pp looks like this: > > > import "nodes/*" > > import "templates" > > import "nodes" > > >

[Puppet Users] Re: dashboard: 500 error trying to view files

2011-04-28 Thread mawi
I have this exact same issue. Report in dashboard says: PropertyMessage content content changed '{md5}fe0d954a385f75f6ee0cff5340d86b60' to '{md5}3315e40b701dff7d0b160d96b5dd8ac4' Both hashes are hyperlinks. Clicking any of these results in We're sorry, but something went wrong.

[Puppet Users] Re: Deploy puppet via NFS?

2011-04-28 Thread Forrie
Thanks for the feedback. It will make life a lot easier if I can deploy/maintain puppet via a RO NFS mount point. I presume you have the local stuff like /etc/ init.d/puppetmaster /etc/sysconfig/puppet /etc/puppet/puppet.conf managed separately and located on each system? I thought it might be

[Puppet Users] Re: Deploy puppet via NFS?

2011-04-28 Thread Forrie
Also, do you just install the puppet from the src or include the GEM in the ruby distribution. I would think managing it from src might be better, if it's just an NFS RO mount point. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to t

Re: [Puppet Users] Re: run stages and mixed class styles

2011-04-28 Thread vagn scott
On 04/28/2011 09:54 AM, jcbollinger wrote: > > You have to do some sort of provisioning to get Puppet working in the > first place, so option (1) wouldn't really be so bad. > There is no question that it could be done in provisioning. My question is really: How do stages work? Can I use stages t

Re: [Puppet Users] Re: dashboard: 500 error trying to view files

2011-04-28 Thread Martin Willemsma
I did some tests. When I change the content of I file for an agent. it gets bucketet. But not to the master! Therefor I had to change filebucket { main: server => “puppetmaster”, path => false } in site.pp notice: /Stage[main]//File[/tmp/puppet]/content: content changed '{md5}5e3df20eb06b9724d92

[Puppet Users] Is this a valid statement?

2011-04-28 Thread Roberto Bouza
if $enabled != undef { do it } $enabled will have true or false or nothing/undef and it will be used for multiple things but I don't want to do anything if it is 'undef'. Does this make sense? Thanks. -- You received this message because you are subscribed to the Google Groups "Puppet Users

[Puppet Users] Re: dashboard: 500 error trying to view files

2011-04-28 Thread mawi
I did some tests. When I change the content of I file for an agent. it gets bucketet. But not to the master! Therefor I had to change filebucket { main: server => “puppetmaster”, path => false } in site.pp notice: /Stage[main]//File[/tmp/puppet]/content: content changed '{md5}5e3df20eb06b9724d92a

Re: [Puppet Users] Is this a valid statement?

2011-04-28 Thread Pietro Monteiro
On 04/28/2011 12:46 PM, Roberto Bouza wrote: if $enabled != undef { do it } $enabled will have true or false or nothing/undef and it will be used for multiple things but I don't want to do anything if it is 'undef'. try: if $enabled { do it } if $enabled is false or undef then it won't

[Puppet Users] Re: Is this a valid statement?

2011-04-28 Thread Roberto Bouza
That is the problem. :-) If its false/true I need to do stuff like if $enabled != undef { class { 'doit': enabled => $enabled } # This here will use true or false to delete or add files for example } But if it's undef I don't even want to include the class. I'm guessing that if this is not a v

Re: [Puppet Users] Re: Deploy puppet via NFS?

2011-04-28 Thread Mohamed Lrhazi
On a "build" machine: - Install an independent version of Ruby, I would recommend http://www.rubyenterpriseedition.com/ Make sure *that* ruby is installed fully into one directory, such as /my-opt/ruby-enterprise, nothing in /usr/this or /var/that or whatever. - Using *that* freshly installe

Re: [Puppet Users] Re: Is this a valid statement?

2011-04-28 Thread Pietro Monteiro
On 04/28/2011 01:01 PM, Roberto Bouza wrote: That is the problem. :-) If its false/true I need to do stuff like if $enabled != undef { class { 'doit': enabled => $enabled } # This here will use true or false to delete or add files for example } then try: if $foo == true or $foo == false {

Re: [Puppet Users] Re: Is this a valid statement?

2011-04-28 Thread Nan Liu
On Thu, Apr 28, 2011 at 1:01 PM, Roberto Bouza wrote: > That is the problem. :-) > > If its false/true I need to do stuff like > > if $enabled != undef { >  class { 'doit': enabled => $enabled } # This here will use true or > false to delete or add files for example > } > undef, '', false all eva

[Puppet Users] Manifest not applied unless touched

2011-04-28 Thread Bruce P
Hi all, I'm in the process of trying to set up a new puppet server. We have a few hundred servers that we manage and we're looking to migrate to puppet for a number of reasons I won't bother getting into. Given the number of hosts I've installed passenger to leverage Apache, so here's a quick ru

[Puppet Users] parse puppet yaml in java

2011-04-28 Thread Mani
Hi All, Has anyone parsed puppet yaml in Java? I am playing with snakeyaml and trying to use a custom class to parse yaml returned by puppet as mentioned in http://code.google.com/p/snakeyaml/wiki/Documentation#Custom_Class_Loader But I am not sure how to deal with "--- !ruby/object:Puppet::Run:"

[Puppet Users] Re: Force resigning of existing certificates

2011-04-28 Thread Jake - USPS
That's too funny ... I took a look at the installation instructions for foreman and it didn't look too complicated, so I'll give it a try tomorrow. Is it pretty intuitive to use, or do you want to point me to documentation to setup doing what I'm doing above in it? Thanks, Jake On Apr 27, 4:54 p

Re: [Puppet Users] Manifest not applied unless touched

2011-04-28 Thread Denmat
Hi, Yeah, I've seen this too. Passenger performs caching out of the box. You can turn this off by specifying 'RackEnv development' in your apache vhost. That should turn off caching. It should re-read manifest without it after a timeout (probably also configurable) for when you want to run in