[Puppet Users] Problems with wdijkerman/zabbix module

2015-05-20 Thread Arnau Bria
Dear all, I've installed wdijkerman/zabbix module in puppet server. Now I've been modifying its conf in hiera : zabbix::zabbix_url: 'zabbix.linux.crg.es' zabbix::zabbix_version: '2.2' zabbix::manage_repo: 'false' But seems that the module is ignoring those parameters. I've to modify them in

[Puppet Users] Re: Problems with wdijkerman/zabbix module

2015-05-20 Thread Arnau Bria
On Wed, 20 May 2015 15:06:57 +0200 Arnau Bria wrote: Hello, me again with answer to both problems :-) Now I've been modifying its conf in hiera : zabbix::zabbix_url: 'zabbix.linux.crg.es' zabbix::zabbix_version: '2.2' zabbix::manage_repo: 'false' But seems that the module is ignoring

[Puppet Users] mysql module v 1.0 mysql_grant - database_grant

2013-12-09 Thread Arnau Bria
Hi, I'm using mysql module version 0.6.1 and I wanted to upgrade. After reading a little I saw that migrating from v 1 to 2 must be studied, so I decided to upgrde to version 1. BUT, I've seen a couple of warnings on my first run and I'm updating my code, but I've found that my old sysntax for

Re: [Puppet Users] Re: ssh_keys created every puppet run

