Re: [Puppet Users] hiera can't see a value on a puppet client, but the hiera app on the server can

2013-05-08 Thread Johan De Wit
Hi Eric, By default, hiera-cli uses /etc/hiera.yaml, hiera-puppet uses /etc/puppet/hiera.yaml as config file. That was my mistake starting using hiera cli for testing. Btw, "facter --puppet region" wil also work, so no need for grep anymore. On 05/09/2013 04:34 AM, Eric wrote: When I run

Re: [Puppet Users] Puppet Dashboard's ENC returning wrong hostname/parameters

2013-05-08 Thread Greg Batye
Ok, opened a ticket with more info. Same bug happened on my learning VM. http://projects.puppetlabs.com/issues/20643 On Wednesday, May 8, 2013 10:57:09 AM UTC-7, Aaron Stone wrote: > > Interesting! Let me see if this still happens in the rails3 branch. Please > file a ticket so the issue doesn'

Re: [Puppet Users] Announce: cis-puppet 0.2.0 is now available

2013-05-08 Thread Peter Brown
Awesome! Thanks Arild! I was working on implementing those with puppet in my organisation but have yet to finish them. I will definitely have a look at your implementation and may offer help with your module if I get some spare time. Pete. On 8 May 2013 02:34, Arild Jensen wrote: > Overview

[Puppet Users] Are multiple environments broken in puppet?

2013-05-08 Thread James Kyle
I started getting the following errors from my puppet master: > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter provider at /some/module/manifests/foo.pp The module would vary, but the error was always the same. I started googling, searching list

Re: [Puppet Users] Re: High Availability of Puppet server for separate geographical location

2013-05-08 Thread John Warburton
On 9 May 2013 10:59, Felipe Salum wrote: > > Easy solution would be something that would be easier to setup, or maybe > it is just me trying to complicate things. :) > > I suppose all HA solutions are difficult - they have to suit your site's definition of HA and meet cost/complexity needs. Somet

[Puppet Users] hiera can't see a value on a puppet client, but the hiera app on the server can

2013-05-08 Thread Eric
When I run puppet on a client it says it can't find a parameter in hiera, but If I run the hiera application on my puppet master and give it the same facts that my client has, it finds them just fine. Why is that? Here's how my client sees itself: [root@tag5-4-qa-sjc ~]# facter --puppet | grep re

Re: [Puppet Users] Re: High Availability of Puppet server for separate geographical location

2013-05-08 Thread Felipe Salum
Yes it works perfectly, I run 2 puppet servers and one of them is the CA using a CNAME as well for the puppet master/ca. After it is set and working it is wonderful, however until you figure out that you need to remove the ssldir, then run puppet with dns_alt_names, then sign with dns_alt_names

Re: [Puppet Users] Re: High Availability of Puppet server for separate geographical location

2013-05-08 Thread Robert van Veelen
-- Sent from my HP VeerOn May 8, 2013 19:58, John Warburton wrote: On 9 May 2013 05:57, Felipe Salum wrote: Is Puppetlabs planning some easy solution for this ?I run 12 puppet servers around the world. They work in a multiple puppet master solution where any client from any loc

Re: [Puppet Users] Re: High Availability of Puppet server for separate geographical location

2013-05-08 Thread John Warburton
On 9 May 2013 05:57, Felipe Salum wrote: > Is Puppetlabs planning some easy solution for this ? > I run 12 puppet servers around the world. They work in a multiple puppet master solution where any client from any location can work with any puppet server in any location with dns_alt_names. We hav

[Puppet Users] Re: define and exported resources - giving wrong template content

