[Puppet Users] Re: help needed with reduce function

2024-04-15 Thread Arnau
de I was passing Strings instead of Hashes. Now I'm calling redcue twice and got it working . Best On Monday, April 15, 2024 at 5:17:59 PM UTC+2 Arnau wrote: > Dear all, > > I'm working on a custom puppet (7.28) module to deploy python applciations > like django, str

[Puppet Users] help needed with reduce function

2024-04-15 Thread Arnau
Dear all, I'm working on a custom puppet (7.28) module to deploy python applciations like django, streamlint, etc... A part from the python part, the module also deploys an apache vhost (using puppet apache module from the forge). I have some default options for apache vhost but I like to extend

[Puppet Users] Re: Unkown function mysql::password

2020-06-05 Thread Arnau
I see functions in both paths, so I wonder why the functions from the second are not collected. # puppet agent --configprint libdir > /opt/puppetlabs/puppet/cache/lib > # rpm -qa|grep puppet > puppet-agent-5.5.17-1.el7.x86_64 Any idea? TIA, Arnau El jue., 4 jun. 2020 a las 16:09, Arn

[Puppet Users] Unkown function mysql::password

2020-06-04 Thread Arnau
/functions/mysql/password.rb and also tried mysql::mysql_password ( https://github.com/puppetlabs/puppetlabs-mysql/blob/master/REFERENCE.md#mysqlmysql_password) I don't manage to make it work. What am I not seeing? TIA, Arnau -- You received this message because you are subscribed to the Google

Re: [Puppet Users] create an array of hashes with reduce

2018-11-09 Thread Arnau
gt; you are quoting the $value when it's a array and not a string... > > > > what is the generic rule for quoting in hashes? > > > > > There is something you must have misunderstood. You need to quote values > > Thanks for this explanatin!! very clarifying!

Re: [Puppet Users] create an array of hashes with reduce

2018-11-07 Thread Arnau
/$value/", 'url' => '!' } ] } }else{ $_proxy_pass = [ { 'path' => '/', 'url' => "http://localhost:${port}/"; } ] } notify { "PROXY: $name" : message => $_proxy_pass, } But the reduce is now not wor

[Puppet Users] create an array of hashes with reduce

2018-11-06 Thread Arnau
gt; /t/, url => !}, {path => /i/, url => !}, {path => /c/, url => !}, {path => / ]/, url => !}]' reduce is taking all letters from "static" instead of 'static" as the first (an uniqe) element from the array Later, in my code, I configure the proxy_pass

Re: [Puppet Users] Managing mounted NFS shares, when having no write permission on that share

2018-08-17 Thread Arnau
Hi, Are you sure you are mounting nfs v3 and not 4? Puppet does nothing with the content of the mount so it has to be some (missing/wrong) mount option. HTH, Arnau El dv., 17 ag. 2018 , 23:03, Mike Langhorst va escriure: > I'm having some issues with managing a mount point for an NF

Re: [Puppet Users] Re: Duplicate declaration error