2013-04-25 Thread Arnau Bria
Hi, the key is not the problem (i copy it into 3 users' home and only one complained). What's special about thta one user? it's home. it's nfs and had file permission problems. Solved. Thanks a lot! Cheers, Arnau -- You received this message because you are subscribed to the Google Groups

[Puppet Users] ssh_keys created every puppet run

2013-04-23 Thread Arnau Bria
Hi, I haveA class with several ssh_key resources: class web_cluster::ssh_keys( $ensure='present') { if ! ($ensure in [ present, absent ]) { fail(cluster ensure parameter must be absent or present) } # Set local variables based on the desired state

[Puppet Users] Puppet MySQL Module

2013-03-05 Thread Arnau Bria
Hi all, I'm using the MySQL module https://forge.puppetlabs.com/puppetlabs/mysql and I can't find the way to give certain permission to a secondary user over an already created DB (which has it own user): mysql::db { 'galaxy': user = 'galaxy',

Re: [Puppet Users] Puppet MySQL Module

2013-03-05 Thread Arnau Bria
On Tue, 5 Mar 2013 10:48:16 +0200 Nikola Petrov wrote: Hi Nikola, You can use the database_grant resource type. Here is an example: database_grant { ${user}@${::hostname}/${db}: privileges = ['select'], # anything you want require= Database_user[${user}@${::hostname}], }

Re: [Puppet Users] Puppet MySQL Module

2013-03-05 Thread Arnau Bria
On Tue, 5 Mar 2013 10:48:16 +0200 Nikola Petrov wrote: You can use the database_grant resource type. Here is an example: But how may I set its password? (it's working cause my user was correctly created and I set its passwd before). *Sorry, I did reply too early.. Cheers, Arnau -- You

[Puppet Users] managing java with puppet (RH)

2012-11-20 Thread Arnau Bria
Hi all, In my systems (SL 6.3, RH like) I'm installing Oracle's Java. I'm managing the package and several links under /etc/alternatives with puppet, but for configuring it, all the 'official' docs recommends 'alternatives'. I've been looking for some module which already deals with it, but I've

[Puppet Users] Compile catalog time: 2.6 vs 2.7.X

2012-05-08 Thread Arnau Bria
Hi all, I'm in the procedure of migrating my old puppet server (puppet-2.6.14-1.el5) with mongrel to a new one (puppet-2.7.14-1.el6.noarch) with passenger. I'm facing a really strange behaviour with the catalog compilation time. I've 3 servers: 1.-) Centos 5.8 puppet-2.6.14-1.el5 +

Re: [Puppet Users] 12% of my puppet clients -- Could not retrieve catalog from remote server: execution expired

2012-05-08 Thread Arnau Bria
On Tue, 8 May 2012 05:35:34 -0700 (PDT) Tim Lank wrote: how do I troubleshoot this error that occurs for about 12% of the puppet clients (~70 out of ~550.) do they run as daemon? always the 70 same hosts are failling? do they run at same time? Cheers, Arnau -- You received this message

[Puppet Users] Re: Compile catalog time: 2.6 vs 2.7.X

2012-05-08 Thread Arnau Bria
On Tue, 8 May 2012 13:07:04 +0200 Arnau Bria wrote: I should add more info on servers and manifests: 1.-) Centos 5.8 puppet-2.6.14-1.el5 + rubygem-mongrel-1.0.1-6.el5 Client: Compiled catalog for td055.pic.es in environment production in 4.25 seconds Server: time puppet master --verbose

[Puppet Users] puppet-dashboard running on puppet-server (SL6)

2012-03-13 Thread Arnau Bria
Hi all, I've installed a new puppet-server and I wanted to add puppet-dash-board for reports (only). # rpm -qa|grep puppet|sort puppet-2.7.11-2.el6.noarch puppet-dashboard-1.2.6-1.el6.noarch puppet-server-2.7.11-2.el6.noarch So, I've followed

Re: [Puppet Users] puppet-dashboard running on puppet-server (SL6)

2012-03-13 Thread Arnau Bria
On Tue, 13 Mar 2012 10:20:37 -0400 Peter Bukowinski wrote: Hi Peter, This is documented here: http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html#starting-and-managing-delayed-job-workers Thanks a lot, I can't figure out how I did not see that part of the doc. Cheers, Arnau

Re: [Puppet Users] Doc about RH6 + Passenger

2012-02-29 Thread Arnau Bria
On Tue, 28 Feb 2012 09:02:09 -0500 Eric Lake wrote: If I remember right I used a combination of mostly http://projects.puppetlabs.com/projects/1/wiki/Using_Passenger and a little of http://www.uncompiled.com/centos-6-puppet-27-mcollective-foreman-rabbitto get my install working on CentOS 6.

[Puppet Users] Doc about RH6 + Passenger

2012-02-28 Thread Arnau Bria
Hi all, I'm installing a new puppet server and I'd like to move from mongrel to passenger. So, I'm looking for official doc abou passenger and found: http://docs.puppetlabs.com/guides/passenger.html the doc does not talk about RH6 nor 2.7.* ... Anyone has configured his server with the above

[Puppet Users] custom facts loaded twice

2011-12-20 Thread Arnau Bria
Hi all, Every time I run puppet manually I see the message: # puppetd --test --server $SERVER info: Retrieving plugin info: Loading facts in hwtype info: Loading facts in odd_ip info: Loading facts in default_gateway info: Loading facts in hwtype info: Loading facts in odd_ip info: Loading facts

Re: [Puppet Users] Templates + Parameterised classes

2011-11-28 Thread Arnau Bria
On Mon, 28 Nov 2011 16:20:13 +0200 Graham Leggett wrote: Hi all, Hi, [...] I am trying to embed the parameter name using % parameter_name % maybe: %= parameter % [...] Regards, Graham HTH, Arnau -- You received this message because you are subscribed to the Google Groups Puppet Users

[Puppet Users] declare and include classes

2011-11-22 Thread Arnau Bria
Hi all, after moving to parametrized classes, I've started to declare them instead of including. Now, I'm trying to understand the differences (internal) between declare and include, and, reading http://docs.puppetlabs.com/guides/parameterized_classes.html again, I found some sentence which

Re: [Puppet Users] yumrepo absent not working on 2.6.12

2011-11-16 Thread Arnau Bria
Ok, thnaks a lot. Cheers, 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@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For

Re: [Puppet Users] Multiple nodes.pp files

2011-11-16 Thread Arnau Bria
On Wed, 16 Nov 2011 15:32:41 +0100 Hugo Deprez wrote: Dear community, Hi Hugo, I would like to know if it is possible to use different files for the nodes.pp Can we use in nodes.pp the following syntax : include nodes2.pp we have several node files but use import. [...] Thank you.

[Puppet Users] yumrepo absent not working on 2.6.12

2011-11-15 Thread Arnau Bria
Hi all, Seems that ensure = absent is not working on puppet 2.6.12 yumrepo type. 'sl-5.5-base' : baseurl = 'http://reposerver/computing-SL-55-base-x86_64/RPMS.base/', descr = 'SL 5.5 base', enabled = absent, exclude = 'yum-conf* c-ares'; # ls -lsa

[Puppet Users] Re: yumrepo absent not working on 2.6.12

2011-11-15 Thread Arnau Bria
Sorry, forgot to mention that if we set 0 instead of absent, the parameter works: notice: /Stage[pre]/Common::Os::Release5::Sl55::Repos/Yumrepo[sl-5.5-base]/enabled: enabled changed '' to '0' Cheers, Arnau -- You received this message because you are subscribed to the Google Groups Puppet

Re: [Puppet Users] Re: yumrepo absent not working on 2.6.12

2011-11-15 Thread Arnau Bria
On Tue, 15 Nov 2011 10:06:43 -0500 Nan Liu wrote: [...] A quick glance at the type shows you need to set 1 or 0, absent means the property should not exist rather than puppet should configure the value to 0. Ok. I understood that absent removes the file. My fault. any way for removing the

[Puppet Users] problems with concat

2011-11-02 Thread Arnau Bria
Hi all, I've downloaded and installed puppet-concat module and was trying to use it. After reading doc, I've set concatdir to /tmp only for test purpose, but I'm wondering what is a good value for concatdir. Maybe /var/lib/puppet/concat? I guess I have to create it, am I right? So, following

Re: [Puppet Users] problems with concat

2011-11-02 Thread Arnau Bria
On Wed, 02 Nov 2011 11:22:05 - (GMT) R.I.Pienaar R.I.Pienaar wrote: you're missing the concat{/etc/sudoers: } # set up a file for being managed by snippets concat{somefile: } # add a snippet to it: concat::fragment{foo:.} needs both solved. Thanks ! Arnau -- You received

Re: [Puppet Users] rpm packages for el4

2011-10-27 Thread Arnau Bria
On Wed, 26 Oct 2011 14:29:32 -0700 Michael Stahnke wrote: Hi Michael, We've discussed it. The issue is that el4 ships with ruby 1.8.1. Puppet doesn't work to well with 1.8.1 any more. If you rebuild or pull in a newer ruby stack (even 1.8.5) then the el5 rpms probably work. Ok. I'll look

Re: [Puppet Users] rpm packages for el4

2011-10-27 Thread Arnau Bria
Mike, where is the tarball for 2.6.12-2 ? I can't find it at http://downloads.puppetlabs.com/puppet/ Cheers, 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@googlegroups.com. To

Re: [Puppet Users] rpm packages for el4

2011-10-27 Thread Arnau Bria
On Thu, 27 Oct 2011 11:04:35 +0200 Arnau Bria wrote: Mike, where is the tarball for 2.6.12-2 ? I can't find it at http://downloads.puppetlabs.com/puppet/ I found src.rpm for el5. http://yum.puppetlabs.com/el/5/products/SRPMS/ Cheers, Arnau -- You received this message because you

[Puppet Users] rpm packages for el4

2011-10-26 Thread Arnau Bria
Hi all, anyone has created the rpm packages of new versions for el4? only 5/6 at http://yum.puppetlabs.com/el/ TIA, 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@googlegroups.com. To

Re: [Puppet Users] Variables syntax

2011-10-19 Thread Arnau Bria
On Mon, 17 Oct 2011 17:53:39 +0200 Martijn Grendelman wrote: Hi, Hi, [...] These give me errors like: Could not parse for environment production: Could not match ${::operatingsystem} at... Where are you setting those vars? I've seen that, on 2.6, setting those vars in selectors does

[Puppet Users] how to modify a parameter inside a parametrized class

2011-10-07 Thread Arnau Bria
Hi all, I think I'm not understanding something... from http://docs.puppetlabs.com/guides/parameterized_classes.html : The parameters you name can be used as normal local variables throughout the class definition so, I have a class like: class common::nrpe($ensure='absent') { [...] if

Re: [Puppet Users] Re: how to modify a parameter inside a parametrized class

2011-10-07 Thread Arnau Bria
On Fri, 7 Oct 2011 05:55:34 -0700 (PDT) jcbollinger jcbollinger wrote: Hi John, You are misunderstanding that Puppet variables' values can never be reassigned. Once a variable has a value, it never changes throughout the compilation of that catalog. This is an aspect of Puppet DSL's

Re: [Puppet Users] Re: how to modify a parameter inside a parametrized class

2011-10-07 Thread Arnau Bria
On Fri, 7 Oct 2011 06:34:00 -0700 (PDT) jcbollinger jcbollinger wrote: On Oct 7, 8:11 am, Arnau Bria arnaub...@pic.es wrote: On Fri, 7 Oct 2011 05:55:34 -0700 (PDT) jcbollinger jcbollinger wrote: While I'm on this topic, I'll throw in that I would find it terribly confusing

Re: [Puppet Users] Re: qualified variables in templates

2011-09-21 Thread Arnau Bria
Ok. so template and class share the scope and tehre's no need to qualify its vars. Thanks for your replies and for the link. Cheers, 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] qualified variables in templates

2011-09-20 Thread Arnau Bria
Hi all, is there a way for qualifying variables inside a template? I've tried : Name = %= ${::hostname} % but the var gets ${::hostname} value. thinking in version 2.8, is it needed? http://docs.puppetlabs.com/guides/scope_and_puppet.html says nothing about this... TIA, Arnau -- You

[Puppet Users] Parameterized class of Parameterized classes

2011-09-20 Thread Arnau Bria
Hi all, is there any problem in creating a parameterized class of parameterized classes? something like: class A ($var1,$var2,$var3) { class { 'B' : param = ${var1} ; 'C' : param = ${var2} ; 'D' : param = ${var3} ; } } node

[Puppet Users] Re: Scope and puppet 2.7

2011-09-15 Thread Arnau Bria
On Wed, 14 Sep 2011 15:16:45 +0200 Arnau Bria wrote: Hi all, Hi ! I reply myself... maybe it's useful for someone in the future. I'm planning to upgrade our server/client to 2.7 and would like to completely understand the big change in the dynamic scope deprecation. It says that 2.7

[Puppet Users] Scope and puppet 2.7

2011-09-14 Thread Arnau Bria
Hi all, I'm planning to upgrade our server/client to 2.7 and would like to completely understand the big change in the dynamic scope deprecation. It says that 2.7 will issue deprecation warning. Ok, so I've upgraded a test server, test node and moved my code there. ran puppet and no warnings.

Re: [Puppet Users] Module organization: file serving

2011-08-30 Thread Arnau Bria
On Mon, 29 Aug 2011 10:04:42 -0700 Nigel Kersten wrote: On Mon, Aug 29, 2011 at 8:23 AM, Arnau Bria arnaub...@pic.es wrote: Hi Nigel, I think my question was not clear: MODULE_PATH |-module_name |-files |-manifests |-foo.pp |-bar

Re: [Puppet Users] Module organization: file serving

2011-08-30 Thread Arnau Bria
On Tue, 30 Aug 2011 09:44:59 -0400 Nan Liu wrote: Hi Nan, No, files in the manifests directory are not accesible through source = puppet:///... The manifests directory is intended to be inaccessible to the agent since it contains files that should be compiled on the master. thanks. now

[Puppet Users] Module organization: file serving

2011-08-29 Thread Arnau Bria
Hi all, Puppet's module organization looks like: MODULE_PATH |-module_name |-files |-manifests |-foo.pp |-bar |-bar.pp And module autoloading will find bar.pp if I define it as module_name::bar::bar My question is: is

Re: [Puppet Users] mount remounts not working

2011-08-17 Thread Arnau Bria
On Tue, 16 Aug 2011 18:31:48 +0200 Stefan Schulte wrote: [...] Solution: remove the name (so name will implicitly be /srv/cloud) or change name to /srv/cloud (with no trailing slash) FTW: This is filed as https://projects.puppetlabs.com/issues/6793 thanks a lot! -Stefan Cheers, Arnau --

[Puppet Users] mount remounts not working

2011-08-16 Thread Arnau Bria
Hi all, I have some code like: { '/srv/cloud' : name = '/srv/cloud/' , atboot = true , device = 'iscsidisk01.domain.org:/volumes/POOL/one' , fstype = 'nfs' , remounts = true , options = 'defaults' ,

Re: [Puppet Users] Re: cleaning puppet dashboard

2011-08-12 Thread Arnau Bria
On Thu, 11 Aug 2011 08:36:41 -0700 (PDT) Luke Bigum wrote: Hi Arnau, Hi Luke, This is not a Puppet Dashboard problem, it's a MySQL feature of InnoDB. You're using per-table InnoDB data files. InnoDB data files grow. They never, ever, ever shrink. So what you've got there is a 22GB sparse

Re: [Puppet Users] Re: cleaning puppet dashboard

2011-08-12 Thread Arnau Bria
On Thu, 11 Aug 2011 08:36:41 -0700 (PDT) Luke Bigum wrote: Hi Arnau, Hi Luke, [...] dump the database out, blow away the InnoDB data files and import the dump (see http://dev.mysql.com/doc/refman/5.5/en/innodb-data-log-reconfiguration.html). I'm dumping my dashboard data. My cron prunes

[Puppet Users] cleaning puppet dashboard

2011-08-11 Thread Arnau Bria
Hi all, I have a cron that follows http://docs.puppetlabs.com/dashboard/manual/1.2/maintaining.html and cleans our puppet dashboard: [...] rake RAILS_ENV=production reports:prune upto=1 unit=wk rake RAILS_ENV=production db:raw:optimize [...] but I've found a table which is 22GB and I'm not able

Re: [Puppet Users] autosign by hostname not working?

2011-05-20 Thread Arnau Bria
On Thu, 19 May 2011 09:10:22 -0700 Patrick Patrick wrote: Hi, Sorry. I ready your whole email backwords. I can only blame being tired. no problem! Did you clean using puppetca --clean hostname on the server, by using rm on the client, or both? clean on the server. Are you using

Re: [Puppet Users] autosign by hostname not working?

2011-05-20 Thread Arnau Bria
On Thu, 19 May 2011 23:46:32 + Nan Liu wrote: thanks Nan, with your help and Patrick's I've understood the problem and solved. Many thanks for you reply! Cheers, Arnau -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this

[Puppet Users] autosign by hostname not working?

2011-05-19 Thread Arnau Bria
Hi all, till today we had a *.our.doamin in autosign.conf. So any host from our.domain could get a signed certificate if it contacts our master. But we've decide to move that * to a complet list of hostnames. So, I've pasted all the names to autosign file, restarted master (not sure if needed)

Re: [Puppet Users] how to add same ssh_key to two diff accounts

2011-05-12 Thread Arnau Bria
On Thu, 12 May 2011 09:59:21 +0200 Felix Frank wrote: On 05/11/2011 05:36 PM, Arnau Bria wrote: If you're keen to get it anyway, you may want to open a ticket. I think I've already asked here... but I have an example where that feature is really interesting: we have some user pool, aout

Re: [Puppet Users] how to add same ssh_key to two diff accounts

2011-05-11 Thread Arnau Bria
On Tue, 10 May 2011 12:48:21 +0200 Felix Frank wrote: Do you know if this is going to be supportted in future? Redeclaration of the same resource is not going to work ;-) :-) As for the distribution of one authorized_key to multiple user accounts...I'm not sure that it's as useful as it

[Puppet Users] how to add same ssh_key to two diff accounts

2011-05-10 Thread Arnau Bria
Hi all, I'm trying to add same ssh key to two diff accounts and I'm getting an error. My code: 'key_1' name= 'arnau@my_pc.domain', user= 'user1', key = rsa_key;

Re: [Puppet Users] how to add same ssh_key to two diff accounts

2011-05-10 Thread Arnau Bria
On Tue, 10 May 2011 12:26:06 +0200 Felix Frank wrote: Hi, Hi Felix, Am I trying to do something not supported? Yes. Do you know if this is going to be supportted in future? Just rename on of the keys. The name of a public key is really quite arbitrary and SSH doesn't use it for

[Puppet Users] help with template and has_variable?

2011-05-02 Thread Arnau Bria
Hi all, I'm getting crazy with this... I have some templates where I use has_variable? with no problem. But now I have problems in new one. nods.pp node 'my_node' { $CVMFS_mountpoint = /mnt/cvmfs $CVMFS_file = /etc/auto.cvmfs [...] include

Re: [Puppet Users] help with template and has_variable?

2011-05-02 Thread Arnau Bria
On Mon, 02 May 2011 15:31:01 +0200 Felix Frank wrote: [...] Constant? This is a complete shot in the dark, but have you tried downcasing those to cvmfs_mountpoint and cvmfs_file? that worked! Looks to me like ruby thinks its dealing with constants, whereas it should be looking for

Re: [Puppet Users] Advice for managing package versions with CentOS/yum

2011-04-13 Thread Arnau Bria
On Tue, 12 Apr 2011 16:02:56 -0700 (PDT) elliott elliott wrote: Hi, Anyone have any advice for dealing with this? I'd rather not mirror the entire CentOS-Base repository locally at version 5.5 just so my few packages are available... why don't you mirror locally those few packages and add

[Puppet Users] add ssh key to several user accounts

2011-04-07 Thread Arnau Bria
Hi all, I'd like to add one ssh_key to several (1500) user accounts. Accounts share some prefix, so I was thinking on a regular expression, but after reading language_guide, I understood that I cannot use reg.expr for that. So, I have a couple of ideas: 1.) define authorized_keys file like:

Re: [Puppet Users] Re: add ssh key to several user accounts

2011-04-07 Thread Arnau Bria
On Thu, 7 Apr 2011 02:07:52 -0700 (PDT) ccm ccm wrote: Hey. Hi ccm. have a look at my last posting: http://groups.google.com/group/puppet-users/browse_thread/thread/d74262daca8c0e8f I wrote a small wrapper that might help you here. Nice, but how to add same key to several accounts?

[Puppet Users] Re: add ssh key to several user accounts

2011-04-07 Thread Arnau Bria
Hi again, I've been thinking a little more and got more ideas, but I don't know if they're possible, so I'll appreciate some expert opinion on them: 1.-) modify authorized_key provider (create my own) where user param accepts an array of elements (users) user = [ 'user1' , 'user2' ,

Re: [Puppet Users] puppet-dashboard

2011-04-04 Thread Arnau Bria
On Mon, 4 Apr 2011 11:33:54 +0100 FRLinux FRLinux wrote: Hello, Hi, I have another quick one about puppet dashboard. We are using the Debian one for Squeeze (1.0.4) and as the database has significantly grown, if/when we click on a list of unresponsive nodes to check them, the web

Re: [Puppet Users] Re: Managing directories, recursively?

2011-04-01 Thread Arnau Bria
On Fri, 01 Apr 2011 15:22:03 +0200 Felix Frank wrote: Hi, just checking puppet mail list now. as the author of the great example I want to say that my main purpose was to say that instead of mkdir, you can declare as many dirs as you want and then, create some kind of relationship between them.

Re: [Puppet Users] Re: Managing directories, recursively?

2011-03-31 Thread Arnau Bria
On Thu, 31 Mar 2011 13:19:21 -0700 (PDT) Forrie Forrie wrote: I only have a directory like: /usr/local/nagios/libexec for which I want to manage the plugins on the clients. It's pretty simple. So are you suggesting the better approach may be to exec a mkdir -p as a requirement in the

[Puppet Users] Possible bug in configure script (torque 2.5.5)

2011-03-30 Thread Arnau Bria
Hi all, it comes from another issue where David Beer is helping me, but I faced a configure related issue when applying his solution: I should build torque 2.5.5 with : --with-tcp-retry-limit=2 After doing so, I should have a define in pbs_config.h, but it isn't: # grep -r TCP_RETRY_LIMIT

Re: [Puppet Users] Possible bug in configure script (torque 2.5.5)

2011-03-30 Thread Arnau Bria
Wrong mailing list? Sure... I'm always thinking on puppet. sorry dudes! -- 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

Re: [Puppet Users] pupet dashboard taking more than 10 minutes to destroy a node

2011-03-25 Thread Arnau Bria
Hi, After some prune /all excpet last week)/optimize the destroy action works great.. Thanks for the tips, now I have to take a lokk at mysql links. Cheers, Arnau -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send

[Puppet Users] pupet dashboard taking more than 10 minutes to destroy a node

2011-03-24 Thread Arnau Bria
Hi all, I've noticed that puppet-dashboard takes a lot of time to refresh some webs, but today, I've started to remove some old nodes and it takes more than 10 minutes to remove one. The host hasn't a really high load: [root@puppet01 ~]# uptime 16:54:31 up 14 days, 5:17, 1 user, load

Re: [Puppet Users] pupet dashboard taking more than 10 minutes to destroy a node

2011-03-24 Thread Arnau Bria
On Thu, 24 Mar 2011 17:06:33 +0100 Stefan Goethals wrote: Dashboard removes the reports for nodes one by one... This can take a long time with many reports. Solutions : - Delete reports in the db with a delete statement. - run the cleanup rake task for reports as explained on the github

Re: [Puppet Users] pupet dashboard taking more than 10 minutes to destroy a node

2011-03-24 Thread Arnau Bria
Hi again, I'm cleaning my DB (which was 15GB) following: https://github.com/puppetlabs/puppet-dashboard I did: rake RAILS_ENV=production reports:prune upto=1 unit=wk rake RAILS_ENV=development reports:prune upto=1 unit=wk (It has been running for about 3 months) and after: rake

Re: [Puppet Users] pupet dashboard taking more than 10 minutes to destroy a node

2011-03-24 Thread Arnau Bria
Hi Cody, Thanks for both replies! tomorrow morning I'll take a look to links. Cheers, 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@googlegroups.com. To unsubscribe from this group, send

Re: [Puppet Users] variable scope woes

2011-03-01 Thread Arnau Bria
On Mon, 28 Feb 2011 12:28:43 -0800 (PST) draeath draeath wrote: Hi, you could add some notify to see what value has $my_role in some classes. http://www.devco.net/archives/2009/08/19/tips_and_tricks_for_puppet_debugging.php We use same schema and variable scope works fine. what puppet

Re: [Puppet Users] duplicate base name error

2011-02-10 Thread Arnau Bria
On Thu, 10 Feb 2011 12:10:54 -0500 Tim Dunphy wrote: Hello list! Hello, [...] [root@mclient ~]# puppetd --test info: Caching catalog for mclient.acadaca.net info: Applying configuration version '1297357383' err: //centos/Yumrepo[rpmforge]: Failed to retrieve current state of resource: A

Re: [Puppet Users] duplicate base name error

2011-02-10 Thread Arnau Bria
Hi, not main but [base] you have only one [base] section in your working conf and twon on broken one. Try changin one base to something else. Cheers, Arnau -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email

Re: [Puppet Users] Re: user authorized_keys with wrong perms

2011-02-04 Thread Arnau Bria
On Fri, 4 Feb 2011 06:30:10 -0800 (PST) jcbollinger jcbollinger wrote: [...] So Puppet is sometimes failing with a permission failure while attempting to synchronize the authorized_keys resource. Supposing that the agent is running as root, there aren't very many things that could cause it

[Puppet Users] user authorized_keys with wrong perms

2011-02-03 Thread Arnau Bria
Hi, I sometimes get a strange problem with some user's authorized_keys file. The file should belong to user:users_group but puppet sets it as root:root: i.e: err: /Stage[os]/Computing_ssh/Ssh_authorized_key[neuro...@si.pic.es]: Could not evaluate: Permission denied -

Re: [Puppet Users] Configuration not applied, Finished catalog run in 0.01 seconds

2011-01-26 Thread Arnau Bria
On Wed, 26 Jan 2011 05:19:11 -0800 (PST) Adriana Adriana wrote: Hello, Hi, [...] When launching puppetd on the client and after having signed the certificate, I always get the same info: Caching catalog for pc001 info: Applying configuration version '1296044901' notice: Finished catalog

[Puppet Users] Problems with autoloading modules

2011-01-13 Thread Arnau Bria
HI all, we've been explicity importing modules since we started working with puppet. We'd like to start using modules autoloading so I followed: p://docs.puppetlabs.com/guides/modules.html which only sys that puppet will load all modules under modulepath. Ok, so I have this modulepath:

Re: [Puppet Users] Re: Problems with autoloading modules

2011-01-13 Thread Arnau Bria
On Thu, 13 Jan 2011 02:41:31 -0800 (PST) luke.bigum luke.bigum wrote: Hi Arnau, Hi Luke, Your module folder name is called 'common_puppet' but you're class is called 'common_puppet_conf'. O!! did not read about this requisite. Option 1, rename the common_puppet class to

Re: [Puppet Users] Re: Problems with autoloading modules

2011-01-13 Thread Arnau Bria
On Thu, 13 Jan 2011 06:39:28 -0800 (PST) luke.bigum luke.bigum wrote: Just to give you some examples of auto loading complex modules with multiple classes and how that relates to class names: modules/puppet/init.pp = include puppet modules/puppet/master.pp = include puppet::master

[Puppet Users] A section with name main already exists (Bug 5231)

2011-01-11 Thread Arnau Bria
Hi all, I'm facing the bug 5231 when running puppet: host has some repos with many section main defined: # grep main * atrpms.repo:[main] cern-extra.repo:[main] cern-extra-srpms.repo:[main] cern-only.repo:[main] cern-only-srpms.repo:[main] cern.repo:[main] cern-srpms.repo:[main]

Re: [Puppet Users] Re: A section with name main already exists (Bug 5231)

2011-01-11 Thread Arnau Bria
On Tue, 11 Jan 2011 07:04:19 -0800 (PST) jcbollinger jcbollinger wrote: Hi, Bug 5231 is about the lack of clarity and specificity in error messages about conflicts between yum repos, not about the fact that an error was raised in the first place. It sounds like you are expecting Puppet to

[Puppet Users] sysctl type not available

2011-01-10 Thread Arnau Bria
Hi all, from http://projects.puppetlabs.com/projects/1/wiki/Puppet_Modules wanted to take a look at sysctl type but it's not available. http://spook.wpi.edu/sysctl Anyone could give it a look? TIA, Arnau -- You received this message because you are subscribed to the Google Groups Puppet

Re: [Puppet Users] sysctl type not available

2011-01-10 Thread Arnau Bria
On Mon, 10 Jan 2011 16:41:02 +0100 Peter Meier wrote: As far as I remember this one: http://git.puppet.immerda.ch/?p=module-sysctl.git;a=summary was originally based on that one. Thanks! ~pete Arnau -- You received this message because you are subscribed to the Google Groups Puppet

[Puppet Users] Could not find user kbarber

2011-01-10 Thread Arnau Bria
Hi, looking for more modules: * puppet-iptables * puppet-archive * puppet-bugzilla * puppet-sshd give an error about kbarber user... was him deleted by error? http://forge.puppetlabs.com/bobsh/sshd http://bob.sh/puppet TIA, Arnau -- You received this message because you

Re: [Puppet Users] Re: Puppet definitions and inheritance

2011-01-06 Thread Arnau Bria
On Thu, 06 Jan 2011 13:49:56 +0100 Felix Frank wrote: Hi Felix, In our work, we're 4 people sharing a puppet server and puppet structure. We define our definitions inside our classes, and sometimes we see that some of we use same def but defined in its our class (i. e. add_line

Re: [Puppet Users] Re: Puppet definitions and inheritance

2011-01-05 Thread Arnau Bria
On Mon, 3 Jan 2011 08:11:50 -0800 (PST) jcbollinger jcbollinger wrote: Hi, looking for some other's experience... [...] You could also try using ::main::luser, and perhaps even changing main to something with less potential for name collision. Better, however, would probably be to move

Re: [Puppet Users] Re: lsbmajdistrelease fact

2010-12-21 Thread Arnau Bria
Thanks to both.. redhat-lsb seems trivial now... an hour looking for diff and it was so easy... thanks again! 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-us...@googlegroups.com. To

[Puppet Users] tmz repo

2010-12-20 Thread Arnau Bria
Hi all, maybe it's a little OT... anyone knows if old puppet version from tmz repos are still available somewhere? TIA, 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-us...@googlegroups.com.

Re: [Puppet Users] variables with no value

2010-12-19 Thread Arnau Bria
On Sun, 19 Dec 2010 16:57:06 +0100 Stefan Schulte wrote: On Fri, Dec 10, 2010 at 11:31:18AM +0100, Arnau Bria wrote: Hi all, Hi, When I run the client in nodeb, and add a notify of root_password, I see that nodeb's root_password has a value and it's serviceA!?!? This can happen when

[Puppet Users] how to us a var in define as $namevar

2010-12-16 Thread Arnau Bria
Hi, I have this code: define software_mount ($vo_name) { [...] device = server:/$vo_name, [...] } And I'd like to use $vo_name a type name, so I could use it like: software_mount { ['vo_name1' , 'vo_name2', ..., 'vo_nameN' ] } or even: software_mount {

Re: [Puppet Users] how to us a var in define as $namevar

2010-12-16 Thread Arnau Bria
On Thu, 16 Dec 2010 07:29:18 -0700 Nan Liu wrote: If you want to use the resource title, simply use $title or $name within the define. yes it has more sense .. Thanks, Nan Thanks, Arnau -- You received this message because you are subscribed to the Google Groups Puppet Users group.

[Puppet Users] File type: no success using array

2010-12-15 Thread Arnau Bria
Hi all, from http://docs.puppetlabs.com/guides/language_tutorial.html this syntax should be ok: file { [ 'foo', 'bar', 'foobar' ]: owner = root, group = root, mode = 600, } I've this in my code: file { [ '/software/atlas' , '/software/cms' , '/software/lhcb' , '/software/magic'

Re: [Puppet Users] Re: File type: no success using array

2010-12-15 Thread Arnau Bria
On Wed, 15 Dec 2010 11:04:27 +0100 Peter Meier wrote: Hi Pete, file { [ '/software/atlas' , '/software/cms' , '/software/lhcb' , '/software/magic' , '/software/at3' , '/software/paus' , '/software/mice' , '/software/ops.vo.ibergrid.eu' , '/software/supernemo.vo.eu-egee.org' ]: require

[Puppet Users] variables with no value

2010-12-10 Thread Arnau Bria
Hi all, We'd like to share a class, and do something like: class common_defaults { [...] user { 'root': ensure = present, password= $root_password ? { 'serviceA'= 'passwdA', default = 'passwdB', }, [...] }

Re: [Puppet Users] variables with no value

2010-12-10 Thread Arnau Bria
On Fri, 10 Dec 2010 11:43:59 +0100 Felix Frank wrote: nodes.pp nodea { $root_passwd=serviceA include common_defaults } nodeb { include common_defaults } Hi, Hi, could you be a little less cryptic about the node definitions? (I understand there may be privacy

Re: [Puppet Users] variables with no value

2010-12-10 Thread Arnau Bria
On Fri, 10 Dec 2010 12:33:39 +0100 Felix Frank wrote: We could simply as my previously example. is the selctor correct? password= $root_password ? { 'serviceA'= 'passwdA', default = 'passwdB', }, I mean, the default

[Puppet Users] my first template

2010-12-09 Thread Arnau Bria
Hi all, I'd like to start using templates and I'm doing some test with one of my already working class (bacula). Following dir structure: module_name/manifests/init.pp /templates/file.erb my template wants to copy a file and change a value for client hostname: init.pp: [...]

Re: [Puppet Users] my first template

2010-12-09 Thread Arnau Bria
Hi all, thanks for your replies. So doc is confusing here: http://projects.puppetlabs.com/projects/1/wiki/Puppet_Templating [...] content = template(tracsite.erb), [...] Cheers, Arnau -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

Re: [Puppet Users] my first template

2010-12-09 Thread Arnau Bria
On Thu, 09 Dec 2010 15:28:22 +0100 Felix Frank wrote: On 12/09/2010 03:12 PM, Arnau Bria wrote: Hi all, thanks for your replies. So doc is confusing here: http://projects.puppetlabs.com/projects/1/wiki/Puppet_Templating [...] content = template(tracsite.erb

[Puppet Users] Re: autoloading modules

2010-12-03 Thread Arnau Bria
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/services/workernode/modules/ ^ this is wrong. /modules

  1   2   3   >