Re: [Puppet Users] Re: autoloading modules

2010-12-03 Thread Arnau Bria
On Fri, 3 Dec 2010 07:21:33 -0800 Nigel Kersten wrote: On Fri, Dec 3, 2010 at 7:15 AM, Arnau Bria arnaub...@pic.es wrote: On Fri, 3 Dec 2010 12:55:38 +0100 Arnau Bria wrote: Hi all, modulepath=/etc/puppet/manifests/modules:/etc/puppet/manifests/modules/common:/etc/puppet/manifests

Re: [Puppet Users] Re: autoloading modules

2010-12-03 Thread Arnau Bria
On Fri, 3 Dec 2010 07:59:55 -0800 Nigel Kersten wrote: [...] I think we're saying exactly the same thing, so either that, or I fail at reading comprehension :) we're saying the same thing. your comprehension is fine, my English not :-) cheers, Arnau -- You received this message because

Re: [Puppet Users] first install

2010-12-02 Thread Arnau Bria
On Thu, 2 Dec 2010 08:37:11 -0800 (PST) rjl rjl wrote: [...] # puppetd --server stsdev-pri.cdntools.nsatc.net --waitforcert 60 test Could not prepare for execution: Could not create PID file: /var/run/ puppet/agent.pid check dir perms: # ls -lsad /var/run/puppet/ 8 drwxr-xr-x 2 puppet puppet

Re: [Puppet Users] Re: file content

2010-11-25 Thread Arnau Bria
On Wed, 24 Nov 2010 21:13:37 +0100 Stefan Schulte wrote: Hi all, I think I get it... class File default was: File { ensure = prsent, mode= 644, owner = root, group = root, } notice prsent... and not present. ^ I dont think its working

[Puppet Users] browsing puppet file server

2010-11-24 Thread Arnau Bria
Hi all, I'm wondering if there is some way for browsing puppet file server. Sometimes I get the Could not retrieve information from source and I get crazy looking for typos in paths. If not, how do you check path sanity? Cheers, Arnau -- You received this message because you are subscribed

[Puppet Users] file content