2018-06-11 Thread Arnau
include custom::apache } class custom::apache { class { '::apache': <- WRONG #parameters } } Your define calls custom::apache and in custom::apache you declar ::apache in the resource-like format as much times as vhost you create. Could you please show the full code? and the exa

Re: [Puppet Users] Style (syntax?) question

2018-06-06 Thread Arnau
2018-06-06 14:30 GMT+02:00 jcbollinger : > > > On Tuesday, June 5, 2018 at 9:00:47 AM UTC-5, Arnau wrote: > > >> ( fun fact: https://groups.google.com/forum/#!topic/puppet-users/T1cIUuK >> BU0E isn't this you using "Class"? or am I missing someth

Re: [Puppet Users] Style (syntax?) question

2018-06-05 Thread Arnau
your assertion. > I've been using that syntax in 3.8 for a long time: contain ::soge::install contain ::soge::configure contain ::soge::service Class ['::soge::install'] -> Class ['::soge::configure'] ~> Class ['::soge::service'] Maybe th

Re: [Puppet Users] file resource issue?

2018-06-01 Thread Arnau
;azure_udev_reload'], } exec { 'azure_udev_reload': command => 'udevadm control --reload-rules && udevadm trigger --subsystem-match=block', path=> ['/usr/sbin', '/usr/bin'], re

Re: [Puppet Users] hiera lookup

2018-05-29 Thread Arnau
2018-05-29 12:24 GMT+02:00 Ugo Bellavance : > > > On Tuesday, May 29, 2018 at 5:54:54 AM UTC-4, Arnau wrote: >> >> Hi, >> >> postgresql::server::contrib::package_name: 'rh-postgresql96-postgresql- >> contrib' >> postgresql::server::contrib:

Re: [Puppet Users] hiera lookup

2018-05-29 Thread Arnau
Hi, postgresql::server::contrib::package_name: 'rh-postgresql96-postgresql- contrib' postgresql::server::contrib::packages_ensure: present HTH, Arnau 2018-05-29 11:50 GMT+02:00 Ugo Bellavance : > Hi, > > Here's the content of my whole file, thanks: > &g

Re: [Puppet Users] hiera lookup

2018-05-29 Thread Arnau
Hi, are you sure the errors is about the contrib? can you show us the hiera content for ' postgresql::server::db' ? Could it be that you have an string when a Hash is expected (for the create_resource). Best, Arnau 2018-05-28 22:19 GMT+02:00 Ugo Bellavance : > Hi, > > I am u

Re: [Puppet Users] Re: Hiera and roles/profiles

2018-05-24 Thread Arnau
#x27;s clear what the class ha to do and has no depdency with other stuff. Clear example: autofs. If the node has the profile "autofs" I wanted it to include the class and read data from the profile/autofs.yaml file. But I can put that data in other hierarchy files and move the class include to th

Re: [Puppet Users] Re: Hiera and roles/profiles

2018-05-18 Thread Arnau
- mysql roleA.yaml custom_facts: - profileA - profileB then "merge" the classes hash so it pick classes for all the profiles a node belongs to The main reason is to not having to write classes for each profile and do as much as I can in hiera. I'm not sure if my idea m

[Puppet Users] Hiera and roles/profiles

2018-05-18 Thread Arnau
all the possible profiles in my hiera tree) or if someone was somehow using the "profile" in the hiera tree (and how)?. TIA, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop rec

Re: [Puppet Users] How to organizing puppet code on the master

2018-05-16 Thread Arnau
s to write your own module(s). No matter how you start, working with modules is something that you'll thank in the future when you decide to add more stuff (code/hosts) to your puppet installation.. Then, create a manifest.pp and configure your nodes like: node 'abc' { } node '

Re: [Puppet Users] Dealing with hashes (again)

2018-05-11 Thread Arnau
ey (for example, ntp::servers for the ntp class’s $servers parameter).* But, if I want the class to look for a top scope variable (like what I was doing in my class), then the lookup is needed. without lookup it does not work, that's why you afirmation : "the lookup here has no e

Re: [Puppet Users] Dealing with hashes (again)

2018-05-09 Thread Arnau
s in the define as it's the main key of the hash passed from the main class. Thanks a lot for your answer. Best, Arnau 2018-05-09 14:09 GMT+02:00 Henrik Lindberg : > On 09/05/18 13:36, Arnau wrote: > >> Hi all, >> >> I have a hash of hashes in hiera: >> &g

[Puppet Users] Dealing with hashes (again)

2018-05-09 Thread Arnau
'key']}", type => "${data_sync['ssh_key']['type']}", user => "${data_sync['ssh_key']['user']}", } Puppet does add the entry in the authorized_keys file So, what I'm not seeing here? TIA, Arn

Re: [Puppet Users] Accessgin facts hash from manifests

2018-04-25 Thread Arnau
Thanks a lot for your answer! it worked. Best, Arnau 2018-04-23 11:01 GMT+02:00 Henrik Lindberg : > On 23/04/18 08:33, Johan De Wit wrote: > >> first notify, the index should be quoted >> >> notify { "OS: $facts['os']['family']": } >

Re: [Puppet Users] Accessgin facts hash from manifests

2018-04-25 Thread Arnau
Hi, first of all, thanks for your answer. Using your code I still see the whole $facts hash notify { "OS: $facts['os']['family']": } As Henrik mentioned it must be: notify { "OS: ${facts['os']['family']}": } Best, Arnau 2018-04

[Puppet Users] Accessgin facts hash from manifests

