Re: [Puppet Users] Installation of puppet dashboard opensource

2015-01-02 Thread José Luis Ledesma
I think the problem is in the virtual host heading It should be virtualhost *:3000 instead of *3000:. Regards Hi everybody, I'm trying to install puppet dashboard with opensource. i installed and configured with some online tutorials. But i can't browse the dashboard. When i restart httpd servic

Re: [Puppet Users] Best practice for notifying versus changing?

2014-12-03 Thread José Luis Ledesma
Hi, Noop mode is the answer Regards, El 3/12/2014 20:01, "Brian Morris" escribió: > Hello all, > > Due to some persnickety Windows developers I have been tasked with showing > that Puppet can be used to alert when a known configuration has changed > rather than correcting the change, and then n

Re: [Puppet Users] Overriding class parameters using a collector

2014-10-17 Thread José Luis Ledesma
Have you tried this? class cls($arg="default"){notify{$arg:}} node foo { Class <| name=='cls'|> {arg => "override"} class{'cls':} } El 17/10/2014 19:29, "Vladimir Brik" escribió: > Hello, > > Is it possible to override parameters of a class using a collector? > (similarly to htt

Re: [Puppet Users] custom function error undefined local variable

2014-10-06 Thread José Luis Ledesma
Credits go to Nan Liu: If you are developing facts, it's much easier to just drop into IRB and get everything working there rather than doing round trip debugging between puppet and facter: irb(main):001:0> require 'facter' => true irb(main):002:0> Facter.value("hostname") => "demo-1" irb(mai

Re: [Puppet Users] Automatically cleaning up if a class/define is no longer used (related to purging unmanaged resources)

2014-09-23 Thread José Luis Ledesma
is? > > > > Thanks very much, > > Vlad > > -- > 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

Re: [Puppet Users] Globally used parameter

2014-09-19 Thread José Luis Ledesma
Using hiera is probably the best solution. Regards, El 19/09/2014 14:14, "Marco Dürrwächter" escribió: > Hi, > > I'm searching for the best way to use parameter in multiple modules. > > Example: I am declaring a variable $port in module 'server' and I need > this variable in module 'firewall' to

Re: [Puppet Users] Using exported resources as data containers?

2014-09-10 Thread José Luis Ledesma
Perhaps you can use datacat_fragments exported resources and then collect them and put them together with the datacat_collector. https://github.com/richardc/puppet-datacat/ Regards, El 10/09/2014 00:49, escribió: > I have a difficult-to-manage application which does not implement a conf.d > o

Re: [Puppet Users] Best method to query role specific data when using roles/profiles + hiera as an ENC

2014-09-09 Thread José Luis Ledesma
Hiera is called each time you query it, or because of the auto lookup, so if you set up a role variable in site.pp you can use it in next queries. I use this method ;) El 09/09/2014 23:03, "JeremyCampbell" escribió: > I would expect that the role has to be set before hiera is queried or am I >

Re: [Puppet Users] Best method to query role specific data when using roles/profiles + hiera as an ENC

2014-09-09 Thread José Luis Ledesma
You can hace %{role} in your hierarchy setting in your site.pp: $role=hiera('role') Regards El 09/09/2014 11:34, "JeremyCampbell" escribió: > We are implementing the profiles/roles pattern with hiera and using hiera > to assign roles i.e. hiera_include('classes'). Current hierarchy: > > :hiera

Re: [Puppet Users] MCollective puppet runonce and puppet agent daemon conflict?

2014-09-05 Thread José Luis Ledesma
Forgot about last question,you can specify more than one -I in each command El 05/09/2014 20:46, "Stella" escribió: > Hi, > > I am using open source Puppet 3.6.2 with Dashboard and Mcollective. > > If I have puppet agent running and then from puppet master I run "mco > puppet runonce --server pu

Re: [Puppet Users] MCollective puppet runonce and puppet agent daemon conflict?

2014-09-05 Thread José Luis Ledesma
You can use mcollective to run periodic revisions with noop: mco puppet --noop runall 10 This will run puppet on every machine with concurrency of 10 ( so no more than 10 puppet agent will be retrieving/applying the catalog at the same time). You can also stop puppet from mcollective, push config

Re: [Puppet Users] client not seeing changes made on puppetmaster

2014-09-05 Thread José Luis Ledesma
> > > > > -- > 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] foo::bar problem?

2014-09-03 Thread José Luis Ledesma
When you include bar in class foo::bar it searches first in the foo class, so includes itself. You should change it for: Include ::bar To include the just the class bar. Regards, El 03/09/2014 18:23, "scuwolf" escribió: > what's happening when call 'include b' ? why it did not take effect? > >

Re: [Puppet Users] Puppet, HA & Duplicate definitions

