Re: [Puppet Users] Re: "path" fact reordering

2014-05-05 Thread Fabio Coatti
Thanks for the hint! This behaviour comes from different env setup for different situations (say, command line, cron, etc). No functional differences but fact are correctly changed. Thanks again for the hint. It was indeed obvious :) 2014-05-01 16:26 GMT+02:00 jcbollinger : > > > On Wednesday, A

Re: [Puppet Users] Re: Dynamically assign files to hiera hierarchy

2014-05-05 Thread Felix Frank
On 05/02/2014 09:32 PM, Vincent Miszczak wrote: > If I use a single role for a node(can be achieved by hiera("role") and > %{role}), I have to write 3 roles : app,database,appanddatabase and put > classes in them. Then, when I change the settings for database, I have > to write the changes in every

Re: [Puppet Users] Hiera error apply catalog

2014-05-05 Thread Felix Frank
On 04/28/2014 11:06 PM, mike wrote: > > But when i check data depending returns nil Yeah, well, isn't 'nil' just saying that the lookup did fail? You may wish to enable debug logging, Hiera has some handy debug messages that may help you trace the lookup to get a clue on why it's failing. --

Re: [Puppet Users] how to perform in puppet: service start - mod config - service restart

2014-05-05 Thread Felix Frank
On 04/28/2014 08:24 AM, Lito K wrote: > I was wondering if someone can give me a hint how to solve this > dependency cycle issue. Every resource is synced and/or refreshed at a set time during catalog evaluation. You cannot have multiple refreshes of the same resource. Therefor, the usual workaro

Re: [Puppet Users] Puppetmaster Logrotate isn't working

2014-05-05 Thread Felix Frank
On 04/29/2014 06:13 PM, willi.feh...@home24.de wrote: > The problem is that the logrotate does not create a new masterhttp.log. We > tried it with Puppet-3.4.2, 3.4.3 and 3.5.1. So, that is a logrotate problem then? Maybe ask those guys? masterhttp.log...are you running webrick? Thanks, Felix

Re: [Puppet Users] Custom fact displays with brackets and double quotes, eg [""]

2014-05-05 Thread Felix Frank
Hi, is this machine also running a different facter version? You may wish to report this as a bug at https://tickets.puppetlabs.com/ Thanks, Felix On 04/30/2014 07:28 PM, Ryan Anderson wrote: > I have a ruby custom fact that when queried with 'facter -p mysite' > displays as expected (eg TX), b

Re: [Puppet Users] Re: Looking for a better way to use hiera hashes than create_resources

2014-05-05 Thread Felix Frank
On 04/30/2014 04:28 PM, Alex Scoble wrote: > I sometimes wonder how the moving target that is the Puppet DSL slows > adoption of the product. Well, I don't know what part of the discussion led you to the conclusion of the Puppet DSL being a "moving target", but I can confidently state that it is j

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

2014-05-05 Thread Ramkumar Nagaraj
We tried to setup puppet client-server architecture setup by installing puppet-server (through Yum repository) in puppet master and puppet (through Yum repository) in another server (client) machine. During this client is trying to receive the signed certificate from puppet-master server it f

[Puppet Users] New module release on the Forge. Clients still fetch the old ?

2014-05-05 Thread Samir Cury
Hi, Maybe I'm overlooking something basic, but I apparently successfully updated this module : https://forge.puppetlabs.com/samircur... To version 1.2.0 but still : [root@darkstar ~]# puppet module install samircury-kvm Notice: Preparing to install

Re: [Puppet Users] how to perform in puppet: service start - mod config - service restart

2014-05-05 Thread Johan De Wit
On 05/05/14 14:12, Felix Frank wrote: On 04/28/2014 08:24 AM, Lito K wrote: I was wondering if someone can give me a hint how to solve this dependency cycle issue. Every resource is synced and/or refreshed at a set time during catalog evaluation. You cannot have multiple refreshes of the same r

[Puppet Users] "The certificate retrieved from the master does not match the agent's private key." The master and agent in this case are on the same machine.

2014-05-05 Thread Dan Pasacrita
So for whatever reason I've been seeing this error. I'll usually see it when doing puppet commands like "puppet agent -t" or "puppet cert clean [Agent Hostname]". Error: Could not request certificate: The certificate retrieved from the master does not match the agent's private key. Certificate

Re: [Puppet Users] "The certificate retrieved from the master does not match the agent's private key." The master and agent in this case are on the same machine.

2014-05-05 Thread Felix Frank
Hi, first off, because your post is really, really confusing: Is this the agent running on the master machine? Or are other agents afflicted as well? On 05/05/2014 04:04 PM, Dan Pasacrita wrote: > So for whatever reason I've been seeing this error. I'll usually see it > when doing puppet commands

Re: [Puppet Users] "The certificate retrieved from the master does not match the agent's private key." The master and agent in this case are on the same machine.

2014-05-05 Thread Dan Pasacrita
Hey, sorry, I kinda posted this in a hurry since I've been taking a ton of calls during, sorry about that. This error is occurring with every single agent apparently, including the agent on the master machine. On Monday, May 5, 2014 10:07:31 AM UTC-4, Felix.Frank wrote: > > Hi, > > first off, b

Re: [Puppet Users] "The certificate retrieved from the master does not match the agent's private key." The master and agent in this case are on the same machine.

2014-05-05 Thread Felix Frank
Okay, thanks. I don't really see how messing up permissions on the master would cause such behavior. Generally, the error means that your agent has lost its private key, generated a new one, yet the master still retains a certificate it has signed for use with an older private (agent) key. To fi

Re: [Puppet Users] Re: Looking for a better way to use hiera hashes than create_resources