2018-04-20 Thread Arnau
;os']['family'] == 'RedHat' { notify { "I'm a RedHat": } } then it works: Notice: /Stage[main]/Common::Yumrepos/Notify[I'm a RedHat]/message: defined 'message' as 'I\'m a RedHat' So, what's wrong with the above no

[Puppet Users] Git hooks for puppet 5

2018-04-18 Thread Arnau
ing if there are any "officialy" supported by puppetlabs or some other much active. TIA, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to p

Re: [Puppet Users] Controlling Puppet class execution order with parameters.

2017-05-25 Thread Arnau
class3.pp class moduleA::class3 { } moduleA/init.pp contain moduelA::class1 contain moduelA::class2 contain moduelA::class3 Class['moduelA::class1'] -> Class['moduelA::class2'] -> Class['moduelA::class3'] HTH, Arnau 2017-05-24 17:57 GMT+02:00 Harish Kothuri

Re: [Puppet Users] Puppet with Hiera - Custom variables

2017-05-25 Thread Arnau
Hi, the typical scenario for running nodes in differnet environments is to use r10k. https://docs.puppet.com/pe/latest/r10k_run.html git + r10k . It's a well known combo that works perefctly. Best, Arnau 2017-05-25 12:15 GMT+02:00 Stephen : > > Thank you very much for t

Re: [Puppet Users] Puppet with Hiera - Custom variables

2017-05-24 Thread Arnau
.yaml --- :backends: - yaml - eyaml :hierarchy: - "%{environment}/hieradb/%{::env}/cert/%{::clientcert}" *Notice that %{environment} refers to puppet environemnt <https://docs.puppet.com/puppet/4.10/environments.html>. (In my case those are the git branches that I create).* HTH

[Puppet Users] create_resource from a HoH

2017-05-22 Thread Arnau
=> $instance['ajp_params'], manage_firewall => $instance['manage_firewall'], } #$mywars = hiera("my_tomcat::instances::$name::wars") file { "$name" : path => $war['path'], owner => $war['owner'], gro

[Puppet Users] Questions on puppetlabs/apache

2017-01-12 Thread Arnau
thing like: apache::vhost::access_log: false but for a define... is that possible? (without calling create_resource). TIA, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails

Re: [Puppet Users] Puppet hiera error

2016-09-26 Thread Arnau
You could try to debug it from the server side. I usually run: hiera -c /etc/puppet/hiera.yaml -d classes environment=your_env ::fqdn=hostname soemtimes this is useful. Best, Arnau 2016-09-24 0:51 GMT+02:00 Jagga Soorma : > Hi Guys, > > I am trying to setup a new puppet environm

Re: [Puppet Users] simple node classification and custom facts

2016-09-07 Thread Arnau
ame when you switch roles in a node). I prefer using a custom fact cause I can interrogate the node about its role: # facter -p role sge_execution_node I also use the role yaml file in hiera for including classes based: role/sge_execution_node.yaml --- classes: - role::sge_execution_node sge::nod

[Puppet Users] augeasproviders_pam and some account entries (iteration in puppet 3)

2015-11-23 Thread Arnau
e first/ last entry. I've looking for away and found something like "recursion in puppet <https://ttboj.wordpress.com/2012/11/20/recursion-in-puppet-for-no-particular-reason/>", or even using a file template and add some ruby, but I'm wondering if there is another approac

Re: [Puppet Users] Re: puppet agent --tag (and hiera) during Scientific Linux installation

2015-11-11 Thread Arnau
all selinux variables (facts) equal to false as selinux has been disabled after reboot. I'm not setting the variable properly in hiera. > More generally, it would be helpful both to you and to us if you could > narrow down the failure case as much as possible, and present a complete,

Re: [Puppet Users] puppet agent --tag (and hiera) during Scientific Linux installation

2015-11-11 Thread Arnau
Change ::selinux to false (append selinux=0 in the kernel line) and everything works as expected. still (very) confused Arnau 2015-11-11 12:37 GMT+01:00 Arnau : > Hi Martin, > > > > The only env where it's defined is the one I'm using. >> >> Maybe th

Re: [Puppet Users] puppet agent --tag (and hiera) during Scientific Linux installation

