[Puppet Users] puppetdb, foreman, one particular node has a problem

2013-10-15 Thread Steve Wray
I have about 75 nodes now and recently added 6 of them. They are all running Debian squeeze and all have exactly the same Puppet packages. One is giving an error when I try to enroll it: Failed to import facts: PG::UndefinedColumn: ERROR: column "environment" of relation "hosts" does not exist

Re: [Puppet Users] Re: hiera_array, structured data and multiple levels of hierarchy

2013-10-15 Thread Alex Scoble
Great thanks...still learning. On Tue, Oct 15, 2013 at 7:53 PM, David Patterson wrote: > Yes to the array. I get this error when I try: > > # Error: Could not run: Hiera type mismatch: expected Array and got Hash >> > > As for the pipe, it preserves newlines: > > http://en.wikipedia.org/wiki/YA

[Puppet Users] Re: hiera_array, structured data and multiple levels of hierarchy

2013-10-15 Thread David Patterson
Yes to the array. I get this error when I try: # Error: Could not run: Hiera type mismatch: expected Array and got Hash > As for the pipe, it preserves newlines: http://en.wikipedia.org/wiki/YAML#Newlines_preserved On Tuesday, October 15, 2013 7:38:50 PM UTC-7, Alex Scoble wrote: > > Dumb que

[Puppet Users] Re: Status of Data in modules

2013-10-15 Thread John Julien
On Friday, October 11, 2013 7:12:32 PM UTC-5, Chuck wrote: > > What would be nice but not necessary: > > 1) defined variable automatically have classname added to avoid global > conflicts. > > > eg. > > Module: apache > > variable: port > > becomes global hiera: apache::port > +1 Defining

[Puppet Users] Re: hiera_array, structured data and multiple levels of hierarchy

2013-10-15 Thread Alex Scoble
Dumb question...have you tried loading the data into a hiera array since that's apparently what it's looking for? Another dumb question...what's the pipe (|) for in your yaml data? Unfortunately, the hiera documentation on the Puppet site is a bit thin and I don't see that in the examples. Tha

Re: [Puppet Users] Re: Status of Data in modules

2013-10-15 Thread John Julien
On Tuesday, October 15, 2013 8:08:10 AM UTC-5, jcbollinger wrote: > > > > I'm not saying that categorically getting rid of ::params classes is a > viable target. In fact, I don't really understand why it was ever an > objective in the first place. On the other hand, I don't see why it makes

[Puppet Users] Re: hiera_array, structured data and multiple levels of hierarchy

2013-10-15 Thread Alex Scoble
Yeah, I'll have to try again after upgrading to PE 3.1 which was just released. Thanks, Alex On Tuesday, October 15, 2013 3:43:00 PM UTC-7, David Patterson wrote: > > Thanks for the reply, Alex! I'm using puppet-3.3 and the nested directory > works fine...at least for more simple modules, heh

[Puppet Users] Re: hiera_array, structured data and multiple levels of hierarchy

2013-10-15 Thread David Patterson
Thanks for the reply, Alex! I'm using puppet-3.3 and the nested directory works fine...at least for more simple modules, heh! David On Tuesday, October 15, 2013 2:47:34 PM UTC-7, Alex Scoble wrote: > > I personally couldn't get hiera to work with nested directories in the > hiera.yaml. > > In

[Puppet Users] Re: What's your hiera tree look like?

2013-10-15 Thread Alex Scoble
I couldn't get hiera integrated with PE 3.0.1 to work with nested hierarchies, so this is what my hierarchy looks like: :hierarchy: - defaults - "%{clientcert}" - "%{domain}" - "%{osfamily}" - "%{environment}" - global Regards, Alex On Tuesday, March 19, 2013 2:30:16 PM UTC-7, Larr

[Puppet Users] Re: hiera_array, structured data and multiple levels of hierarchy

2013-10-15 Thread Alex Scoble
I personally couldn't get hiera to work with nested directories in the hiera.yaml. In my case the hierarchy would look like: :hierarchy: - defaults - "%{::clientcert}" - "%{::server_role}" - "%{::app_name}" - "%{::datacenter}" - global You might try it flattened like that an

[Puppet Users] Building another Puppet module for Splunk

2013-10-15 Thread Alex Scoble
Hi All, I've been working on yet another Puppet module to deploy and manage Splunk. Yep, I know that there are already many out there, but none do what I need and also work the way we work and also have control of the various conf files built in. It's still a work in progress and isn't fully d

Re: [Puppet Users] Using file and mount more efficiently