2013-05-08 Thread joe
jcbollinger is correct. Templates are evaluated on the master in response to a catalog request. Any facter values used in the template will be the values from the host requesting the catalog. In your nagios module, you export the file resource (with it's contents) from the server with the cor

Re: [Puppet Users] Help me with a local Linux account management module

2013-05-08 Thread David Reagan
So, I just mocked up what I'm thinking of doing. How do I deal with loops? From what I can Puppet doesn't let you loop through arrays. See https://gist.github.com/jerrac/5543893 for a very very very rough draft of what I'm imagining this could look like. How would you deal with multiple authoriz

Re: [Puppet Users] Help me with a local Linux account management module

2013-05-08 Thread David Reagan
>There's several ways to handle this. Generally the way it's done is via a >"custom function" that executes on the puppetmaster and injects the results of >that run into the catalog for the client. This way you can use a hash >generator. Something like >https://github.com/kwilczynski/puppet-

[Puppet Users] Re: Module for tuned-adm

2013-05-08 Thread banjer
Thanks, I was about to roll out a puppet module for tuned-adm and found this. Easy to use and working great in my environment. Cheers! On Friday, January 4, 2013 8:25:16 AM UTC-5, Romain PELISSE wrote: > > Hi all, > > tuned-adm module: https://github.com/rpelisse/puppet-tuned > > I'm using > t

Re: [Puppet Users] PuppetDB: SSL problems

2013-05-08 Thread Stefan Schulte
On Wed, 8 May 2013 07:01:56 -0700 (PDT) kl.puppetu...@gmail.com wrote: > > Error: Could not retrieve catalog from remote server: Error 400 on > SERVER: Failed to submit 'replace facts' command for gaia.local > to PuppetDB at puppetdb.local:8081: SSL_connect SYSCALL returned=5 > errno=0 state=SSLv

Re: [Puppet Users] Re: High Availability of Puppet server for separate geographical location

2013-05-08 Thread Felipe Salum
Is Puppetlabs planning some easy solution for this ? The real problem I see is that you can't separate the Puppet CA from the Puppet Master. So even that you can have multiple puppet masters, the CA must run in one of them. So if that server goes down your multiple puppet master setup is screwe

[Puppet Users] Re: define and exported resources - giving wrong template content

2013-05-08 Thread jcbollinger
On Wednesday, May 8, 2013 9:22:16 AM UTC-5, Klavs Klavsen wrote: > > Hi, > > I have an odd problem - I have a define, as an exported resource. when > puppet creates them on the central gdash host - it creates them with the > correct (client) hostname (f.ex. cat > /var/www/gdash/graph_templates

[Puppet Users] Re: How to indicate multiple dependency?

2013-05-08 Thread jcbollinger
On Wednesday, May 8, 2013 8:47:59 AM UTC-5, Bret Wortman wrote: > > > Okay, so if the class actually looks like this, say: > > class blacklisted () { > > Package { > ensure => absent, > tag => "blacklisted", > } > > package { 'pkg1': } > package { 'pkg2': } > p

[Puppet Users] Re: hiera-gpg causing big increase in catalog compile time

2013-05-08 Thread jcbollinger
On Wednesday, May 8, 2013 11:38:06 AM UTC-5, Aaron Mills wrote: > > Thought I'd drag this topic back to life rather than open a new one for > the same issue. I'm seeing pretty much the exact same behavior on my > catalog compile times. With puppet 3.1.0 and hiera-gpg 1.1.0 I'm seeing > compile

[Puppet Users] Re: Puppet agent and env variables

2013-05-08 Thread jcbollinger
On Wednesday, May 8, 2013 12:44:14 PM UTC-5, Worker Bee wrote: > > Hi Everyone; > > It appears that in Puppet 3, environment variables are not passed to the > agent. Specifically, $HOME is not defined so, if a script attempts to use > ~ , this fails becasue $HOME is no longer defined to the ag

[Puppet Users] Bug in puppetdb-ssl-setup?

2013-05-08 Thread Jeffrey Watts
I'm setting up PuppetDB for the first time (and on OpenSuSE, yay). After some tinkering I've gotten the package rebuilt and working. However, on first setup puppetdb-ssl-setup fails with the following message: # /usr/sbin/puppetdb-ssl-setup cp: cannot stat `/var/lib/puppet/ssl/private_keys/puppe

Re: [Puppet Users] Puppet Dashboard's ENC returning wrong hostname/parameters

2013-05-08 Thread Aaron Stone
Interesting! Let me see if this still happens in the rails3 branch. Please file a ticket so the issue doesn't get lost. http://projects.puppetlabs.com/projects/dashboard On Tue, May 7, 2013 at 11:17 PM, Greg Batye wrote: > Hey everyone, > > > I have an issue with puppet dashboard that I can f

Re: [Puppet Users] Announce: PuppetDB 1.3.0 Available

2013-05-08 Thread Chris Price
On Wednesday, May 8, 2013 5:31:16 AM UTC-7, Erik Dalén wrote: > > For example finding all nodes that failed their last puppet run seems like > it would need one node query and then a event query for each one. I'm guessing "last run" is something we'll bake into the query API at some point too

[Puppet Users] Puppet agent and env variables

2013-05-08 Thread Worker Bee
Hi Everyone; It appears that in Puppet 3, environment variables are not passed to the agent. Specifically, $HOME is not defined so, if a script attempts to use ~ , this fails becasue $HOME is no longer defined to the agent. This seems to have changed since 2.7. Does anyone have any feedback/adv

Re: [Puppet Users] Announce: PuppetDB 1.3.0 Available

2013-05-08 Thread Nick Lewis
On Wednesday, May 8, 2013 5:31:16 AM UTC-7, Erik Dalén wrote: > On Tuesday 7 May 2013 at 01:44, Chris Price wrote: > > * Report queries > > > > The query endpoint `experimental/event` has been augmented to support a > > > much more interesting set of queries against report data. You can n

[Puppet Users] Re: hiera-gpg causing big increase in catalog compile time

2013-05-08 Thread Aaron Mills
Thought I'd drag this topic back to life rather than open a new one for the same issue. I'm seeing pretty much the exact same behavior on my catalog compile times. With puppet 3.1.0 and hiera-gpg 1.1.0 I'm seeing compile times usually in the 60-90-second range. This is causing a lot of agent ru

Re: [Puppet Users] 2.7 -> 3.1 upgrade path?

2013-05-08 Thread Dan White
Server first. Always “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) - Original Message - From: "Bruce" To: puppet-users@googlegroups.com Sent: Wednesday, May 8,

[Puppet Users] 2.7 -> 3.1 upgrade path?

2013-05-08 Thread Bruce
Hi, We have hosts running 2.7 client, a single puppet master, and we're using Puppet Dashboard for ENC. What would be a recommended order of operations to get to 3.1 on client/server, and using PuppetDB instead? Thanks! -- You received this message because you are subscribed to the Google

Re: [Puppet Users] Having trouble with facter - "invalid argument"

2013-05-08 Thread Angel Angelov
SELinux is disabled and the commands were ran as root. Downgrading the facter to 1.6.18 version seems fixing the problem. Thank you very much for the support guys. Best Regards, Angel Angelov On Wed, May 8, 2013 at 6:20 PM, Charlie Brune wrote: > Sorry... I forgot to answer John's questions

Re: [Puppet Users] Having trouble with facter - "invalid argument"

2013-05-08 Thread Charlie Brune
Sorry... I forgot to answer John's questions (above). Facter produces the same error messages running under sudo. Also, I have SELinux turned off. [root@hogwarts ~]# *facter virtual* > Could not retrieve virtual: Invalid argument - > /sys/firmware/dmi/entries/1-0/raw > physical > [root@hogwart

Re: [Puppet Users] Having trouble with facter - "invalid argument"

2013-05-08 Thread Charlie Brune
I also did the modification that Stefan requested and my output is the same as yours: [root@hogwarts ~]# facter --debug virtual > about to execute /bin/uname -s > Could not retrieve virtual: Invalid argument - > /sys/firmware/dmi/entries/1-0/raw > about to execute /sbin/virt-what 2>/dev/null > v

[Puppet Users] deleting nodes in puppet-dashboard makes it hang

2013-05-08 Thread Klavs Klavsen
Hi, I have 51 clients in puppet-dashboard – and when I tell it to delete a node – it simply hangs forever. If I try to just open / on the puppet-dashboard website – I get a proxy timeout (I have apache in front). I end up having to kill webrick and start it again – with the node NOT being dele

Re: [Puppet Users] How to indicate multiple dependency?

2013-05-08 Thread Peter Bukowinski
The 'before' metaparameter is an inverse version of the 'require' metaparameter. Where the 'require' parameter forces the parent resource to sync *after* the indicated resource, the 'before' parameter acts as a pause button on the indicated resource (in this case, file2), preventing it from sync

[Puppet Users] Re: PuppetDB issues

2013-05-08 Thread kl . puppetuser
I accidentally double-posted this. Didn't notice poppet-users was moderated. Maybe someone can delete this one? I am not too familiar with google groups. Original: https://groups.google.com/forum/#!topic/puppet-users/877mzTGZl1A Thanks! On Wednesday, May 8, 2013 4:13:20 PM UTC+2, kl.pup...@gm

[Puppet Users] define and exported resources - giving wrong template content

2013-05-08 Thread Klavs Klavsen
Hi, I have an odd problem - I have a define, as an exported resource. when puppet creates them on the central gdash host - it creates them with the correct (client) hostname (f.ex. cat /var/www/gdash/graph_templates/dashboards/hosts/p-web01/dash.yaml) - but the content has the central gdash ho

[Puppet Users] PuppetDB issues

2013-05-08 Thread kl . puppetuser
Hi all, I'm setting up puppetdb to for storing facts et cetera. I installed puppetdb-1.3.0-1.el6.noarch.rpm on my puppetdb.local host (which is puppetized). This seems to work, service starts :). When I edit the settings on my puppetmaster (puppet.local), something goes wrong. I am following t

[Puppet Users] PuppetDB: SSL problems

2013-05-08 Thread kl . puppetuser
Hi all, I'm setting up puppetdb to for storing facts et cetera. I installed puppetdb-1.3.0-1.el6.noarch.rpm on my puppetdb.local host (which is puppetized). This seems to work, service starts :). When I edit the settings on my puppetmaster (puppet.local), something goes wrong. I am following t

Re: [Puppet Users] How to indicate multiple dependency?

2013-05-08 Thread Bret Wortman
I wasn't sure how the "before" would work in that instance -- and my experimental facilities are limited. But if the before really won't trigger until all the members of the array complete, then that sounds like the perfect solution for me. Thanks! On Wednesday, May 8, 2013 9:57:19 AM UTC-4, pm

Re: [Puppet Users] freebsd clients failing to connect to new master with ssl errors

2013-05-08 Thread Jonathan Proulx
On Wed, May 8, 2013 at 8:55 AM, Jonathan Proulx wrote: > I'm game, short of regenerating the new master's certificate & trying the > clients again anything to look at to test that theory? > > Well new certs are easy enough so went a head and generated new ones after checking CA, new server and te

Re: [Puppet Users] How to indicate multiple dependency?

2013-05-08 Thread Peter Bukowinski
On May 8, 2013, at 6:52 AM, Bret Wortman wrote: > What's the right/best way to indicate that a particular entry in a manifest > (a file in this case) depends on successful installation of over 30 packages, > all indicated in the same manifest? I could do this, but it seems cumbersome: > > pack

Re: [Puppet Users] puppet node clean using SQLite instead of PuppetDB

2013-05-08 Thread Ti Leggett
What's the interface in to the PuppetDB? Can I manually go drop those rows? On May 7, 2013, at 2:07 PM, Ti Leggett wrote: > I just tried this and ran the agent in noop and it still showed that the old, > incorrect keys were going to be installed. > > On May 7, 2013, at 2:02 PM, Deepak Giridhar

[Puppet Users] puppetlabs-products yum checksum failing

2013-05-08 Thread Matt Bucknam
This started happening yesterday: # yum repolist 2>&1 | grep puppet http://yum.puppetlabs.com/fedora/f18/products/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum http://yum.puppetlabs.com/fedora/f18/products/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Me

Re: [Puppet Users] Having trouble with facter - "invalid argument"

2013-05-08 Thread jcbollinger
On Wednesday, May 8, 2013 3:50:46 AM UTC-5, Angel Angelov wrote: > > I just want to provide some more information on this one. Recently it > started to show the following output when doing puppet runs: > puppet agent --test > /usr/share/rubygems/rubygems/custom_require.rb:36:in `require': iconv

[Puppet Users] Re: How to indicate multiple dependency?

2013-05-08 Thread Bret Wortman
On Wednesday, May 8, 2013 9:09:34 AM UTC-4, jcbollinger wrote: > > > > On Wednesday, May 8, 2013 5:52:44 AM UTC-5, Bret Wortman wrote: >> >> What's the right/best way to indicate that a particular entry in a >> manifest (a file in this case) depends on successful installation of over >> 30 pack

[Puppet Users] Re: Node definition from file (heterogeneous hostnames)

2013-05-08 Thread Robin Jonsson
Thank you for your reply. First of, we are kinda aware of that we are not using Puppet as it should be used with the "state management service". But Puppet seemed to be the a great piece of software with great capabilities. To our problem. Lets say our site.pp looks like this: #Site.pp import

[Puppet Users] Re: Node definition from file (heterogeneous hostnames)

2013-05-08 Thread jcbollinger
On Wednesday, May 8, 2013 5:36:16 AM UTC-5, Robin Jonsson wrote: > > Hi, > > We would like to specify nodes in site.pp from a file. Is this possible? > We have a script that should only be run by x nodes which can be different > from time to time. > > Any suggestions? > > I don't think I und

[Puppet Users] Re: How to indicate multiple dependency?

2013-05-08 Thread jcbollinger
On Wednesday, May 8, 2013 5:52:44 AM UTC-5, Bret Wortman wrote: > > What's the right/best way to indicate that a particular entry in a > manifest (a file in this case) depends on successful installation of over > 30 packages, all indicated in the same manifest? What is the significance to y

Re: [Puppet Users] freebsd clients failing to connect to new master with ssl errors

2013-05-08 Thread Jonathan Proulx
But I'm game, short of regenerating the new master's certificate & trying the clients again anything to look at to test that theory? Time is frequently a good place to look in crypto errors, but we rely on Kerberos for just about everything which is also very time sensitive so we're pretty scrupul

Re: [Puppet Users] Announce: PuppetDB 1.3.0 Available

2013-05-08 Thread Erik Dalén
On Tuesday 7 May 2013 at 01:44, Chris Price wrote: > * Report queries > > The query endpoint `experimental/event` has been augmented to support a > much more interesting set of queries against report data. You can now query > for events by status (e.g. `success`, `failed`, `noop`), timestamp ra

Re: [Puppet Users] Problem with hiera config

2013-05-08 Thread Dan White
That's because you have to include variables on the command line when you use hiera this way http://docs.puppetlabs.com/hiera/1/command_line.html “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterso

Re: [Puppet Users] Trouble writing authorized_keys2

2013-05-08 Thread Bret Wortman
I ended up deleting the whole .ssh directory for these users and that resolved the problem. It's also worked well on new systems now, so I think I'm out of the woods. Thanks for the pointers! On Tuesday, May 7, 2013 2:09:40 PM UTC-4, Stefan Schulte wrote: > > On Tue, 7 May 2013 10:11:44 -0400 >

[Puppet Users] How to indicate multiple dependency?

2013-05-08 Thread Bret Wortman
What's the right/best way to indicate that a particular entry in a manifest (a file in this case) depends on successful installation of over 30 packages, all indicated in the same manifest? I could do this, but it seems cumbersome: package { 'pkg1': } Package['pkg1'] -> File['file1'] package {

[Puppet Users] Node definition from file (heterogeneous hostnames)

2013-05-08 Thread Robin Jonsson
Hi, We would like to specify nodes in site.pp from a file. Is this possible? We have a script that should only be run by x nodes which can be different from time to time. Any suggestions? Thanks in advance Regard, Robin Jonsson -- You received this message because you are subscribed to th

[Puppet Users] Re: proxy required

2013-05-08 Thread Francesco
Excuse for my question I ve installed module and incuded it in file site pp. But nothin happen Where can i check llog files in puppet? Tahnk you very much again Here you are site .pp node 'rlltas05a #include screen #include run include epel On Wednesday, May 8, 2013 12:39:53 AM UTC+2, Francesco

[Puppet Users] Files from agent to agent => SSL_CA

2013-05-08 Thread udo waechter
Hello all, I am scratching my head currently on a problem. I believe this is not even supposed to work in puppet. But anyway, asking is never wrong. Here is what I would like to implement: A 'SSL Certificate authority' Much like puppet's ca, but for some reason (please don't ask), I can not us

[Puppet Users] Problem with hiera config

2013-05-08 Thread Fco CM
Hi all, I'm trying to work with hiera database in puppet and i'm having problems using %{variables} because they don't get the values and i don't know why. file hiera.yaml: cat hiera.yaml --- :backends: - yaml - puppet :hierarchy:- nodes/%{domain}/%{hostname} - os/%{oper

[Puppet Users] Re: Modules doesn't work from puppet agent.

2013-05-08 Thread Fco CM
OK, thanks for your response, it is already fixed. El martes, 7 de mayo de 2013 11:04:24 UTC+2, Fco CM escribió: > > Hi all, > > I think i'm forgetting something. > > If i do: "puppet apply manifiests/site.pp" it works perfectly, loading > modules i have include in site.pp file. > > site.pp: > >

Re: [Puppet Users] Having trouble with facter - "invalid argument"

2013-05-08 Thread Angel Angelov
I just want to provide some more information on this one. Recently it started to show the following output when doing puppet runs: puppet agent --test /usr/share/rubygems/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. notice: Ignorin

Re: [Puppet Users] Having trouble with facter - "invalid argument"

2013-05-08 Thread Angel Angelov
Hi all, I am seeing the same error recently and here's the output after the last modification: facter --debug --trace virtual about to execute /bin/uname -s Could not retrieve virtual: Invalid argument - /sys/firmware/dmi/entries/1-0/raw about to execute /sbin/virt-what 2>/dev/null value for ls

[Puppet Users] Puppet Dashboard's ENC returning wrong hostname/parameters

2013-05-08 Thread Greg Batye
Hey everyone, I have an issue with puppet dashboard that I can find a solution to. My server naming convention contains leading numbers at the beginning of the hostname. For example, 009example.com. Whenever I run “/usr/share/puppet-dashboard/external_node 009example.com” another host's

Re: [Puppet Users] facter's zpool_version errors using zfsonlinux

2013-05-08 Thread Trey Dockendorf
On May 7, 2013 4:48 AM, "Marc Fournier" wrote: > > Excerpts from treydock's message of 2013-05-06 20:04:16 +0200: > > Has anyone run into an issue with zfsonlinux >= 0.6.1 failing to work with > > the Facter zpool_version fact? I get the following error "Could not > > retrieve zfs_version: undefi

[Puppet Users] Unable to start heartbeat service

2013-05-08 Thread Rahul Khengare
Hi, I have two machine named puppetserver and db01 with CentOS-6.2(64-bit). On db01: I am configuring pacemaker and heartbeat using puppet manifests present on puppetserver. I am also automating the network settings using puppet, here i am adding the GATEWAY in "*/etc/sysconfig/network*"