2015-11-11 Thread Arnau
the parsers gives the error because the resource type is unknown. I think this explains what's going on. Does it make sense? but I'm still wondering why the parser does not complain after the node reboot. any answer to this? Thanks, Arnau -- You received this message because you are su

[Puppet Users] Re: puppet agent --tag (and hiera) during Scientific Linux installation

2015-11-10 Thread Arnau
s except defaults.yaml, just to be sure that that's the only file checked. I've been trying to download the catalog, with no luck. If the compilation fails, is there any way for downloading it anyway? Thanks, Arnau -- You received this message because you are subscribed to the Google

Re: [Puppet Users] puppet agent --tag (and hiera) during Scientific Linux installation

2015-11-10 Thread Arnau
2015-11-10 14:39 GMT+01:00 Martin Alfke : > Hi Arnau > Hi Martin, > Are your hiera data generic or specific to environments? > specific to hiera. > > … > > > * Hiera works and returns the expected values: > > # hiera -c /etc/puppet/hiera.yaml -d classes en

[Puppet Users] puppet agent --tag (and hiera) during Scientific Linux installation

2015-11-10 Thread Arnau
Hello all, I'm running puppet 3.7.5 + hiera 1.3.4 and facter 2.3.0 . My site.pp: $ cat manifests/site.pp node default { hiera_include('classes')} in *hiera, *I've defined the default classes to be included: $ cat hieradb/defaults.yaml ---#Default classes classes: - profiles::base and the

Re: [Puppet Users] puppetlabs apache and extra conf.d files

2015-11-08 Thread Arnau
Thanks a lot for your answer, Cheers 2015-11-06 16:34 GMT+01:00 Matthew Hyclak : > No, because puppet is now "managing" the file, it won't be included in the > purge. > > On Fri, Nov 6, 2015 at 9:11 AM, Arnau wrote: > >> Hi, >> >> thanks for you

Re: [Puppet Users] puppetlabs apache and extra conf.d files

2015-11-06 Thread Arnau
Hi, thanks for your answer. But with this file + apache doing a directory purge on each run, isn't it going to be add/remove the file in every run? (custom_config is working like a charm) TIA, Arnau 2015-11-06 14:48 GMT+01:00 Matthew Hyclak : > Could/should be as simple as > &g

Re: [Puppet Users] puppetlabs apache and extra conf.d files

2015-11-06 Thread Arnau
Hi Hunter, thanks for your answer. I don't see how to do what you suggest, could you please give me a short example? (I was using apache::custom_config as a workaround) TIA, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

[Puppet Users] puppetlabs apache and extra conf.d files

2015-11-05 Thread Arnau
t I'm wondering what is the best way for "translating" the conf file provided by the rpm into a apache:vhost. Is there any automatic way for writing the apache::vhost from a http conf file (something like puppet resource ... ? ) How do other people deal with this? TIA

Re: [Puppet Users] Write a basic custom module for puppet

2015-09-17 Thread Arnau
Hi, https://docs.puppetlabs.com/puppet/latest/reference/modules_fundamentals.html Maybe start with: puppet module generate user-modulename you'll get the basic stuff. HTH, 2015-09-17 8:46 GMT+02:00 : > I have some experience handling puppet modules but this time I wrote some > code in R

[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: &

[Puppet Users] Problems with wdijkerman/zabbix module

2015-05-20 Thread Arnau Bria
etc/zabbix/.schema.done returned 1 instead of one of [0] Notice: /Stage[main]/Zabbix::Database::Postgresql/Exec[zabbix_server_images.sql]: Dependency Exec[zabbix_server_create.sql] has failures: true where are those pgsql files? I dont' have any pgsql file in my system. TIA, Arnau -- You receive

Re: [Puppet Users] Re: puppet link and automount

2015-04-27 Thread Arnau Bria
On Thu, 23 Apr 2015 16:02:19 +0200 Julien Pivotto wrote: > On Thu, Apr 23, 2015 at 06:53:27AM -0700, jcbollinger wrote: > > > > > > On Thursday, April 23, 2015 at 5:44:37 AM UTC-5, Arnau wrote: > > > > > > Hello all, > > > > > > we h

[Puppet Users] puppet link and automount

2015-04-23 Thread Arnau Bria
). Now we have moved from fstab mounts to automount, and now the file resource that creates the link triggers an automatic mount everytime puppet runs (not desired). A part from creating those links in an exec, anyone has a better idea on how to manage this somehow more elegant? TIA, Arnau -- You