2013-10-15 Thread Forrie
Thanks for the reference, John. We need to ensure that these remote mounts are owned/grouped by specific UID/GID -- hence why I had ownership involved there. We could do this via UID/GID only (not name) if that works better? I don't understand how apply that ownership to /home/201301 would

Re: [Puppet Users] Sync data between various PuppetDB instances

2013-10-15 Thread Deepak Giridharagopal
On Thu, Oct 10, 2013 at 6:12 AM, Pablo Fernandez wrote: > Thanks Ken, > > I took a look at the Command API and seems to be quite interesting, but > it triggers a few more questions. > > As a reminder (also for others), what I wanted to do was to add exported > resources from Node_A (managed by Pup

[Puppet Users] Re: pypuppetdb 0.0.4 / puppetboard 0.0.2

2013-10-15 Thread Ellison Marks
Just upgraded, looks awesome! On Tuesday, October 15, 2013 12:07:19 AM UTC-7, Daniele Sluijters wrote: > > Hello everyone, > > It's been way to long since the release but I finally had some time to > sort a few things out and release updates to both pypuppetdb and > Puppetboard. > > For those of

[Puppet Users] Re: [mcollective] mc does not discover any nodes

2013-10-15 Thread Ellison Marks
To get the agent, you need to install mcollective-service-agent as well, not just mcollective-service-common. Don't forget to restart the mcollective daemon after installing. On Thursday, October 10, 2013 2:34:07 AM UTC-7, Vincent Nawrocki wrote: > > Hi all ! > > I'm working on mcollective for a

Re: [Puppet Users] Re: Status of Data in modules

2013-10-15 Thread Chuck
I totally agree with R.I. on this. On Tuesday, October 15, 2013 8:35:00 AM UTC-5, R.I. Pienaar wrote: > > > > - Original Message - > > From: > > To: puppet...@googlegroups.com > > Sent: Tuesday, October 15, 2013 2:08:10 PM > > Subject: Re: [Puppet Users] Re: Status of Data in modules

[Puppet Users] hiera_array, structured data and multiple levels of hierarchy

2013-10-15 Thread David Patterson
Hi all! I'm trying to setup a puppet module for sudo that will write multiple files with separate data for each file, all dependent on the hiera hierarchy. Here's the relevant portion of my hiera.yaml: > :hierarchy: > > - "datacenter/app/role/node/%{::clientcert}" > > - "datacenter/app/r

Re: [Puppet Users] Sync data between various PuppetDB instances

2013-10-15 Thread Deepak Giridharagopal
On Tue, Oct 15, 2013 at 6:51 AM, Pablo Fernandez wrote: > Hehe, sorry for the auto-reply... but I made it work, and I wanted to > post it for reference. > > The key was to add also the edges: it can't be an empty list. > > For the record, doing: > > # curl -vv -G -H "Accept: application/json" ' >

[Puppet Users] Puppet Enterprise 3.1 is now available

2013-10-15 Thread Eric Sorenson
Hello puppet-users, We're pleased to announce that Puppet Enterprise 3.1 is immediately available for download: http://puppetlabs.com/misc/pe-files/ This latest release introduces the Puppet Enterprise event inspector, a new reporting tool that identifies what changed, where and how in your env

[Puppet Users] Re: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find terminus puppetsvr for indirection catalog

2013-10-15 Thread thoule
>Warning: Unable to fetch my node definition, but the agent run will continue: >Warning: Error 400 on SERVER: Could not retrieve facts for mabosthoule-m2: Could not find terminus puppetsvr for indirection facts error changed from catalog to facts.. -- You received this message because you are

[Puppet Users] Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find terminus puppetsvr for indirection catalog

2013-10-15 Thread thoule
>Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find terminus puppetsvr for indirection catalog I had a working puppet install (new) with 2 agents working well. I added puppet dashboard and the inventory part which is also working well. However, clients

[Puppet Users] Could not find terminus puppetsvr for indirection catalog

2013-10-15 Thread Todd Houle
I had a working puppet server and added the Dashboard. Then I got the inventory part of dashboard working. Now I've got what looks like one last error I can't get past: > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find terminus mabospuppet01 for indi

Re: [Puppet Users] Facter incorrectly detecting Virtual status on Windows VM

2013-10-15 Thread Jason Harmon
Noticed that a matching issue was opened a few days ago, so I marked the one I opened as duplicate and just added a comment on the open issue instead. On Tuesday, October 15, 2013 9:11:42 AM UTC-6, Jason Harmon wrote: > > I created an issue. Never done one before so I may have balls it up a >

Re: [Puppet Users] Facter incorrectly detecting Virtual status on Windows VM

2013-10-15 Thread Jason Harmon
I created an issue. Never done one before so I may have balls it up a bit. I added you as a watcher Wasn't sure how to even properly begin with a pull request. I've barely used Git so the proper process of pulling and merging is out of my skill set right now. On Wednesday, October 9, 2013

[Puppet Users] hiera config with custom facters

2013-10-15 Thread puppeteer05
Hi guys, I am trying (and failing) at the moment to push a mysql module to client server based on a custom fact called 'env' which in this case = 'dev' I have managed to get fact to the client server successfully with a manifest (dont think there is any point in showing you the manifest seein

Re: [Puppet Users] Re: Status of Data in modules

2013-10-15 Thread R.I.Pienaar
- Original Message - > From: "jcbollinger" > To: puppet-users@googlegroups.com > Sent: Tuesday, October 15, 2013 2:08:10 PM > Subject: Re: [Puppet Users] Re: Status of Data in modules > > > > On Tuesday, October 15, 2013 12:52:39 AM UTC-5, David Schmitt wrote: > > > > On 14.10.2013 16

Re: [Puppet Users] exporting custom facts to puppet agents

2013-10-15 Thread Cristian Falcas
I've changed your g_C[:mac] to gos[:mac], because I don't know what it should do and puppet complained about it. On Tue, Oct 15, 2013 at 4:26 PM, Cristian Falcas wrote: > Put in $your_module_name/lib/puppet/parser/functions/am_running_oss.rb > > > module Puppet::Parser::Functions > newfunctio

Re: [Puppet Users] exporting custom facts to puppet agents

2013-10-15 Thread Cristian Falcas
Put in $your_module_name/lib/puppet/parser/functions/am_running_oss.rb module Puppet::Parser::Functions newfunction(:am_running_oss, :type => :rvalue ) do |args| #inFile = "/tmp/OSs.txt" inFile = args[0] gos = {} if File.exist?(inFile) open(inFile,

Re: [Puppet Users] Re: Status of Data in modules

2013-10-15 Thread jcbollinger
On Tuesday, October 15, 2013 12:52:39 AM UTC-5, David Schmitt wrote: > > On 14.10.2013 16:16, jcbollinger wrote: > > So the proposed solution at this point is: > > - enable an implicit data-binding lookup against the hiera-puppet > > backend for a value of 'classname::variable' in

Re: [Puppet Users] Sync data between various PuppetDB instances

2013-10-15 Thread Pablo Fernandez
Hehe, sorry for the auto-reply... but I made it work, and I wanted to post it for reference. The key was to add also the edges: it can't be an empty list. For the record, doing: # curl -vv -G -H "Accept: application/json" 'http://localhost:8080/v2/commands' --data-urlencode 'payload={ "command

Re: [Puppet Users] Re: External Facts on Windows with Powershell

2013-10-15 Thread Klavs Klavsen
Ticket updated :) -- 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 post to this group, send email to puppet-users@go

Re: [Puppet Users] Re: Duplicate declaration for files.

2013-10-15 Thread JuanBrein
Just my 2 cents... is better if you use stdlib -> concat function for /etc/hosts... you can have a default section for all the hosts and a customized one for specific cases. You avoid conflicts as well. Cheers On Monday, October 14, 2013 4:28:39 PM UTC+1, mike wrote: > > Hello, > I fix "the pro

Re: [Puppet Users] Sync data between various PuppetDB instances

2013-10-15 Thread Pablo Fernandez
If I try to add a fictitious resource: {\"type\": \"Service\", \"title\": \"iptables\", \"exported\": false, \"file\": \"/etc/puppet/modules/puppetdb/manifests/server.pp\", \"line\": 121, \"tags\": [\"node\", \"puppetdb\"], \"parameters\": { \"ensure\" : \"running\"} } I g

Re: [Puppet Users] Sync data between various PuppetDB instances

2013-10-15 Thread Pablo Fernandez
Ok, so I finally opted for inserting a full node from one DB into another, since getting the resources should be quite easy with a GET. But then I run into a problem when running the replace catalog command (with an empty catalog): curl -vv -G -H "Accept: application/json" 'http://localhost:8080/

[Puppet Users] pypuppetdb 0.0.4 / puppetboard 0.0.2

2013-10-15 Thread Daniele Sluijters
Hello everyone, It's been way to long since the release but I finally had some time to sort a few things out and release updates to both pypuppetdb and Puppetboard. For those of you who have no idea what this is about: * pypuppetdb is a library to work with the PuppetDB API in Python; * Puppet