2014-08-29 Thread José Luis Ledesma
Imho collect from all. Just make the title unique :) El 29/08/2014 21:50, "Julien Pivotto" escribió: > On Fri, Aug 29, 2014 at 06:37:19PM +0200, José Luis Ledesma wrote: > >If both nodes has to export the same resource ( same > >type/same title) they can

Re: [Puppet Users] Safe Way to Deploy New Setup?

2014-08-29 Thread José Luis Ledesma
Hi, If you installed puppet from the beginning it has generated a new ca certificate, so any client pointing to it will not be able to make the certificate validation and will not trust the new puppet master, so you don't have to care about it. Regards, El 29/08/2014 17:52, "thehailo" escribió:

Re: [Puppet Users] Puppet, HA & Duplicate definitions

2014-08-29 Thread José Luis Ledesma
If both nodes has to export the same resource ( same type/same title) they cannot be collected together. So, if you need to collect both, change the title to make it unique. Regards, El 29/08/2014 15:38, "Julien Pivotto" escribió: > > Hello > > I am facing a small problem concerning the puppeti

Re: [Puppet Users] Variable interpolation challenge

2014-08-27 Thread José Luis Ledesma
Hi, You can also use getvar or inline_template. Regards El 27/08/2014 18:00, "Henrik Lindberg" escribió: > On 2014-27-08 15:02, Gav wrote: > >> Aaron, have you had problems with this in Puppet 3? Using similar code >> in 3.6.0 does not return the fact value. >> >> Cheers, >> Gavin >> >> On Tues

Re: [Puppet Users] Failed to connect to PuppetDB. Check settings (hostname does not match the server certificate) but what settings?

2014-08-15 Thread José Luis Ledesma
This error means that the hostname in puppetdb.conf doesn't match the puppetdb certificate hostname El 15/08/2014 16:17, "Kim Nielsen" escribió: > Hi all, > > > I needed to change the hostname for our puppet enterprise solutions so I > did. I also recreated all SSL certificates with cut’n’paste f

Re: [Puppet Users] increasing frequency of puppet agent runs during initial deployment?

2014-08-13 Thread José Luis Ledesma
+1000 El 13/08/2014 14:50, "Jason Antman" escribió: > > > > On Thu, Jul 31, 2014 at 9:21 AM, jcbollinger > wrote: > >> >> >> >>> That being said... don't run via cron. >>> >> >> >> ... if all you want it for is provisioning. For Puppet's core use -- >> ongoing configuration management -- there

Re: [Puppet Users] Re: Puppet uses catalog of node B for node A

2014-08-08 Thread José Luis Ledesma
Hi, If I understand correctly you have an include java|tomcat inside the init.pp of each class definition? I don't really know what is happening but I bet that if you remove these lines it will start to work correctly. Regards, El 08/08/2014 15:12, "Helmut Rickel" escribió: > Hello John, > I m

Re: [Puppet Users] What is the best way to have puppet send email notification?

2014-08-08 Thread José Luis Ledesma
Hi, Look at the tagmail feature https://docs.puppetlabs.com/puppet/latest/reference/config_file_tagmail.html Hth, El 08/08/2014 21:59, "Stella" escribió: > Hi guys, > > I am now having a working Puppet 3.6.2 environment with Dashboard and > MCollective. > > Now I am wondering what is the best

Re: [Puppet Users] Install MCollective -- What are the basic components?

2014-08-07 Thread José Luis Ledesma
Hi, A couple of side notes. 1. You can use the mcollective::plugin defined type to install the different agents 2. It's recommended to use SSL for authentication to enhance security. ( in fact not using it is very insecure) Regards, El 07/08/2014 22:22, "Stella" escribió: > It works as a charm

Re: [Puppet Users] Puppetdb query. Search two classes

2014-08-07 Thread José Luis Ledesma
If you have puppetdb you can query it through curl or puppetdbquery https://docs.puppetlabs.com/puppetdb/latest/api/query/tutorial.html https://github.com/dalen/puppet-puppetdbquery El 07/08/2014 14:45, "Maksim Podlesniy" escribió: > How I may find all nodes with two specified classes? Example

Re: [Puppet Users] hiera variable problem

2014-08-07 Thread José Luis Ledesma
Hi, What's the content of /etc/puppet/hieradata/common.yaml ? Does the hiera command line works? Something like: $ hiera nom Regards, El 07/08/2014 13:34, "Christian Charpentier" escribió: > Hi, > > I've been using hiera for several weeks now and all was working fine til > few days ago when i

Re: [Puppet Users] Hiera backend and web interface for multiple users

2014-08-06 Thread José Luis Ledesma
Hi, Couchdb has a native web interface( futon) and allows permissions at db level. You can have different DBs in your hierarchy to allow different groups to add their data. Regards, El 05/08/2014 16:52, "Andy Taylor" escribió: > Hi, > > What do you all use as your Hiera backend? We've been usi

Re: [Puppet Users] Change Hostname on Puppet Master