[Puppet Users] mysql module v 1.0 mysql_grant - database_grant

2013-12-09 Thread Arnau Bria
} So, for each user/DB pair, now I must specify much more info. ( I have hundrets of DDBBs)... I've been reading the type code but I do not understand if I can still use some simpler syntax as before... Anyone using the module knows how to write it? Cheers, Arnau -- You received t

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

[Puppet Users] ssh_keys created every puppet run

2013-04-23 Thread Arnau Bria
gate my refresh event I cannot figure out why puppet is pushing the key everytime it runs. I happens with other keys in other servers. Could it be becuase of some strange charactes in the key? # rpm -qa|grep puppet puppet-2.7.21-1.el6.noarch TIA, Arnau -- You received this message because y

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

Re: [Puppet Users] Puppet MySQL Module

2013-03-05 Thread Arnau Bria
n the dtaabses (well, I was refering to antoher... galaxytest, for that reason it was not working. thanks a lot, Cheers, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from

[Puppet Users] Puppet MySQL Module

2013-03-05 Thread Arnau Bria
user => 'galaxy', password => 'XX', host => 'localhost', grant=> ['all'], } Now I would like to give select privileges on galaxy DB to user arnau, but I can't find the way for doing so. Coul

Re: [Puppet Users] managing java with puppet (RH)

2012-11-21 Thread Arnau Bria
deas from your code. > Any comments are welcome. > Grts > > johan Many thanks for your help, 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

[Puppet Users] managing java with puppet (RH)

2012-11-20 Thread Arnau Bria
le which already deals with it, but I've not found any... anyone knows any module with deals with alternatives? 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@googlegr