2010-11-24 Thread Arnau Bria
Hi all, I have a problem when adding content to a file. I know this sound basic, but I don't know what I'm doing wrong... my server runs puppet-server-2.6.3-0.4.el5 and client puppet-2.6.1-0.6.el5. I firs defined a file like: file { 'default_dns': name= '/etc/resolv.conf', content =

Re: [Puppet Users] Re: file content

2010-11-24 Thread Arnau Bria
On Wed, 24 Nov 2010 07:22:11 -0800 (PST) jcbollinger jcbollinger wrote: On Nov 24, 6:17 am, Ohad Levy ohadl...@gmail.com wrote: Hi ! I'm getting a little crazy with this... I'll paste some code and see if you see what's happening... You probably have a File statement somewhere (like

Re: [Puppet Users] Re: file content

2010-11-24 Thread Arnau Bria
On Wed, 24 Nov 2010 07:39:09 -0800 (PST) jcbollinger jcbollinger wrote: On Nov 24, 6:17 am, Ohad Levy ohadl...@gmail.com wrote: You probably have a File statement somewhere (like site.pp) which has a default source or target attributes. Or, it could be because you have written name =

Re: [Puppet Users] Process to upgrade from 0.24.8 to 2.6.x ?

2010-11-11 Thread Arnau Bria
On Wed, 10 Nov 2010 02:30:02 -0800 (PST) nemo nemo wrote: Hello, Hi, [...] Hence what should be the best approach to upgrade ? For information, servers run centos 5.5 64bit We did same upgrade in our nodes. The most importnat thing is that we used some test host first because some syntax

[Puppet Users] selectors in type defaults

2010-11-09 Thread Arnau Bria
Hi all, I'd like to define a selecto when defining user type default: User { ensure = present, provider= useradd, managehome = $name ? { /^at/ = true, default = false,

Re: [Puppet Users] selectors in type defaults

2010-11-09 Thread Arnau Bria
On Tue, 9 Nov 2010 10:36:12 + Bruce Richardson wrote: Hi Bruce, [...] You could do this using a define. I thought so. A resource default isn't some kind of macro that is invoked whenever an instance of the resource is evaluated; the code of the defaults declaration is evaluated in

Re: [Puppet Users] Re: selectors in type defaults

2010-11-09 Thread Arnau Bria
On Tue, 9 Nov 2010 06:24:21 -0800 (PST) jcbollinger jcbollinger wrote: I'm not sure you've fully appreciated Bruce's remarks and advice. No, Yes, I did. I was playing at test instance, and had some options when wanted to create home for certain users: 1.-) modify our local script that

Re: [Puppet Users] stages examples/advices

2010-10-18 Thread Arnau Bria
On Mon, 18 Oct 2010 09:14:09 -0700 Hunter Haugen wrote: Hi, [...] In your working example you define the classes and then enforce ordering at the same time. The new syntax references the stages but doesn't actually define them, so you could do this: class orden { stage { [ 'repos', 'os',

[Puppet Users] setting type defaults in some classes

2010-10-18 Thread Arnau Bria
Hi all, I'm wondering what puppet does if I define two diff type defaults (like file mode, owner) in two different classes. I'm trying to figure it out by running puppet and watching some file perms, but I see no changes. But I'm not sure that my desired behaivour is the one puppet follows. Is

Re: [Puppet Users] setting type defaults in some classes

2010-10-18 Thread Arnau Bria
On Mon, 18 Oct 2010 22:24:28 +0100 Bruce Richardson wrote: Hi Bruce, I'm wondering what puppet does if I define two diff type defaults (like file mode, owner) in two different classes. I'm trying to figure it out by running puppet and watching some file perms, but I see no changes. If

[Puppet Users] stages examples/advices

2010-10-15 Thread Arnau Bria
Hi all, I'm really interested in new metaparameter stage. I've been studying Ryan's example: http://www.personal.psu.edu/ryc108/blogs/puppetmaster/2010/10/automating-shibboleth-idp-builds-using-stages.html and I was able to define and use stages in my catalogue. But now I'd like to improve my

Re: [Puppet Users] First boot with Puppet

2010-10-14 Thread Arnau Bria
On Thu, 14 Oct 2010 23:47:16 +1300 Michal Ludvig wrote: Hi guys, Hi Michal, Here's my situation: 1) kickstart installs the system, including puppet from our local repo 2) after reboot I have to login and set the hostname and IP kickstart is able to configure your network / hostname. Why

[Puppet Users] Understanding puppetd --debug output

2010-10-08 Thread Arnau Bria
Hi all, I'd like to comment my puppetd --debug output with some expert or other admin cause I see some thing that I don't understand. 1.-) Defaults. I define my defaults in site.pp like: case $operatingsystem { 'RedHat' , 'CentOS' : { [...] Package {

[Puppet Users] managing svn on client side and exec question

2010-10-07 Thread Arnau Bria
Hi all, I'm changing my code and I'd like to control a entire tree by svn and not puppet fileserver (we're trying to decrease puppet load). So I've created a copule of execs, one for svn checkout the other for svn update. svn checkout looks like: exec { 'svn_check_out' : cwd =

Re: [Puppet Users] managing svn on client side and exec question

2010-10-07 Thread Arnau Bria
On Thu, 07 Oct 2010 11:59:29 +0200 Felix Frank wrote: Hi Felix, exec { 'svn_check_out' : cwd = '/opt/localconf', command = 'svn co svn://repo/', create = '/opt/localconf/repo', require = Files['localconf'], } I'd rather define a sensible creates (note the final s)

[Puppet Users] class name limitations

2010-10-07 Thread Arnau Bria
Hi all, I'm noticing that puppet does not support any class name and it gives some error like: err: Could not parse for environment production: Syntax error at 'VO_tune' at /etc/puppet/manifests/services ... I've changed VO_tune by site_tune and puppet stop complaining. now I have this: err:

[Puppet Users] Re: class name limitations

2010-10-07 Thread Arnau Bria
On Thu, 7 Oct 2010 16:35:42 +0200 Arnau Bria wrote: Hi again, I'm noticing that puppet does not support any class name and it gives some error like: It happens when using capital letters at the beginning. [...] anyway, is there any problem when naming classes like: yaimSER1 yaimSER2

Re: [Puppet Users] questions about certs on 2.6.1

2010-10-05 Thread Arnau Bria
On Sun, 03 Oct 2010 11:54:45 +0200 Brice Figureau wrote: [...] But when I run an old client, which already have ca from prod server (which is the same a test one), it runs with no problem: This is normal too. The client knows the CA, it can validate the new master server certificate. The

[Puppet Users] questions about certs on 2.6.1

2010-09-28 Thread Arnau Bria
Hi all, I've a second puppet server (test) where I copied ONLY ca* from prod server. This server is running 2.6.1 + mongrel with SSLVerifyClient optional. I have 2 strange behaviours which I'd like to comment with some expert user. 1.-) I'm running new clients against this new server, they

[Puppet Users] Re: how to manage a service that enables a cron

2009-11-12 Thread Arnau Bria
Hi all, I would not like to confuse people. What I described in OT only happens to pakiti service and not to yum. So I suppose it's a service specific problem. It has its own init script but must behaves diff from standrd RH service. Cheers, Arnau

[Puppet Users] Re: how to manage a service that enables a cron

2009-11-12 Thread Arnau Bria
Hi Thomas, that's the problem all status return code is 0... Thanks, going to contact developer and see if he accepts a patch. Cheers, Arnau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Puppet Users

[Puppet Users] Re: how to manage a service that enables a cron

2009-11-11 Thread Arnau Bria
On Wed, 11 Nov 2009 07:17:05 -0800 (PST) jcbollinger jcbollinger wrote: Hi John, If your initscript supports a status argument (as RedHat-provided ones do) then you can instruct Puppet to use it by setting hasstatus = true on your Service resource(s). That's what I understood and I

[Puppet Users] how to manage a service that enables a cron

2009-11-10 Thread Arnau Bria
Hi all, I've been reading http://reductivelabs.com/trac/puppet/wiki/TypeReference#service and I did not find out how to manage a service that only enables a cron: like: # /etc/init.d/pakiti status nightly pakiti update is disabled # /etc/init.d/yum status Nightly yum update is disabled.

[Puppet Users] req on a file distributed under recursive dir

2009-10-15 Thread Arnau Bria
Hi all, I'm not sure if next conf is going to work: I'd like to distribute a dir in recurse way, but then add a req on a certain file that is under that reurse dir. Example: file { /opt/localconf: ensure = directory, owner =

[Puppet Users] Re: req on a file distributed under recursive dir

2009-10-15 Thread Arnau Bria
On Thu, 15 Oct 2009 17:33:46 +0200 Bjørn Dyresen wrote: Best way to really find out, would be to try it out :) Sure, but I was asking for other's experience/advices :-) Anyway, thanks for your reply! Arnau --~--~-~--~~~---~--~~ You received this message

[Puppet Users] RPM for puppet 0.25.X

2009-10-13 Thread Arnau Bria
Hi all, as described in http://reductivelabs.com/trac/puppet/wiki/DownloadingPuppet I looked for puppet 0.25.X on epel repos, but it isn't there... Anyone already build rpms and made them available? TIA, Arnau --~--~-~--~~~---~--~~ You received this message

[Puppet Users] Re: RPM for puppet 0.25.X

2009-10-13 Thread Arnau Bria
On Tue, 13 Oct 2009 21:19:44 +1100 James Turnbull wrote: See http://tmz.fedorapeople.org/repo/puppet/ Thanks! Regards James Turnbull Cheers, Arnau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Puppet Users

[Puppet Users] Testing puppet puppet-server-0.25.1-0.1.rc1.el5

2009-10-13 Thread Arnau Bria
Hi all, I'm doing my first test on 0.25.X. I have a couple of questions: 1.-) any date on when this version is going to be the stable one? 2.-) I did a first setup in order to test it: -copy all /etc/puppet (except ssl dir) from production host to test host. - start puppetmaster on test host

[Puppet Users] Re: Testing puppet puppet-server-0.25.1-0.1.rc1.el5

2009-10-13 Thread Arnau Bria
On Tue, 13 Oct 2009 16:18:36 +0200 Arnau Bria wrote: Hi all, I'm doing my first test on 0.25.X. I forgot to mention that client is still 0.24.8... [...] Cheers, Arnau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Puppet Users] Re: Misssing package with yum provider

2009-09-30 Thread Arnau Bria
On Wed, 30 Sep 2009 07:04:11 -0700 (PDT) jcbollinger jcbollinger wrote: So, anyone could help me to understand why puppet cannot install both packages? There is a mismatch between Puppet's view of package names as a flat name space and RPM's view of package identifiers as a 5-dimensional

[Puppet Users] Misssing package with yum provider

2009-09-29 Thread Arnau Bria
Hi all, I'm on SL5 (something like RH5) and I have something as simple as: package {libX11-devel.x86_64: } package {libX11-devel.i386: } Cause I want both versions installed in my system. But on one node: # rpm -qa|grep libX11-devel libX11-devel-1.0.3-9.el5 # yum list

[Puppet Users] facter problems on el5 x86_64

2009-08-24 Thread Arnau Bria
Hi all, Fresh install on sl5 (el5) x86_64 and I get this errro when runnning puppet: # puppetd --server=server.domain.com --test Could not load /usr/lib/ruby/site_ruby/1.8/facter/hostname.rb: wrong number of arguments (2 for 1) Could not load /usr/lib/ruby/site_ruby/1.8/facter/network.rb:

[Puppet Users] Re: facter problems on el5 x86_64

2009-08-24 Thread Arnau Bria
On Mon, 24 Aug 2009 09:52:02 -0400 Larry Ludwig wrote: Hi Arnau, Hi Larry, I have not seen that error before and have many EL5 installs. I found the source of problem. I had to exclude facter from dag repo, if not, I have 2 facters installed, 1.5.5 and 1.3.7... and seems that 1.3.7 is

[Puppet Users] Re: facter problems on el5 x86_64

2009-08-24 Thread Arnau Bria
On Mon, 24 Aug 2009 09:17:09 -0500 Paul Nasrat wrote: Odd as 1.5.5 should win in EVR comparison and yum should do the right thing. It may be as the DAG package is arch specific whereas EPEL is noarch with later versions of RHEL/Centos and fedora where ruby abi is installed. %define

[Puppet Users] Re: executing some code with subscribe/notify/unless

2009-07-15 Thread Arnau Bria
On Wed, 15 Jul 2009 15:43:37 +0200 David Schmitt wrote: Hi David, Have you tried setting the refreshonly parameter on the Exec? yes I did, but, IIRC, my problem is still there, cause it evaluates the unless and nothing is done as log is clear. file's notify does its work, but I don't see how

[Puppet Users] SVN pre-commit hook known error

2009-07-02 Thread Arnau Bria
Hi all, my pre-commit script (copied from http://www.reductivelabs.com/trac/puppet/wiki/PuppetVersionControl) fails with error: $ svn ci -m nodo td007 a prod Sendingmanifests/nodes.pp Transmitting file data .svn: Commit failed (details follow): svn: 'pre-commit' hook failed with error

[Puppet Users] Re: SVN pre-commit hook known error

2009-07-02 Thread Arnau Bria
On Thu, 2 Jul 2009 07:54:44 -0700 Nigel Kersten wrote: Hi Nigel, [...] FWIW, it's also just been patched recently: http://projects.reductivelabs.com/issues/2369 Bug is about Puppet 0.25, I'm on puppet-server-0.24.8-1.el5.1 x86_64. It stopped working when I migrate my server from 386 to

[Puppet Users] Re: SVN pre-commit hook known error

2009-07-02 Thread Arnau Bria
On Thu, 2 Jul 2009 08:21:41 -0700 Nigel Kersten wrote: Hi, [...] I'm not sure how your distro change may have affected your PATH, but the same patch will apply cleanly to 0.24.x as well if you wish to implement it. ok, thanks. The bug also applies to 0.24.x, it's just that we're

[Puppet Users] Re: SVN pre-commit hook known error

2009-07-02 Thread Arnau Bria
On Thu, 2 Jul 2009 08:21:41 -0700 Nigel Kersten wrote: I'm not sure how your distro change may have affected your PATH, but the same patch will apply cleanly to 0.24.x as well if you wish to implement it. worked fine. Many thanks, Arnau --~--~-~--~~~---~--~~

[Puppet Users] divide puppet structure

2009-07-01 Thread Arnau Bria
Hi all, I'll open my puppet server to other services in my office, but I'd like to allow each service to only be able to modify its confs. I know there are a couple of files that i cannot split, like fileserver or autosing or puppet.conf, but it's a minor problem. I'm worried about site and

[Puppet Users] Re: divide puppet structure

2009-07-01 Thread Arnau Bria
On Wed, 1 Jul 2009 12:02:40 +0200 Arnau Bria wrote: Hi all, something like: /puppet/manifests/ site.pp: include other_servicesA/site.pp include other_servicesB/site.pp import module A /puppet/manifests/other_servicesA: site.pp

[Puppet Users] Re: yum provider executes rpm -e?

2009-06-30 Thread Arnau Bria
On Tue, 30 Jun 2009 10:58:33 +0200 Peter Meier wrote: Hi, [...] While looking at the code and http://reductivelabs.com/trac/puppet/wiki/TypeReference#package you'll also see that the yum provider is purgeable and that the yum provider has an own purge method. So if this would fit your

[Puppet Users] import Class vs require vs inherits

2009-06-30 Thread Arnau Bria
Hi all, I have a couple of basic questions on classes. In a class, what's the diff between: *don't take in count syntax, please. -- class class_B { package { fortune } file { dummy } } -- example 1)

[Puppet Users] Re: include Class vs require vs inherits

2009-06-30 Thread Arnau Bria
Hi Roy, yes, sorry, include not import... In first example class_B will be evaluated before ALL class_A. so package fortuen and dummy file will be installed/created before package foo. In second one, class_B will be evaluted ONLY when package foo. So, first bogus package, then,

[Puppet Users] yum provider executes rpm -e?

2009-06-22 Thread Arnau Bria
Hi all, I have defined in my site.pp: Package { provider = yum, ensure = latest, } and in one of my modules: package {qt: provider = yum, ensure = absent, } package {ati-fglrx: provider =

[Puppet Users] puppet+mongrel+netstat

2009-06-18 Thread Arnau Bria
Hi all, my server runs puppet+mongrel: [r...@ser01 ~]# rpm -qa|grep mongrel rubygem-mongrel-1.0.1-6.el5 [r...@ser01 ~]# rpm -qa|grep puppet puppet-server-0.24.8-1.el5.1 puppet-0.24.8-1.el5.1 when I do netstat I see may connections in TIME_WAIT like this one: tcp0 0

[Puppet Users] Re: trying to understand puppet internal

2009-06-12 Thread Arnau Bria
Hi all, More test I had a class which creates 250 users, If I comment it, puppet is able to run in 188 nodes at once with no problem. so, definitely, scalability issues comes from code. anyway, if someone could give me some tips on the OT will be appreciate. Cheers, Arnau

[Puppet Users] Re: trying to understand puppet internal

2009-06-12 Thread Arnau Bria
On Fri, 12 Jun 2009 12:34:25 +0200 David Schmitt wrote: Hi David, Compiling the manifest is the single most resource-intensive operation the puppetmaster has to do. Yep, I noticed that. Therefore it is not recommended to have all clients hit the server at the same time. I know, but we're

[Puppet Users] Re: trying to understand puppet internal

2009-06-12 Thread Arnau Bria
On Fri, 12 Jun 2009 21:02:03 +1000 James Turnbull wrote: [...] don't use reports, Wow... I use Gridview and we really like it... but maybe we could live without it and adding some nagios sensors. What's GridView - is that a Puppet specific tool? sorry, PuppetView ... I work in Grid

[Puppet Users] Re: trying to understand puppet internal

2009-06-12 Thread Arnau Bria
On Fri, 12 Jun 2009 13:07:25 +0200 David Schmitt wrote: [...] what diff are there between marshal and yaml? I mean, do I lose information? reports ? AFAIK marshal is equivalent to yaml, only faster and not backwards compatible. will try. don't use reports, Wow... I use Gridview

[Puppet Users] Re: trying to understand puppet internal

2009-06-12 Thread Arnau Bria
On Fri, 12 Jun 2009 21:28:09 +1000 James Turnbull wrote: Can't you have puppet:/// servers separate to the catalogue server? Would that help? Yes - see http://reductivelabs.com/trac/puppet/wiki/PuppetScalability From my tests I saw that filserver is not a problem but users module is. So

[Puppet Users] Re: err: Connection timeout calling puppetmaster.getconfig: execution expired

2009-06-10 Thread Arnau Bria
On Wed, 10 Jun 2009 09:47:26 +0200 David Schmitt wrote: Hi David, [...] This error means that the client timed out when waiting for the configuration from the puppetmasterd, marked as Request to apply the configuration in the diagram and Configuration Transport in the text. yep, sorry:

[Puppet Users] Re: err: Connection timeout calling puppetmaster.getconfig: execution expired

2009-06-10 Thread Arnau Bria
On Wed, 10 Jun 2009 11:10:25 +0200 Arnau Bria wrote: Hi [...] I've upgraded, set splay value to true and testes again (against old server, 2 cpus, 2 GB of RAM and 8 puppetmasterd with mongrel). My test consists of running puppet complet conf and adding a test file (tmp/dummy). I remove

[Puppet Users] Re: run client against two different servers

2009-06-10 Thread Arnau Bria
On Wed, 10 Jun 2009 05:53:44 -0700 (PDT) Hui Hui wrote: Just to confirm the third option of sharing ca.pem among puppetmasters, it does work with webrick and allow clients to connect to any puppetmaster without further cert errors if combined with autosign. Very useful for cluster setups.

[Puppet Users] Re: run client against two different servers

2009-06-09 Thread Arnau Bria
Hi, I found that if i remove /var/lib/puppet/ssl/certs/* I can connect to a new server. I have to it by hand, but at least, it works . Cheers, Arnau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Puppet Users

[Puppet Users] puppet-server-0.24.8-1.el5.1 not writing logs

2009-06-09 Thread Arnau Bria
Hi all, I've just updated my server to puppet-server-0.24.8-1.el5.1 (from epel) and noticed that puppet-server stopped writing in its log: # tail -f /var/log/puppet/puppetmaster.log Tue Jun 09 12:28:48 +0200 2009 Puppet (notice): Shutting down Tue Jun 09 12:28:51 +0200 2009 Puppet (notice):

[Puppet Users] Re: puppet-server-0.24.8-1.el5.1 not writing logs

2009-06-09 Thread Arnau Bria
On Tue, 09 Jun 2009 21:31:19 +1000 Avi Miller wrote: Arnau Bria wrote: I've just updated my server to puppet-server-0.24.8-1.el5.1 (from epel) and noticed that puppet-server stopped writing in its log: It hasn't stopped writing it's logs, it's stopping working completely. Well, my

[Puppet Users] err: Connection timeout calling puppetmaster.getconfig: execution expired

2009-06-09 Thread Arnau Bria
Hi all, My current conf splits 188 clients execution in one hour, and puppet runs as a cron job. My server (2cpu 2 GB RAM) runs with mongrel (with 8 puppetmasterd) and this conf works fine. We'd like puppet to run clients all at same time (force a change, i.e.), so we're testing several

[Puppet Users] run client against two different servers

2009-06-08 Thread Arnau Bria
Hi all, we're doing some test with new puppet server and we'd like to run many clients against this new server. So I tried to stop puppetd (or cron) in one client and run it by hand like: /usr/bin/ruby /usr/sbin/puppetd --server=new_server.domain.com --test but I get: warning: Certificate

[Puppet Users] Re: default options in site.pp

2009-05-08 Thread Arnau Bria
On Fri, 08 May 2009 08:41:22 +0200 Peter Meier wrote: Hi Hi Pete, yumrepo { pic: baseurl = http://server/mrepo/local-PIC-noarch/RPMS.pic/;, descr= pic, name = pic, enabled = absent, } *i also tried with

[Puppet Users] remove a yum repository

2009-05-07 Thread Arnau Bria
Hi all, I would like to remove a repository, but removing it from my module is not enough. I've been reading yumrepo type reference and I'm did not find any option for that... Do I have to create a file type poitning to that repo and then set it to absent? Cheers, Arnau

[Puppet Users] Re: remove a yum repository

2009-05-07 Thread Arnau Bria
On Thu, 07 May 2009 22:49:24 +1000 James Turnbull wrote: [...] Set the enabled attribute to absent. enabled = absent It's in the Type Reference. enabled Whether this repository is enabled or disabled. Possible values are '0', and '1'. Set this to 'absent' to remove it from the file

[Puppet Users] default options in site.pp

2009-05-07 Thread Arnau Bria
Hi all, Are global defaults defined in site.pp writable in type definitions? Maybe I could explain my question better with an example: I have this options set as default for yumrepo in site.pp: $ grep -i -A6 yumrepo site.pp Yumrepo { enabled = 1, enablegroups=

[Puppet Users] problem creating groups

2009-04-28 Thread Arnau Bria
Hi all, I've added new module (copied one of scietific linux 4 and modified for scientific linux 5) modified some includes in host_types/host_groups and added some new nodes but, when trying to install them, I get this error: err: Could not create teldata: Invalid parameter provider I've not

[Puppet Users] Re: nodes missing under ssl/ca/signed/

2009-03-21 Thread Arnau Bria
On Thu, 19 Mar 2009 17:12:02 -0500 Luke Kanies wrote: Hi Luke, So, why isn't this node cert under signed dir? I can't tell you why it's not under that dir, but I can tell you that its presence or absence has no affect on authentication. Authentication is all about the matching CA

[Puppet Users] Re: problems with generate

2009-03-21 Thread Arnau Bria
On Thu, 19 Mar 2009 17:10:41 -0500 Luke Kanies wrote: Could someone explainme why randomnum is returning 1 when it runs insiede puppet? Is randomnum on your client or server? It needs to be on your server. That's the problem :-) thnaks for your reply. Cheers, Arnau

[Puppet Users] problems with generate

2009-03-17 Thread Arnau Bria
Hi all, I moved my clients' daemon to a cron using: http://reductivelabs.com/trac/puppet/wiki/Recipes/cron My first attempt: # /usr/bin/ruby /usr/sbin/puppetd --server=gridinstall.pic.es --test err: Could not retrieve catalog: Failed to execute generator /usr/bin/env: Execution of

[Puppet Users] Connection timeout calling fileserver.describe: socket read timeout

2009-03-02 Thread Arnau Bria
Hi all, I've puppet + mongrel running with 110 hosts. Seems that puppet file-server cannot provide files to client when some are connected at same time (many of them do it together cause they were installed at same time, I use puppetd). Playing a bit with puppet+mongrel I finally configured it

[Puppet Users] Re: Connection timeout calling fileserver.describe: socket read timeout

2009-03-02 Thread Arnau Bria
On Mon, 2 Mar 2009 10:03:39 -0500 Larry Ludwig wrote: using storedconfig? nop -L Arnau --~--~-~--~~~---~--~~ 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] Re: Connection timeout calling fileserver.describe: socket read timeout

2009-03-02 Thread Arnau Bria
On Mon, 02 Mar 2009 10:20:30 -0500 Frank Sweetser wrote: Hi Frank, Do you have SELinux enabled? If so, you may be running into this issue: http://projects.reductivelabs.com/issues/1963 Note that this isn't caused by SELinux blocking anything, so this bug can bite you even if you have

[Puppet Users] Re: Connection timeout calling fileserver.describe: socket read timeout

2009-03-02 Thread Arnau Bria
On Mon, 02 Mar 2009 10:50:46 -0800 Joshua Anderson wrote: Hi Joshua, Having all your nodes connect at the same time is a Bad Idea. Try running puppetd with --splay=true. See the config reference for details, but it should allow you to easily handle 150 clients with four instances of

[Puppet Users] Re: Connection timeout calling fileserver.describe: socket read timeout

2009-03-02 Thread Arnau Bria
On Mon, 2 Mar 2009 19:32:55 +0100 Bjørn Dyre Dyresen wrote: Hi, Maybe Im a bit blunt here, but what are you expecting to gain from that many puppetmasterds? What I have observed is that when when a client request a compilation of configuration the prossess can run into 100%. That means it

[Puppet Users] Am I the only one with lots of problems with puppet?

2009-02-11 Thread Arnau Bria
Hi all, I'm facing many problems for last days with my puppet server/client. Those who read mail list may know that. I'm not sure if it's just my and my poor knowledge on puppet (I must say in my defense that I have read many wiki docs and I have bough the book, ok, it's not enough, if I'm a

[Puppet Users] Re: Am I the only one with lots of problems with puppet?

2009-02-11 Thread Arnau Bria
On Wed, 11 Feb 2009 13:40:56 -0800 Paul Lathrop wrote: Arnau, Hi Paul, Please don't be offended by my response, as you requested we not be offended by your post. I won't, don't worry. I hope you or other developers are not angry with me... I'm just explaining my experience with this

[Puppet Users] something wrong with mongrel?

2009-02-10 Thread Arnau Bria
I forgot to add a netstat: [r...@gridinstall ~]# netstat -puta|grep ruby tcp0 0 localhost.localdomain:18140 *:* LISTEN 2848/ruby tcp0 0 localhost.localdomain:18141 *:* LISTEN 2866/ruby tcp

[Puppet Users] compiled catalog for $HOST time

2009-02-09 Thread Arnau Bria
Hi, anyone could explain why every time that puppet compiles a catalog for a host, its compilation time increases? Hosts share same type, so, from my understanding, compiling catalog time should decrease... (ok, from my poor understanding). Feb 9 11:33:26 gridinstall puppetmasterd[356]:

[Puppet Users] puppet + mongrel + host_cert/key owner

2009-02-09 Thread Arnau Bria
Hi all, following http://reductivelabs.com/trac/puppet/wiki/UsingMongrel it says that hostkey/cert must be owned by puppet:puppet. I tried to keep original path (and also owner) of both files and seems to puppet still works... what problems could it cause to my conf? # grep lib mongrel.conf

[Puppet Users] Re: remove reinstall a package

2009-02-04 Thread Arnau Bria
I've created alittle script with yum install / remove and done something liek: exec {lhcb_patch: command = /usr/local/sbin/lhcb.sh, timeout = -1, unless = file /opt/d-cache/dcap/lib/libdcap.so|grep 32-bit /dev/null, } but I'd

[Puppet Users] remove reinstall a package

2009-02-04 Thread Arnau Bria
Hi, I have a distro problem with a couple of pacakges (I will be fixed in next release). Package A.i586 and A.x86_64 do install libraries in same place. So libraries are 64 bits or 32 depending in the order of A package installation (both belong to a yum group). Now seems that metpackage (yum

[Puppet Users] managing snmp with puppet

2009-02-03 Thread Arnau Bria
Hi all, I have a little problem when configuring snmp. I have to create the user, and for so I must add a line in : /var/net-snmp/snmpd.conf like: createUser nagios MD5 DES XXXx and tehn restart snmp. I'm doing it like: class snmp { package { net-snmp: }

[Puppet Users] Re: managing snmp with puppet

2009-02-03 Thread Arnau Bria
On Tue, 03 Feb 2009 09:22:20 -0500 Frank Sweetser wrote: So the file changes after first start. If I keep the first line (createUser one), everytime puppet runs will notice that file has changed and will redo this step. If I keep the end-state file, snmp does not work... I'm not sure

[Puppet Users] host group

2009-01-22 Thread Arnau Bria
Hi, maybe it's in front of me but I can't see it, maybe I'm looking for something in existent, but sounds strange to me. Is there ant way for grouping node in nodes.pp? I mean, now I have: # cat nodes.pp node td234.pic.es , td065.pic.es, td006.pic.es [...]{ include worker_node }

[Puppet Users] Re: host group

2009-01-22 Thread Arnau Bria
On Thu, 22 Jan 2009 09:34:11 -0600 Mike Renfro wrote: On 1/22/2009 9:10 AM, Arnau Bria wrote: Is there ant way for grouping node in nodes.pp? The following should work for what you described. I use a similar model to have a parent class for all compute cluster nodes, and then child

[Puppet Users] Re: host group

2009-01-22 Thread Arnau Bria
On Thu, 22 Jan 2009 10:32:14 -0600 Mike Renfro wrote: On 1/22/2009 10:11 AM, Arnau Bria wrote: Yep, I was thinking of inherits, but I'll have to control host group like: node nodeA nodeB { } which is what I'm trying to not use. Your original concept used something like

[Puppet Users] problems configuring report

2009-01-14 Thread Arnau Bria
Hi, following http://reductivelabs.com/trac/puppet/wiki/ReportsAndReporting I'm trying to confgiure reports in my frsh puppet install. But as my puppet version has some problems creating its own dirs (I've already opened a bug), rrd repots do not work: Jan 14 12:36:08 gridinstall

[Puppet Users] Re: Cannot create /var/lib/puppet/clientbucket; parent directory /var/lib/puppet does not exist

2009-01-13 Thread Arnau Bria
On Mon, 12 Jan 2009 17:41:11 -0600 Luke Kanies wrote: I'll update the FAQ; trac is being phased out, and the current buglist is on redmine: http://reductivelabs.com/redmine/ Thank you. Cheers, Arnau --~--~-~--~~~---~--~~ You received this message because

[Puppet Users] puppetmaterd --no-daemonize is not working

2009-01-13 Thread Arnau Bria
Hi all, I'm with # rpm -qa|grep puppet puppet-server-0.24.6-1.el5 puppet-0.24.6-1.el5 Instaled from epel 5 repos. When trying puppet with debug option with or without --no-daemonize, puppetmasterd still goes to background: [r...@gridinstall modules]# /usr/sbin/puppetmasterd --debug

[Puppet Users] Re: puppetmaterd --no-daemonize is not working

2009-01-13 Thread Arnau Bria
On Tue, 13 Jan 2009 09:42:50 -0500 Joe McDonagh wrote: Hi, Is the service already running before you run it by hand? no. Can you run a ps aux | grep puppet to see if puppetmasterd does indeed go to the background? [r...@gridinstall ~]# !ps ps -ef|grep puppet root 27312 27281 0 22:51

[Puppet Users] Re: Cannot create /var/lib/puppet/clientbucket; parent directory /var/lib/puppet does not exist

2009-01-12 Thread Arnau Bria
On Fri, 9 Jan 2009 10:10:37 -0600 Carl Caum wrote: Try adding an exec statement that runs at the beginning of your manifest. I'd have to know your manifest to suggest the best way to do it. I personally have an essential package resource require it. exec {mkdir -p /var/lib/puppet:}

[Puppet Users] custom fact in kickstart postisntall

2009-01-12 Thread Arnau Bria
Hi all, I have a custom fact which determines what interface is primary in future bonding: It works fine when I run puppet for second time: # /usr/bin/ruby /usr/sbin/puppetd --server=gridinstall.pic.es --logdest=/var/log/puppet/puppet.log --test info: Retrieving plugins notice:

[Puppet Users] Re: Cannot create /var/lib/puppet/clientbucket; parent directory /var/lib/puppet does not exist

2009-01-09 Thread Arnau Bria
On Fri, 9 Jan 2009 04:59:57 -0800 (PST) Rodney Quillo wrote: parent directory /var/lib/puppet does not exist This directory seems dont exists? Are you sure? :-) I finally created it by hand and the other ones too, but I was asking if this error is normal in a fresh install. Rodney

[Puppet Users] solution: excluding packages via yum

2009-01-07 Thread Arnau Bria
Hi all, sorry for breaking the threat, I don't know where the OP is. anyway, Tim Harper provided yum_plus in order to be able to pass args to yum, in his example, -x option. http://groups.google.com/group/puppet-users/browse_thread/thread/234e84e569a40f61?hl=en# I was looking for something

[Puppet Users] updating packages with yum

2008-12-18 Thread Arnau Bria
Hi all, I think I must redo my question: I must do a package clean before a yum updaet because of the package itself: to update/install the CAs. Occasionally, in case the yum cache is not updated properly one might need to perform manual cleaning with the command: not because yum as I said

[Puppet Users] updating packages with yum

2008-12-17 Thread Arnau Bria
Hi all, When trying to update a package from: package { lcg-CA: ensure = '1.25-1', } to package { lcg-CA: ensure = '1.26-1', } which is the best way of managing yum update? Create an exec yum_update/yum_clean and make a

[Puppet Users] puppet not loggin events in when using logdest

2008-12-09 Thread Arnau Bria
Hi all, I'm runnig puppetd on client like: /usr/sbin/puppetd --server=puppet.server.domain --logdest=/var/log/puppet/puppet.log It's doing changes but client does not log them in /var/log/puppet/puppet.log. For example, I wanted to install some pakages, so I add them in a module and puppet

<    1   2   3   >