[Puppet Users] duplicated resource with an exported resource

2014-07-12 Thread Jose Luis Ledesma
Hi all, I have found a problem setting up exported resources. The problem is that for every hosts I want to define in its /etc/hosts the primary ip, but I want to export a secondary ip with the same hostname that will be collected just by one server. So I defined: @@host { $::hostname

[Puppet Users] how to force an error

2014-07-03 Thread Jose Luis Ledesma
Hi, Does exist some way to force a error while applying the catalog? We need to check some facts vs configuration and force an error if doesnt' match, so we could have a report from the node in the puppetdb with the failed state. (we cannot use a compilation/evaluation error because it doe

[Puppet Users] yum tries to downgrade a package (ensure => version)

2014-02-25 Thread Jose Luis Ledesma
Hi, I have found a problem trying to upgrade a rhel6 package (libcgroup), the current version installed is: libcgroup-0.37-7.el6.x86_64 And I want to install this version: libcgroup-0.37-7.2.el6_4.x86_64 So I created a class that states: package { 'libcgroup':

[Puppet Users] puppet run interval

2014-01-28 Thread Jose Luis Ledesma
It is the default behavior, so if you did not especify otherwise it will run every 30 minutes. Regards, -- 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 puppet-

Re: [Puppet Users] Re: Puppet Dashboard Groups

2014-01-28 Thread Jose Luis Ledesma
What about storing the facts in yaml format in the puppetmaster and just doing a grep there? -- 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 puppet-users+unsubs

Re: [Puppet Users] Re: How to execute a target action before this one when this one triggers

2014-01-28 Thread Jose Luis Ledesma
I dont know if this may work, just an idea ( but I think it is really an ugly idea) Setup a dummy file for printers.conf anywhere I the filesystem Make it to notify the exec stop cups( setting refreshonly=true) chain it with the right file printers.conf and notify from here the cups service. R

Re: [Puppet Users] puppet user context

2014-01-28 Thread Jose Luis Ledesma
Could be that the ${plist_name} is undef inside the define? You could try adding a notify inside the define to check which value it has. Regards, -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving

Re: [Puppet Users] Reg : Pushing files from Puppet Master to Agent node

2014-01-28 Thread Jose Luis Ledesma
ive with Puppet open source. > If you have any documentation for this configuration, Please share me. > With Regards, > Krishna. > > On Tuesday, 28 January 2014 14:39:30 UTC+5:30, Jose Luis Ledesma wrote: >> >> Yes. I recommend the puppetlabs/mcollective module to make t

Re: [Puppet Users] Reg : Pushing files from Puppet Master to Agent node

2014-01-28 Thread Jose Luis Ledesma
Yes. I recommend the puppetlabs/mcollective module to make the configuration easier. Regards -- 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 puppet-users+unsub

Re: [Puppet Users] Reg : Pushing files from Puppet Master to Agent node

2014-01-27 Thread Jose Luis Ledesma
In fact puppetmaster cannot force a push, but mcollective can force a puppet run. And that with a file resource would make the job. Regards, -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emai

[Puppet Users] environment variable inside a template

2014-01-27 Thread Jose Luis Ledesma
Nevermind, it's solved -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https

[Puppet Users] environment variable inside a template

2014-01-27 Thread Jose Luis Ledesma
Is it possible to use the environment variable inside a template? I use a ENC, and I want to avoid the : Warning: Local environment: "production" doesn't match server specified node environment "201401", switching agent to "201401". So I decided to setup puppet.conf inside one of my classes:

[Puppet Users] Module ordering in nodes.pp

2014-01-26 Thread Jose Luis Ledesma
You have to make use of chaining arrows in order to establish a dependency. http://docs.puppetlabs.com/puppet/3/reference/lang_relationships.html#chaining-arrows Regards, -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from thi

[Puppet Users] Hash and loops

2014-01-26 Thread Jose Luis Ledesma
Hello, You should look the create_resources: http://docs.puppetlabs.com/references/latest/function.html#createresources Regards, -- 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,

Re: [Puppet Users] Re: file resource to provide serveral files

2014-01-24 Thread Jose Luis Ledesma
Instead of $conf_file you should use $title or $name inside the define Regards, -- 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 puppet-users+unsubscr...@google

[Puppet Users] file resource to provide serveral files

2014-01-24 Thread Jose Luis Ledesma
I think that what you need is a define here. Regards, -- 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 puppet-users+unsubscr...@googlegroups.com. To view this di

Re: [Puppet Users] Is it possible to include files in puppet.conf

2014-01-24 Thread Jose Luis Ledesma
I don't understand the problem, just use a modulepath without the $environment, or set a couple of paths this way: modulepath = $confdir/environments/common:$confdir/environments/$environment/modules Regards, -- You received this message because you are subscribed to the Google Groups "Puppet

[Puppet Users] Is it possible to include files in puppet.conf

2014-01-23 Thread Jose Luis Ledesma
Read about dynamic environments. Preview: make use of $environment in puppet.conf Regards, -- 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 puppet-users+unsubs

[Puppet Users] Monitor configfiles of a package

2014-01-22 Thread Jose Luis Ledesma
You can exec a rpm verify against the package, it should display which files has changed and then reinstall it to if needed but i think this is not a "puppet solution" Another option would be install the rpm in the puppet master, and create a module that deploy the files of the rpm( so no rpm i

Re: [Puppet Users] hiera suggestion

2014-01-21 Thread Jose Luis Ledesma
Copied from another thread: :hierarchy: ... - "%{environment}/classes/%{calling_class} Perhaps it is easier that way. Regards -- 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,

Re: [Puppet Users] dynamic /etc/hosts

2014-01-20 Thread Jose Luis Ledesma
In fact, I think that is easier, with host exported resources. See:https://groups.google.com/forum/m/#!topic/puppet-users/uAxbiIYH6Q4 -- 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

Re: [Puppet Users] dynamic /etc/hosts

2014-01-20 Thread Jose Luis Ledesma
I think this could be accomplished with exported resources, on every node export a file with his IP, and collect the other ones. Then with a custom script you could verify if the entry is on the hosts file. About the offtopic dhcp vs hosts file, most clusters like to have the ips defined on t

Re: [Puppet Users] How to manage SugarCRM config.php with Puppet?

2014-01-20 Thread Jose Luis Ledesma
Disclaimer: i dont know if this is posible at all. Augeas is able to parse XML, perhaps you can modify the php to load a xml, and use augeas to modify it. I don't have experience with augeas+XML, so this may be just a nonsense :) -- You received this message because you are subscribed to the G

[Puppet Users] Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class

2014-01-19 Thread Jose Luis Ledesma
Ah! And the directory packages should be called nmap (the same name than the class, is how autoloader find it) Regards, -- 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 e

[Puppet Users] Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class

2014-01-19 Thread Jose Luis Ledesma
Hi, Nmap.pp should be called init.pp Regards, -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussio

[Puppet Users] Re: Puppet apply hangs

2014-01-17 Thread Jose Luis Ledesma
I think it was waiting for a manifest in the standard input -- 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 puppet-users+unsubscr...@googlegroups.com. To view th

[Puppet Users] Re: Puppet apply hangs

2014-01-17 Thread Jose Luis Ledesma
0 is standard input... Seems that puppet is waiting for some input??? Or did puppet close fd 0? Regards -- 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 puppet-

[Puppet Users] Replacing file errors: getaddrinfo: No such host is known

2014-01-16 Thread Jose Luis Ledesma
Could be something about filebucket? Perhaps launching the agent with debug gives some hint -- 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 puppet-users+unsubs

[Puppet Users] Re: Using Virtual Resources and create_resource combination

2014-01-16 Thread Jose Luis Ledesma
I'm not sure, but I remember reading something like: create_resources(@user, $myusers) Although I don't really know if this is the best solution for you -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop rec

[Puppet Users] ssh module dependency failure

2014-01-16 Thread Jose Luis Ledesma
I think the error is here: require => Class["ssh:install"] Should be ssh::install Regards -- 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 puppet-users+unsubs

Re: [Puppet Users] Puppet User Administration, set password only at creating of user-accounts

2014-01-13 Thread Jose Luis Ledesma
Would be nice to have something like 'initial_password' in the user resource. Perhaps a solution could be create a custom fact with all the users of the server, and set an 'if' statement before the user resource. Hth -- You received this message because you are subscribed to the Google Groups

[Puppet Users] Re: logstash module to control service

2014-01-13 Thread Jose Luis Ledesma
It seems that the script when stops kills also himself -- 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 puppet-users+unsubscr...@googlegroups.com. To view this di

[Puppet Users] Single certificate, multiple nodes... or image-based systems

2014-01-09 Thread Jose Luis Ledesma
You can use autosign for signing certificates. Regards, -- 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 puppet-users+unsubscr...@googlegroups.com. To view this

Re: [Puppet Users] Decommission puppetdb

2014-01-08 Thread Jose Luis Ledesma
Remove also /etc/puppet/puppetdb.conf -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the w

Re: [Puppet Users] The Future - ENCs vs Hiera?

2014-01-08 Thread Jose Luis Ledesma
True, but with a profiles/roles design + hiera you shouldn't need to parametrize classes in the LDAP. Regards, -- 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

[Puppet Users] When does puppet agent load newly installed facter facts?

2014-01-08 Thread Jose Luis Ledesma
Puppet loads facts first of all, so custom facts deployed are not there until next run. Regards -- 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 puppet-users+un

Re: [Puppet Users] Hiera and puppet apply/puppet agent

2014-01-07 Thread Jose Luis Ledesma
Mmm the error is about ssh_package_name, but you have tried the puppet apply with ssh_service_name. could be this the problem? -- 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, sen

Re: [Puppet Users] dashed by dashboard

2014-01-06 Thread Jose Luis Ledesma
You hace to enable both epel and optional repositories. Regards, -- 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 puppet-users+unsubscr...@googlegroups.com. To v

Re: [Puppet Users] Puppet require - failure handling

2014-01-05 Thread Jose Luis Ledesma
Clases WordPress requiere both MySQL and apache, so no resource of WordPress will be "executed" if any of them fails -- 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

Re: [Puppet Users] Puppet require - failure handling

2014-01-05 Thread Jose Luis Ledesma
Right! I wrote it from the mobile :s -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the we

[Puppet Users] Puppet require - failure handling

2014-01-05 Thread Jose Luis Ledesma
There is not after or before when puppet applies a manifest if there are not dependencies explicitly declared. In the example you have written mysql and apache will be applied in no particular order between them, but will be implemented both before any other resource in the WordPress class. If

Re: [Puppet Users] The Future - ENCs vs Hiera?

2014-01-04 Thread Jose Luis Ledesma
Enforcing environment from the master is a must for us, and I don't really see the point of configuring hiera against LDAP when puppet supports it natively. Do you know some benefit I'm missing? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

Re: [Puppet Users] The Future - ENCs vs Hiera?

2014-01-04 Thread Jose Luis Ledesma
I'm in the process of setting up puppet in my company and I don't like at all the idea of having some thousand of files for describe the nodes. And, despite the well known limitations, I like a lot the idea of having an enc like ldap. Regards, -- You received this message because you are subs

Re: [Puppet Users] The Future - ENCs vs Hiera?

2014-01-04 Thread Jose Luis Ledesma
I'm in the process of setting up puppet in my company and I don't like at all the idea of having some thousand of files for describe the nodes. And, despite the well known limitations, I like a lot the idea of having an enc like ldap. Regards, -- You received this message because you are subs

Re: [Puppet Users] MCollective/Puppet - one-time run with other options

2013-12-31 Thread Jose Luis Ledesma
The problem about using runall/concurrency is that you cannot know when it will finish, so setting it on the crontab could be a source of a problems if it has not yet finished when the next run is schedulee -- You received this message because you are subscribed to the Google Groups "Puppet Us

Re: [Puppet Users] MCollective/Puppet - one-time run with other options

2013-12-31 Thread Jose Luis Ledesma
What do you mean by balancing nodes? -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the we

Re: [Puppet Users] MCollective/Puppet - one-time run with other options

2013-12-31 Thread Jose Luis Ledesma
Hello, We have puppet only in the lab's servers, we are planning to deploy to production in the near future. I found myself thinking about the same question some time ago. What we were thinking is, why to run puppet agent on every node? In fact puppetlabs says about setting the puppet ag

[Puppet Users] Re: mco puppet runonce fails intermittently

2013-12-30 Thread Jose Luis Ledesma
Someone knows how to review stderr/stdout of a mco command? El viernes, 27 de diciembre de 2013 17:17:08 UTC+1, Jose Luis Ledesma escribió: > > Hi all, > >sometimes when I run an mco puppet runonce it fails with the error: > > [root@puppet-master clientbucket]# mco puppet r

[Puppet Users] mco puppet runonce fails intermittently

2013-12-27 Thread Jose Luis Ledesma
Hi all, sometimes when I run an mco puppet runonce it fails with the error: [root@puppet-master clientbucket]# mco puppet runonce -I client01 * [ > ] 1 / 1 client01 Request Aborted Puppet command