[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 Ser

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 m

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

2012-05-08 Thread Arnau Bria
st in 2.6 but not in 2.7? What language programing considerations do I have to take into account when migrating? 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.c

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. Ch

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

2012-03-13 Thread Arnau Bria
I can see reports in the master: # ls -lsa /var/lib/puppet/reports/ Display all 101 possibilities? (y or n) Could someone help me to find what I'm missing in this conf? TIA, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

Re: [Puppet Users] Doc about RH6 + Passenger

2012-02-29 Thread Arnau Bria
tall working on CentOS 6. Thanks! I'll take a look. 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 e

[Puppet Users] Doc about RH6 + Passenger

2012-02-28 Thread Arnau Bria
with the above doc? any other official doc with same subject? 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 unsubscribe from this group, send email

[Puppet Users] custom facts loaded twice

2011-12-20 Thread Arnau Bria
cating the cache format is added automatically. # The default value is '$confdir/localconfig'. localconfig = $vardir/localconfig report = false Cheers, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post

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 subscri

[Puppet Users] Re: declare and include classes

2011-11-23 Thread Arnau
Thanks Nan. 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

[Puppet Users] declare and include classes

2011-11-22 Thread Arnau Bria
ence which confuses me: "Since include wasn’t designed for use with parameterized classes" I know you can't include a resource, so a class eith parameters must be declared. But, If I don't use params, I can include the class... so, what are the big differnces between declare and

Re: [Puppet Users] Multiple nodes.pp files

2011-11-16 Thread Arnau Bria
files but use import. [...] > Thank you. > > hugo HTH, 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-user

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...@googlegroup

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

2011-11-15 Thread Arnau Bria
oving the repo without using a file type? Many thanks for your reply Nan, 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, se

[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 Go

[Puppet Users] yumrepo absent not working on 2.6.12

2011-11-15 Thread Arnau Bria
etc/yum.repos.d/sl-5.5-base.repo from 600 to 644 info: create new repo sl-5.5-fastbugs in file /etc/yum.repos.d/sl-5.5-fastbugs.repo [...] notice that "enabled" parameter is ignored I've been looking at list and bug and only found something nearly related: http://projects.puppetlabs

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{"f

[Puppet Users] problems with concat

2011-11-02 Thread Arnau Bria
les/concat/manifests/fragment.pp:48 What am I doing wrong? Anyone has seen this error before? 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 unsubscri

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

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@googl

Re: [Puppet Users] rpm packages for el4

2011-10-27 Thread Arnau Bria
> work. Ok. I'll look if thoses hosts have any ruby dependency more than pupppet. > Keep in mind el4 goes End of Life Feb 29, 2012. So, there isn't too > much time left on it either. I know. But we have some services which are still not ported to el5. > > Mike

[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@google

Re: [Puppet Users] Variables syntax

2011-10-19 Thread Arnau Bria
Sent to early :-) source => $::operatingsystem ? { *without quotes. > Isn't that supposed to work? > > Best regards, > Martijn Grendelman HTH, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To pos

Re: [Puppet Users] Variables syntax

2011-10-19 Thread Arnau Bria
se vars in selectors does not work. source => $operatingsystem ? { > Isn't that supposed to work? > > Best regards, > Martijn Grendelman HTH, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this

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 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 fin

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

2011-10-07 Thread Arnau Bria
ur design a bit so as to not > leave little traps like those for yourself and others to stumble over > later. Or at least document the wazoo out of that thing. I'm playing with this class. First time I do something like above. Our production services have a default present, but this o

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

2011-10-07 Thread Arnau Bria
'test' { class { 'common::nrpe' : } } pupet fails with error: Cannot reassign variable ensure So, what am I missunderstanding? What is the correct way for doing what I'm trying? TIA, Arnau -- You received this message because you are subscribed to the G

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

[Puppet Users] Parameterized class of Parameterized classes

2011-09-20 Thread Arnau Bria
but I'm wondering if this could cause issues in any way (most probably scope), or there's a better way for grouping several classes into one (avoiding inheritance). TIA, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" gr

[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 abou

[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. &

[Puppet Users] Scope and puppet 2.7

2011-09-14 Thread Arnau Bria
quot;global" variables $::mcast_ip So, what's wrong with my code? why I can't rename my vars to new syntax? 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

Re: [Puppet Users] Module organization: file serving

2011-08-30 Thread Arnau Bria
.pp > > So for the agent to retrieve files/bar/baz: > source => "${module_name}/bar/baz" Yep, that's how we current work. Thanks for your reply. > Thanks, > Nan Cheers, Arnau -- You received this message because you are subscribed to the Google Groups "Pupp

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 wrote: Hi Nigel, I think my question was not clear: > > MODULE_PATH > > |-module_name > >|-files > >|-manifests > >

[Puppet Users] Module organization: file serving

2011-08-29 Thread Arnau Bria
s: is there a similar behaviour for file serving? May I create a file dir under bar directory and serve files from there? I don't find find refenreces to such behaviour at http://docs.puppetlabs.com/guides/modules.html ... and my test don't work. TIA, Arnau -- You received this message

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! > -Stefa

[Puppet Users] mount "remounts" not working

2011-08-16 Thread Arnau Bria
unt -o defaults /srv/cloud/' instead of: /bin/mount -o remount /srv/cloud/ and that make puppet fail. Am I miss-understanding remount option? is there any problem with it? $rpm -qa|grep puppet puppet-2.6.8-1.el6.noarch $cat /etc/redhat-release Scientific Linux release 6.0 (Carbon) TIA, Arnau --

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 dashboa

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 w

[Puppet Users] cleaning puppet dashboard

2011-08-11 Thread Arnau Bria
"; Query OK, 76040474 rows affected (1 hour 50 min 2.07 sec) So, how may I get some free space from dashboard DB? 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.

[Puppet Users] facter 1.5.9 does not display lsbmajdistrelease

2011-05-25 Thread Arnau Bria
9-0.4.rc6.el5.noarch # facter lsbmajdistrelease # lsbdistrelease works fine: # facter lsbdistrelease 5.3 #cat /etc/redhat-release Scientific Linux SL release 5.3 (Boron) Is this issue a known bug? TIA, Arnau -- You received this message because you are subscribed to the Google Groups &quo

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" gr

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

2011-05-20 Thread Arnau Bria
clean on the server. > Are you using Passenger? Mongrel That was the source of the issue I had to restart http/puppetmaster for new autosign to take effect. Now it works fine. I can block/unblock hosts with autosign. Thanks! Cheers, Arnau -- You received this message because you

  1   2   3   4   >