2014-08-05 Thread José Luis Ledesma
+1 You don't need to re-register all clients. Just generate a new cert for the master with both old and new name and sign in. Regards El 05/08/2014 19:29, "Nan Liu" escribió: > On Tue, Aug 5, 2014 at 10:11 AM, Gabriel Filion > wrote: > >> Hey there, >> >> On 05/08/14 10:45 AM, Danny Roberts wro

Re: [Puppet Users] Mcollective puppet-agent doesn't execute commands from custom facts

2014-08-02 Thread José Luis Ledesma
And setting full path for ec2-metadata too? El 02/08/2014 22:02, "Maxim Nikolaev" escribió: Tried also full path with ec2-region hardcoded /opt/aws/bin/ec2-describe-tags --region us-east-1 -O KEY -W SEC_KEY --filter \"resource-id=$(ec2-metadata -i | cut -d \" \" -f2)\" --filter \"key=Role\" | cu

Re: [Puppet Users] Mcollective puppet-agent doesn't execute commands from custom facts

2014-08-02 Thread José Luis Ledesma
Hi Probably mco is not loading you environment variables ( like PATH) and this produces this behavior. If the ec2-describe-tags commands is not in the usual path, try exec it with the full path in the fact. Also you can check if the ec2_region fact is get correctly from mco. Hth El 02/08/2014

Re: [Puppet Users] Re: duplicated resource with an exported resource

2014-07-31 Thread José Luis Ledesma
t; name=> $::hostname, > > ensure => present, > > ip => $secondary_ip, > > } > > > > host { $::hostname : > > ensure => present, > > ip => $primary_ip > } > > > On Tue, Jul 15, 2014 at 3:22 PM, José Lui

Re: [Puppet Users] Re: How to use variables in a puppet class

2014-07-25 Thread José Luis Ledesma
If you interpolate variable you have to use " instead of '. So it should be source => "puppet:///modules/repo/rhel-${::lsbdistrelease}_64.repo", Regards, El 25/07/2014 01:44, "Vikas Kumar" escribió: Hi CD, Just tried these too, but somehow puppet is not honoring any variables in the resources.

Re: [Puppet Users] Banned from RHN due to exessive connections; would like opions on my solution.

2014-07-22 Thread José Luis Ledesma
Hi, I dont know if it will work, but have you tried adding provider => rpm in the package resource? Regards, El 23/07/2014 02:37, "Stack Kororā" escribió: > Greetings, > > In my multiple hundred servers, I have <10 that are Red Hat based. We > recently brought them under the same management as

Re: [Puppet Users] Re: Facter unable to parse custom fact