2014-05-05 Thread Alex Scoble
If you are trying to follow Puppet Labs recommended best practices, it's definitely a moving target. On Mon, May 5, 2014 at 5:37 AM, Felix Frank wrote: > On 04/30/2014 04:28 PM, Alex Scoble wrote: > > I sometimes wonder how the moving target that is the Puppet DSL slows > > adoption of the prod

Re: [Puppet Users] Custom fact displays with brackets and double quotes, eg [""]

2014-05-05 Thread Ryan Anderson
Oops, I should have been more specific. All AIX versions exhibit this behavior and all are consistently running facter 1.7.5 and puppet open source 3.4.3; both are installed via ruby gem. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsu

Re: [Puppet Users] "The certificate retrieved from the master does not match the agent's private key." The master and agent in this case are on the same machine.

2014-05-05 Thread Dan Pasacrita
Well my thinking was that since the certificate is stored in the home directory, messing with the home directory somehow changed the masters certificate, which is why none of the agent's keys match it. I really don't know though, I'm kinda new to puppet and linux. In any case, I can't clean the

Re: [Puppet Users] "The certificate retrieved from the master does not match the agent's private key." The master and agent in this case are on the same machine.

2014-05-05 Thread Felix Frank
What do you mean by "home directory"? To clean an agent's certificate, use puppet cert clean, but with with the agent's FQDN as its argument, not the master's FQDN. On 05/05/2014 04:35 PM, Dan Pasacrita wrote: > Well my thinking was that since the certificate is stored in the home > directory, me

Re: [Puppet Users] "The certificate retrieved from the master does not match the agent's private key." The master and agent in this case are on the same machine.

2014-05-05 Thread Dan Pasacrita
By "home directory" I mean /home, where the directory /home/dpasacrita, and where (importantly) /home/dpasacrita/.puppet is. This is where the certificates are stored if I'm understanding this right, and this issue is apparently with the master's certificate. I cannot run any puppet cert clean

Re: [Puppet Users] "The certificate retrieved from the master does not match the agent's private key." The master and agent in this case are on the same machine.

2014-05-05 Thread Felix Frank
Ah, so you're running the master from an unprivileged user. That makes a lot of sense now. And yes, this is most disturbing. Would it be feasible to renew all your certificates? Because the current state looks messed up beyond reason :-) Cheers, Felix On 05/05/2014 05:03 PM, Dan Pasacrita wrote

Re: [Puppet Users] Overriding specific values within a Hiera hash

2014-05-05 Thread jcbollinger
On Friday, May 2, 2014 5:40:24 PM UTC-5, Matthew Burgess wrote: > > On 2 May 2014 23:04, Andreas Ntaflos > > wrote: > >> Sound like you want to install deep-merge (packaged by Puppetlabs for >> Debian as "ruby-deep-merge" and for RedHat as "rubygem-deep-merge") on >> the Puppet master, set ":mer

Re: [Puppet Users] Re: temp dir fact

2014-05-05 Thread liu.cy
it can be %SystemRoot%\TEMP, aka c:\windows\temp On Monday, May 5, 2014 2:22:49 PM UTC+8, Cristian Falcas wrote: > > I need it for a windows module: some predetermined path where to > download a file. I have no idea if in windows there is such a place, > like unix tmp (meaning is not relativ to

[Puppet Users] Re: Exported Concat::Fragment not using concat_basedir

2014-05-05 Thread jcbollinger
On Friday, May 2, 2014 5:29:13 PM UTC-5, treydock wrote: > > I am having a very odd issue when exporting Concat::Fragment resources. > They export just fine, but if the node that exported the resource tries to > also realize that resource, the fragment loses the path defined by > "concat_base

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

[Puppet Users] Re: Hiera question: Nested hash

2014-05-05 Thread jcbollinger
On Friday, May 2, 2014 4:46:56 PM UTC-5, Sans wrote: > > In my module, I have something like this to installed some base packages: > > package { >> 'rpm-mon-ntp': >> ensure => latest, >> require => Yumrepo[ "mon-repo-test" ]; >> >> 'rpm-mon-utils': >> ensure => installed,

[Puppet Users] Re: temp dir fact

2014-05-05 Thread jcbollinger
On Saturday, May 3, 2014 12:50:11 PM UTC-5, Cristian Falcas wrote: > > Hello, > > Does puppet have a variable for temporary directories for each os, or > I need to write a custom fact with this? > > You can get the complete list of facts that any node will provide to Puppet by running "facte

[Puppet Users] Re: Hiera question: Nested hash

2014-05-05 Thread Sans
Thanks John for showing me a way to do it. I haven't tried that yet but meanwhile, I was also trying the "define type" but different way. Do you think this is a better data structure? rpm_mon_base_pack: > base-pkg1: > rep: mon-repo-test > rpm: rpm-mon-ntp > ver: lates

Re: [Puppet Users] Error reporting gripe.

2014-05-05 Thread Felix Frank
So, I can sort of reproduce. I created a file at the URL puppet:///modules/demo/var/www/index.html Initially, I tried what you suggested and just mistyped my URL as puppet:///modules/demo/ar/www/index.html The error is humane enough: Error: /Stage[main]/Main/File[/tmp/index.html]: Could not eval

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

2014-05-05 Thread Brian Mathis
The problem is that your variable names are being returned from the $(cat...) after bash has already evaluated the environment, so it's taking it as a literal string and trying to execute the command. To get bash to interpret it as a variable, use 'eval': eval $(cat test_values | tr '\n' ' ' )

[Puppet Users] Building Amazon Linux RPMs (PRs, quick howto)

2014-05-05 Thread Jeff Bachtel
I made the really minor tweaks required to make RPMs that build on and are compatible with Amazon's RedHat-derived Linux distribution (for EC2). Understandably PL might not have the customer demand for azn-linux builds, but given how little the patches touch, I hope they can get integrated so t