2014-07-22 Thread José Luis Ledesma
You are confusing custom and external facts, as david explained. Regards, El 22/07/2014 18:33, "Maxim Nikolaev" escribió: > As I understand from Facrer 2 manual ( > http://docs.puppetlabs.com/facter/2.1/custom_facts.html#adding-custom-facts-to-facter) > I can set all custom facts to /etc/facts/

Re: [Puppet Users] Reports from puppet

2014-07-21 Thread José Luis Ledesma
Which version of puppedb are you running? If I'm not wrong, from puppetdb 2.1 catalog compilation errors are stored , but not for previous versions. Regards, El 21/07/2014 17:17, "Maxim Nikolaev" escribió: > No. I haven't this feature. > my puppet.conf looks like this: > > [main] > modules = /et

Re: [Puppet Users] Re: multiple VMs from a single node.pp file

2014-07-16 Thread José Luis Ledesma
El 16/07/2014 16:06, "Felix Frank" escribió: > > On 07/16/2014 03:04 PM, jcbollinger wrote: > > Supposed I have 200 different machines (VMs) sitting on each > > developer's desktop (rather in their VMware hypervisor)... > > 1) can they all have the same certname, so I only have to main

Re: [Puppet Users] Re: duplicated resource with an exported resource

2014-07-15 Thread José Luis Ledesma
It worked as you thought. Many thanks, perhaps the code is not so nice, but the config applied is, by far, better. Regards, El 15/07/2014 15:24, "jcbollinger" escribió: > > > On Monday, July 14, 2014 8:55:38 AM UTC-5, Kristof Willaert wrote: >> >> [snip] >> >> You will not be able to collect th

Re: [Puppet Users] Puppet CA Server

2014-07-14 Thread José Luis Ledesma
Hi, Changing the ca means that every node signed with one of the other two will need to regenerate its cert and ask for be signed again(including both not ca puppet masters) In the puppet masters that are not a ca you should add the 'ca' and 'ca_server' parameters in the puppet.conf. stop pup

Re: [Puppet Users] Re: duplicated resource with an exported resource

2014-07-14 Thread José Luis Ledesma
stname the primary > name of the hosts entry, rather than an alias. > > > John > > -- > 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 >

Re: [Puppet Users] duplicated resource with an exported resource

2014-07-14 Thread José Luis Ledesma
- > Juan Sierra Pons j...@elsotanillo.net > Linux User Registered: #257202 > Web: http://www.elsotanillo.net Git: http://www.github.com/juasiepo > GPG key = 0xA110F4FE > Key Fingerprint = DF53 7415 0936 244E 9B00 6E66 E93

Re: [Puppet Users] Checking a variable is not 'undef'

2014-07-13 Thread José Luis Ledesma
>From my point of view is better a warning when a empty string is taken as a false, than some configuration applied erroneously once upgraded to 4.0 El 13/07/2014 18:32, "Henrik Lindberg" escribió: > On 2014-13-07 14:57, Felix Frank wrote: > >> On 07/13/2014 03:36 AM, Henrik Lindberg wrote: >> >>

Re: [Puppet Users] Failed to find [host] via exec

2014-07-12 Thread José Luis Ledesma
The node classifier command is launched by the same user the runs puppet master, and normally it is the 'puppet' user. You should try running the node classifier command in the puppet master with the same user it runs. Regards El 12/07/2014 13:52, "Taylor Leese" escribió: > I probably also shou

Re: [Puppet Users] Failed to find [host] via exec

2014-07-12 Thread José Luis Ledesma
Have you tried to run the command with the same user the puppet master is running? (Usually puppet) Regards, El 12/07/2014 13:39, "Taylor Leese" escribió: > Hi all, > > I'm trying to setup an external node classifier and I'm running into an > error that I haven't been able to resolve. > > *Error

Re: [Puppet Users] Re: Checking a variable is not 'undef'

2014-07-11 Thread José Luis Ledesma
But also and empty variable is false. When I just one to check undef I do if $var!=undef { Do stuff } El 11/07/2014 18:16, "Matthew Haughton" escribió: > As noted at > http://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#undef, > "When used as a boolean, undef is false." > >

Re: [Puppet Users] Issue with Role-Profile implementation

2014-07-10 Thread José Luis Ledesma
You should specify puppet://puppet/modules/... or puppet:///modules/... Regards, El 10/07/2014 04:45, "Varun Utagikar" escribió: > Hey Daniel > > I was performing several changes to trouble shoot the issue , some where i > must have renamed the dir to file , here's my o/p after reverting to the

Re: [Puppet Users] Execute a class if a file is not present.

2014-06-26 Thread José Luis Ledesma
You can create a custom fact that reports if the tomcat is installed or not, and do the installation process in this case. Moreover you could add the tomcat version to this custom fact too. This way you will have an inventory, can decide when apply a patch and when not ... Regards, El 27/06/2014

Re: [Puppet Users] sshd configuration

2014-06-17 Thread José Luis Ledesma
I found that in order to change just some options it is far easier just to write a little ssh module with a template with only the parameters you want yo change. Regards, El 17/06/2014 10:29, "Alexander Holte-Davidsen" < alexander.david...@gmail.com> escribió: > Hi Marco, > > You should take a lo

Re: [Puppet Users] multiple puppet masters, multiple puppetdb's

2014-06-13 Thread José Luis Ledesma
The problem is that the puppetdb certificate is not for localhost, but for puppetdb hostname. You have two options: 1. Set in /etc/hosts puppetdb as alias of localhost 2. Generate a new certificate for the puppetdb with an alias for local host as valid hostname. I would prefer option 1. Regards

Re: [Puppet Users] How's life with 3.6.2?

2014-06-12 Thread José Luis Ledesma
Very nice report, we use mcollective so it will be very useful! Have you found any performance issue? I'm worried about that because our current puppet master is currently a bit overloaded. Thanks, El 12/06/2014 18:38, "Christopher Wood" escribió: > Verdict: Went fine with the usual upgrade tee

Re: [Puppet Users] Help: OpenSource Puppet DB install on RedHat 6

2014-06-10 Thread José Luis Ledesma
Hi Are you sure puppetdb is listening in 8081? Is there any firewall? Have you tried from the puppet master to do a telnet to puppetdb port 8081? Regards El 10/06/2014 22:18, "GregC" escribió: > I cannot get around the problem of connecting my Puppet Master 3.6 to > PuppetDB 2.0.1 THis is the

Re: [Puppet Users] What is the puppet way to do if I want to customize run interval of a special module

2014-06-10 Thread José Luis Ledesma
Hi, Perhaps the schedule metaparameter is what you need http://docs.puppetlabs.com/references/latest/metaparameter.html#schedule Regards El 10/06/2014 13:36, "Chrislynn Chee" escribió: > Hi all, > I would like to know how puppet admin usually do or structure the modules, > if there is a partic

Re: [Puppet Users] Can't set user password

2014-06-04 Thread José Luis Ledesma
Hi, Put the user declaration in a file, or use ' instead of " ( then you'll have to escape all ' ) The problem is that you are using ", so the shell is interpreting $6 and $salt as empty variables. Regards El 04/06/2014 15:31, "Martin Supiot" escribió: > Hi! > > I try to set a user password. I

Re: [Puppet Users] "puppet agent: applying configuration" success differs to manual command line "puppet agent -t"

2014-06-03 Thread José Luis Ledesma
Could be it is using a cached catalog? I think that when you use the -t flag no cached catalog is applied, but without it could be. Regards El 03/06/2014 17:22, "Steve Kilduff" escribió: > Hi guys, > > I've searched but not found what I'm looking for, sorry if this has been > asked before. > >

Re: [Puppet Users] Error 400 on SERVER : could not find class xxx for yyy on node yyy

2014-05-30 Thread José Luis Ledesma
Class vstar::apache should be in /etc/puppet/modules/vstar/manifests/apache.pp To allow autoloader find it. Regards, El 30/05/2014 15:48, "Christian Charpentier" escribió: > Hi, > I'm statrting using puppet with role/profile pattern and i'm facing a > problem. > I use puppet 3.4.3 with a mast

Re: [Puppet Users] Conditional Creates Attribute

2014-05-29 Thread José Luis Ledesma
Have you tried to set it to undef? El 29/05/2014 17:13, "Mark McFate" escribió: > And thank you Joes Luis, but I'm also unable to make this work. It seems > the $creates parameter must be declared in my module and when left with a > blank or nil value Puppet kicks back this error: > > Error: Par

Re: [Puppet Users] Conditional Creates Attribute

2014-05-29 Thread José Luis Ledesma
I have not tried with the creates param, but if its undef ( I.e. no one have set it) you can use it directly exec { "drush-${title}" : command => "drush ${command} ${root_option} ${uri_option} ${force_option} ${additional_options}", path=> [ '/bin', '/usr/bin' ], creates =

Re: [Puppet Users] Problem with duplicate params

2014-05-28 Thread José Luis Ledesma
The problem is that you have more than one user in the same group, so you are declaring the same group more than one time. The solution could be make use of virtual resources for your groups and realize them when needed, or make use of the "evil" defined function. Regards, El 27/05/2014 21:07, "m

Re: [Puppet Users] Facts can override variables set by puppet master

2014-05-20 Thread José Luis Ledesma
But, who can run puppet? I mean, most puppet configurations needs root, so if someone malicious is a root which is the point of being able to cheat the environment? He can do whatever wants. Regards, Hi, On Mon May 19 16:39:25 2014, jcbollinger wrote: > > > On Monday, May 19, 2014 6:06:45 AM UTC

Re: [Puppet Users] ${name} returns class name instead of resource namevar

2014-05-20 Thread José Luis Ledesma
No, it is the current $name, not the resource one. Regards, El 20/05/2014 12:36, "Francis Pereira" escribió: > When using a custom resource to deploy java $name is not the name of the > resource but the name of the class in the below mentioned example > > java::setup { "${myapplication::params:

Re: [Puppet Users] MCollective across subnets

2014-05-19 Thread José Luis Ledesma
Every node has a persistent TCP connection with the middleware server port 61613. First of all check this. Also check that the servers are time synchronize, mcollective is very sensible to time differences. Hth, El 19/05/2014 13:02, "Jonathan Gazeley" escribió: > Hi peeps, > > I recently instal

Re: [Puppet Users] Re: Calculating network address - boolean opertors

2014-05-19 Thread José Luis Ledesma
I always calculate network addresses on clients, using the ipcalc command. I don't know if it is possible in your case. Regards, El 19/05/2014 09:22, "Michael Wörz" escribió: > no, thanks split works now, > but the boolean operator > > $ok1=$iparray[0] and $nmarray[0] > > returns true inetad of

Re: [Puppet Users] YUM Provider in 3.x

2014-05-16 Thread José Luis Ledesma
Hi, I think someone said a workaround in this group that consisted in setting the arch. You can try with: package { 'openssh-server.x86_64': ensure => 'absent', } Hth, El 16/05/2014 09:54, "Paul Seymour" escribió: > Hello, > > Working through some issues with upgrading our environment

Re: [Puppet Users] Module for lsyncd - multiple syncs to be configured, but only one config file

2014-05-15 Thread José Luis Ledesma
You have declarer lsyncd class without parameters class lsyncd { Regards, El 16/05/2014 04:37, "Ugo Bellavance" escribió: > > > On Thursday, May 15, 2014 5:45:57 PM UTC-4, Jakov Sosic wrote: >> >> On 05/15/2014 09:25 PM, Ugo Bellavance wrote: >> > Hi, >> > >> > I wrote my first puppet module an

Re: [Puppet Users] Facts can override variables set by puppet master

2014-05-09 Thread José Luis Ledesma
you can use the Full qualified variable name like ::class_name::variable Regards, El 09/05/2014 13:15, "Boyan Tabakov" escribió: > Hi, > > The puppet master sets several global variables, including $environment, > $serverip, etc > ( > http://docs.puppetlabs.com/puppet/latest/reference/lang_fact

Re: [Puppet Users] "puppet apply --noop -e" and overiding facter values for testing

2014-05-08 Thread José Luis Ledesma
sers/fc389ac2-c451-434e-804e-1bbaf9e00117% >>> 40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/fc389ac2-c451-434e-804e-1bbaf9e00117%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/o

Re: [Puppet Users] puppet client server - couldnt able to verify certificate

2014-05-05 Thread José Luis Ledesma
I think there is some misunderstood here. First launch the agent, it will generate a certificate for it. Then you should sign it in the master. It seems that you did generate one in the master and sign it, and expected to be received by the client, but the certificate should be generated in the

Re: [Puppet Users] Enable puppet agent by default

2014-04-30 Thread José Luis Ledesma
There is another option, mcollective. Using cron is somewhat manual, and you have to determine whenever to run puppet to avoid a thundering herd effect. Mcollective lets you use the Mco puppet runall Where the concurrency sets how many agents run at the same time. It is resielent as cron is,

Re: [Puppet Users] Error frim DataBinding 'hiera'

2014-04-30 Thread José Luis Ledesma
Have you reviewed the minimum system requirements? http://docs.puppetlabs.com/puppet/latest/reference/system_requirements.html Regards, El 30/04/2014 15:13, "Pierre-Emmanuel Dutang" escribió: > Hello, > > I just updated my puppet to v3.5.1 and now I got an error when I run my > puppet agent: >

Re: [Puppet Users] DMZ Hosts/SSH Tunneling

2014-04-29 Thread José Luis Ledesma
I have not experience with puppet in the DMZ, but it seems a better solution without any doubt. Regards, El 30/04/2014 06:08, "Axton" escribió: > I read the presentation at > http://stroessenreuther.info/pub/Puppet_getting_started.pdf, which was > very insightful. With regard to using puppet in

Re: [Puppet Users] Custom facts variables coming out empty on manifest

2014-04-29 Thread José Luis Ledesma
Hi, Perhaps there is an environment diference between the command line and the puppet agent process. The first one I think is the path one. I would try to launch the php-config --version and the awk with the full-path. If that doesn't work, I would check if the php-config-version needs any envir

Re: [Puppet Users] puppet sub-folders

2014-04-29 Thread José Luis Ledesma
Moreover you may create subdirectories, for example if you declare the class: namex::namey::namez The autolader would look for the manifest: $moduledir/namex/manifests/namey/namez.pp Regards, El 29/04/2014 21:18, "Christopher Wood" escribió: > The answer is a qualified "yes", since little chun

Re: [Puppet Users] Any way to have puppet notify me if any files are missing from a directory?

2014-04-25 Thread José Luis Ledesma
7;t point out this feature more, because I don't > recall ever seeing it. > > > On Fri, Apr 25, 2014 at 10:54 AM, José Luis Ledesma < > joseluis.lede...@gmail.com> wrote: > >> You can use the noop parameter to avoid modifications, and the tagmail >> feature to

Re: [Puppet Users] Any way to have puppet notify me if any files are missing from a directory?

2014-04-25 Thread José Luis Ledesma
You can use the noop parameter to avoid modifications, and the tagmail feature to receive an email notification just for this resource. Regards, El 25/04/2014 16:22, "Dan Pasacrita" escribió: > Hey everyone, first I want to say that I joined this community a few days > ago and already you guys h

Re: [Puppet Users] Puppet and VMWare (API)

2014-04-24 Thread José Luis Ledesma
fe exists elsewhere > in the universe is that none of it has tried to contact us." > > Bill Waterson (Calvin & Hobbes) > > On Apr 24, 2014, at 3:00 PM, José Luis Ledesma > wrote: > > There is the Vmware orchestrator that may simplify a lot VM servers > creation

Re: [Puppet Users] A file managed by puppet that is left alone if customized

2014-04-24 Thread José Luis Ledesma
Indeed i missed it. Perhaps you can have some custom fact that returns the md5 of the files, so you can detect if it matches the replacemd5. Probably will make the manifest simpler. Regards, El 24/04/2014 19:21, "Matthias Saou" escribió: > On Thu, 24 Apr 2014 18:41:05 +0200 > J

Re: [Puppet Users] Puppet and VMWare (API)

2014-04-24 Thread José Luis Ledesma
There is the Vmware orchestrator that may simplify a lot VM servers creation tasks. Regards, El 24/04/2014 19:44, "Forrie" escribió: > > I believe this question is different from others I've seen posted (correct me if I've missed something!). > > We are looking to automate the creation of VM image

Re: [Puppet Users] Re: Sharing Puppet Functions

2014-04-24 Thread José Luis Ledesma
As John has said, there is the ppupetlabs/stdlib module the collects a lot of general function/ custom types. Perhaps you can make a pull request with your development. Stdlib is very spread along puppet users, so it could be very helpful. Regards, El 24/04/2014 15:36, "jcbollinger" escribió:

Re: [Puppet Users] A file managed by puppet that is left alone if customized

2014-04-24 Thread José Luis Ledesma
Idk if i did understand correctly, but there is the replace parameter in the file resource that may help here. Regards El 24/04/2014 15:33, "Paul Tötterman" escribió: > Hi, > > I'm managing workstations using puppet, and I was wondering if there's a > better way to do this: > > $dir = inline_tem

Re: [Puppet Users] How to apply a set of configurations to a specific host group?

2014-04-23 Thread José Luis Ledesma
There is a nice hiera-mysql module. Although from my point of view using a MySQL to resolve this problem seems a bit overkill. IMO this module is to attack some kind of existing mysql cmdb, but it's just my opinion. Regards El 23/04/2014 23:09, "Sans" escribió: > Do you have any example(s) hand

Re: [Puppet Users] Copying files between nodes

2014-04-23 Thread José Luis Ledesma
Mmm, not very used to exported resources, but perhaps if you set replace=>false in the exported resource this may work. El 23/04/2014 18:00, "warden" escribió: > Hi, > > I am trying to copy files between nodes using exported resources. > What I want to do is to copy contents of the file from node

Re: [Puppet Users] Error "Could not find certificate for"

2014-04-23 Thread José Luis Ledesma
Have you signed the certificate in the master? Which command exactly are you running? Btw I recommend to use puppet version 3 from the puppetlabs repos. El 23/04/2014 16:17, "Rupesh Shingavi" escribió: > Hello, > > I have just started to learn Puppet. > I have installed puppet master(2.7) on Cen

Re: [Puppet Users] Error while passing multidimensional array to defined type

2014-04-23 Thread José Luis Ledesma
ause 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://groups.google.com/d/ms

Re: [Puppet Users] How to apply a set of configurations to a specific host group?

2014-04-23 Thread José Luis Ledesma
Hi, You can use a default node definition, checking if the hostname is inside any of your array declarations. Regards, El 23/04/2014 12:28, "Sans" escribió: > > Hi all, > > For some historical reason, our hosts are not systematically named nor > matches with the service(s) it runs and I don't s

Re: [Puppet Users] Package fails to install while the remainder of the manifest is processed and applied.

2014-04-22 Thread José Luis Ledesma
I would try setting a notify to check if $required really got the value, or setting the array directly in the package resource. Regards, El 22/04/2014 18:35, "Adam Breaux" escribió: > Here's the relevant code (init.pp): > > class varnish { > $required = $::operatingsystem ? { > /(?i-mx:cen

Re: [Puppet Users] Re: using custom array based fact with defined type

2014-04-22 Thread José Luis Ledesma
Facter doesn't support arrays, only strings until v2.0, so the only way I know if what you did, although I usually use this form: Anyfact => value1,value2,value3 And then just split with the , Regards, El 22/04/2014 20:10, "Ritesh Nanda" escribió: > Hello Toni , John > > Thanks for your help.

Re: [Puppet Users] Error while passing multidimensional array to defined type

2014-04-22 Thread José Luis Ledesma
With this hiera data I think I would be a lot easier to use the create_resources function. Regards, El 22/04/2014 18:13, "Martin Alfke" escribió: > Hi Konstantin, > On 22.04.2014, at 15:27, Konstantin Boyanov wrote: > > > Hello, > > > > I am running into the following problem - I have a Puppet M

Re: [Puppet Users] Package fails to install while the remainder of the manifest is processed and applied.

2014-04-22 Thread José Luis Ledesma
Could be that the selector is not returning what you expect? Btw i think that its easier to use $::osfamily Regards, El 22/04/2014 18:35, "Adam Breaux" escribió: > Here's the relevant code (init.pp): > > class varnish { > $required = $::operatingsystem ? { > /(?i-mx:centos|fedora|redhat|s

Re: [Puppet Users] How to use facter variable in node definition?

2014-04-17 Thread José Luis Ledesma
Remove the node word and you have it if $::system_role == "app-server" { .. ... include default; } Regards, El 17/04/2014 20:46, "Pawel Kilian" escribió: > Hi, > I want to use facter scope variable to use in my manifest files for puppet > > for now i have something like this: > > node 'web-

Re: [Puppet Users] Dashboard: New Install: Report processor failed - permission denied

2014-04-16 Thread José Luis Ledesma
Hi, You should be using puppet 3.x if you are just starting. Anyway, have you created the node in the dashboard with his fqdn? Regards, El 16/04/2014 19:25, "Will Button" escribió: > Hi all, > Installed puppet open source 2.7.23 and puppet dashboard. > I have agents successfully talking to the

Re: [Puppet Users] Hiera arry into ERB template

2014-04-16 Thread José Luis Ledesma
Hi, First, hiera_array function if for creating an array looking for the key in every hiera hierarchy, if the values are just on one level, you should use the hiera function. Second, the problem here is the way erb templates print arrays, so just a matter of format. Regards, El 16/04/2014 18:31,

Re: [Puppet Users] Strange Messages from Puppetmaster

2014-04-11 Thread José Luis Ledesma
For example this source => "puppet:///ntp/ntpd.conf", Should be source => "puppet:///modules/ntp/ntpd.conf", Regards, El 11/04/2014 17:30, "Sandro von Matterhorn" escribió: > Hi everyone, > > we're getting strange messages from our Puppetmaster, without knowing, what > they mean: > > > > pup

Re: [Puppet Users] agent not able to communicate to master

2014-04-11 Thread José Luis Ledesma
Does the other nodes work? If not review that the puppet master is up & running. If its the only node failing review firewalls. Regards El 11/04/2014 06:24, "Ankita kumari" escribió: > [root@puppetagentappd /]# sudo puppet agent --test > Info: Caching certificate for puppetagentappd.eng.vmware

Re: [Puppet Users] Puppet certification PPT-202

2014-04-02 Thread José Luis Ledesma
Someone know the score to pass? I'll examine next week Regards El 02/04/2014 12:17, "Julien Deloubes" escribió: > Hello Nathan, > indeed i noticed that the cert was updated to reflect the Puppet 3 new > features and what a change! > I can write manifests with the new best practices for coding in

Re: [Puppet Users] puppet class require fails depending on declaration order

2014-04-02 Thread José Luis Ledesma
mail to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/f2766983-529b-4fd7-a3c0-6f48efd45f25%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/f2766983-529b-4fd7-a3c0-6f48efd45f25%40googlegro

Re: [Puppet Users] CloudFormation/puppet/hiera integration..

2014-04-01 Thread José Luis Ledesma
Hiera is really great, but if you have to configure diferent parameters per host the yaml backend could be a nightmare.. Note that i talk about the backend, you can switch it to a nosql database ( couchdb, redis) or sql( mysql) or ldap ... Regards, El 01/04/2014 22:26, escribió: > Hello all,

Re: [Puppet Users] Failed to realize virtual resources

2014-03-28 Thread José Luis Ledesma
Well, the define has changed its name, the file should be named addvirtualuser.pp to enable the autoloader load it. Anyway if it is in the same init.pp it should work. Are you sure the class virtualuser is included ? Are you sure $virtual is true? I am not sure about that, but I think you should

Re: [Puppet Users] puppet-3.4.3-1.el6.noarch error:Could not evaluate: Could not retrieve information from environment production source

2014-03-28 Thread José Luis Ledesma
Right, my bad El 28/03/2014 21:04, "jcbollinger" escribió: > > > On Friday, March 28, 2014 9:59:33 AM UTC-5, Jose Luis Ledesma wrote: >> >> Perhaps it is the ; >> >> It should be nothing being the last parameter or a , >> > > No, the semicolon is allowed as a separator between two resource > dec

Re: [Puppet Users] Assign group membership in a module or conditionally?

2014-03-28 Thread José Luis Ledesma
Realize some of them User <| groups == 'wheel' and tag== 'web'|> { groups = ['wheel', 'apache'] } As said i don't really like this option. El 28/03/2014 19:53, "Martin Langhoff" escribió: > On Friday, March 28, 2014 2:30:31 PM UTC-4, Jose Luis Ledesma wrote: > >> I would really like to

Re: [Puppet Users] Assign group membership in a module or conditionally?

2014-03-28 Thread José Luis Ledesma
Mmmm another option could be set a custom fact that returns all the groups that exista and a user may have, and make use of it defining the virtual resource. El 28/03/2014 20:08, "José Luis Ledesma" escribió: > Realize some of them > > User <| groups == 'wheel' an

Re: [Puppet Users] Assign group membership in a module or conditionally?

2014-03-28 Thread José Luis Ledesma
I would really like to know what other people may suggest, the only thing that comes to my mind is to make use of tags for your users. Regards El 28/03/2014 19:24, "Martin Langhoff" escribió: > Scenario - we have modules: > - our_users: defines all the (virtual) users (sysadmins, support, > dev

Re: [Puppet Users] Failed to realize virtual resources

2014-03-28 Thread José Luis Ledesma
From http://docs.puppetlabs.com/puppet/latest/reference/lang_defined_types.html Type definitions may also be placed inside class definitions; however, this limits their availability to that class and is not recommended for any purpose. This is not formally deprecated in this version of Puppet, but

Re: [Puppet Users] puppet-3.4.3-1.el6.noarch error:Could not evaluate: Could not retrieve information from environment production source

2014-03-28 Thread José Luis Ledesma
Perhaps it is the ; It should be nothing being the last parameter or a , Regards El 28/03/2014 15:08, "BravePig2013" escribió: > Hi All, I am newbie to puppet. when I try to source file from the puppet > master, I met the following problem that almost make me crazy. I have tried > many methods

  1   2   >