[Puppet Users] Hiera data in mongodb backend: schema question

2013-08-30 Thread Beeny
I'm thinking about creating a web service to provide hiera data. The backend I'm looking into is Mongodb. Front end would implement hiera-http. Does anyone have any recommendations on the mongodb schema and how it would look. I checked out some articles online for hierarchical data in mongodb bu

Re: [Puppet Users] MultiNode Openstack deployement using Puppet Module

2013-08-30 Thread Dan Bode
On Fri, Aug 30, 2013 at 3:42 AM, JK wrote: > Hi All, > > I want to deploy openstack mult node deployment on 2 physical node with 2 > NIC on each of them. I have tried stackforge openstack module. It installed > properly but due to some reason i couldn't launch VM instance. > without some log exe

Re: [Puppet Users] puppetlabs/openstack

2013-08-30 Thread Dan Bode
it's really hard to look at the parameters and tell if something is missing. I would check the service logs for clues. first have a look at: /var/log/nova/nova-compute.log On Thu, Aug 29, 2013 at 3:27 AM, Thomas Bendler wrote: > Hi @all, > > I'm trying to setup an openstack test cluster with

Re: [Puppet Users] rspec-puppet not working

2013-08-30 Thread Guy Knights
Ok, I found the solution - it was a simple case of adding the path to the rspec bin directory to my PATH. Rake is using the -S switch, which uses PATH to find the rspec binary. Thanks, Guy On Fri, Aug 30, 2013 at 4:23 PM, Guy Knights wrote: > Do I need to replace the entire contents of spec_hel

Re: [Puppet Users] rspec-puppet not working

2013-08-30 Thread Guy Knights
Do I need to replace the entire contents of spec_helper.rb with that file? Also, do I need to change my rake file from the following content? require 'rake' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = 'spec/*/*_spec.rb' end On Fri, Aug 30, 2013 at 4:20

Re: [Puppet Users] rspec-puppet not working

2013-08-30 Thread Ashley Penney
As an alternative to the rspec-puppet-init stuff try installing the 'puppetlabs_spec_helper' gem and then update spec_helper.rb to be: require 'puppetlabs_spec_helper/module_spec_helper' Then you can just 'rake spec' and see if that works out better for you. On Fri, Aug 30, 2013 at 6:58 PM, Guy

Re: [Puppet Users] Roles/profiles and hiera

2013-08-30 Thread Ramin K
On 8/30/2013 3:48 PM, Frederiko Costa wrote: Hi everyone, Do you guys know any article/doc talking about the use of roles/profiles approach with hiera? I'm particularly interested in how to organize the manifests when having multiple data centers, parametized classes and wants to use hiera. Be

[Puppet Users] rspec-puppet not working

2013-08-30 Thread Guy Knights
I'm trying to get rspec-puppet working and have run into a problem. I have a VM running ubuntu lucid, have installed rubygems 1.3.5 from the apt package and have install rspec-puppet (and other required gems), and rake, using gem install. I've run rspec-puppet-init in the module I want to test,

[Puppet Users] Roles/profiles and hiera

2013-08-30 Thread Frederiko Costa
Hi everyone, Do you guys know any article/doc talking about the use of roles/profiles approach with hiera? I'm particularly interested in how to organize the manifests when having multiple data centers, parametized classes and wants to use hiera. Being even more specific, how to organize the cod

[Puppet Users] Incorrect return code for failed exec

2013-08-30 Thread Igor Berger
Hello, I'm running puppet agent standalone on Windows. The last step in the manifest is "exec { 'start_service': command => "sc start MyService" }". When the service has a problem and doesn't start, Puppet logs: /Stage[main]//Exec[start_service]/returns (err): change from notrun to 0 failed:

[Puppet Users] Nagios server automating

2013-08-30 Thread mike
Hello, i 'm try automatizando my nagios monitoring i've running puppet with puppetDB and postgres and this running ok. The problem that present in this moment is the nagios structure in the server with generate puppet for example: When I connect my node agent (puppet agent --test) and my nagios

Re: [Puppet Users] Creating Windows services

2013-08-30 Thread Igor Berger
For posterity, here's what I ended up with (no graceful service stop): $process_name = 'myprocess' $service_name = 'myservice' $package_source = 'C:/source' $package_target = 'C:/target' $service_config = "start= auto binPath= \"$package_target/bin/$process_name.exe\"" $service_exists = "po

Re: [Puppet Users] Hiera and hiera-gpg

2013-08-30 Thread Rich Burroughs
Your manifests look the same. You do a hiera lookup just as you would if you weren't using the GPG integration. It's just another data store for hiera. You do need to set that up, as other people have mentioned. But it's no different in the manifests. On Fri, Aug 30, 2013 at 6:30 AM, Worker Bee

Re: [Puppet Users] Hiera and hiera-gpg

2013-08-30 Thread Stefan Heijmans
did you read this; http://www.craigdunn.org/2011/10/secret-variables-in-puppet-with-hiera-and-gpg/ -- 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

[Puppet Users] MultiNode Openstack deployement using Puppet Module

2013-08-30 Thread JK
Hi All, I want to deploy openstack mult node deployment on 2 physical node with 2 NIC on each of them. I have tried stackforge openstack module. It installed properly but due to some reason i couldn't launch VM instance. Can anyone suggest the proper step by step guide to configure, setup and

Re: [Puppet Users] Hiera and hiera-gpg

2013-08-30 Thread Worker Bee
I am looking for some manifest examples, if anyone has any to share! On Fri, Aug 30, 2013 at 7:16 AM, Richard Clark wrote: > On Thu, Aug 29, 2013 at 05:47:41PM -0400, Worker Bee wrote: > > I am having a bit of difficulty implementing hiera-gpg; particularly with > > accomplishing the deencrypti

Re: [Puppet Users] Best practices for infrastructure

2013-08-30 Thread Martin Langhoff
On Thu, Aug 29, 2013 at 9:02 AM, jcbollinger wrote: > The master will always choose the node block to use based on the client's > SSL certname (spelled $::clientcert in Puppet DSL). Oh, that is considerably safer than what I feared. Thanks for the clarification. My comments earlier in this threa

Re: [Puppet Users] Re: Problem of ordering with exported files

2013-08-30 Thread jcbollinger
On Thursday, August 29, 2013 4:59:16 PM UTC-5, François Lafont wrote: > > Le 28/08/2013 16:53, jcbollinger wrote : > > >> As a result, I have deduced that this code below was correct *and* not > >> redundant: > >> > >> > >> # 1. One declaration. > >>

Re: [Puppet Users] Re: Share data between classes/modules, best practices

2013-08-30 Thread Luca Gioppo
Since I need to store things like Db passwords (used on DB node to create stuff and on the app_server node to establish the connection) I could use either a hash dedicated to generic DB stuff or a hash for passwords and in this way I could also use hiera-gpg All too simple. Thanks Luca Il gior

[Puppet Users] Re: Could not find certificate Error: header too long

2013-08-30 Thread Luca Gioppo
SOLVED on puppet master there was a 0 size certificate request that caused all the problem even with puppet cert list I got no good output. Removed the unwanted file and all works again. Could it be a not so clear error message? May be telling something more could help solve the problem. Luca I

Re: [Puppet Users] Re: Share data between classes/modules, best practices

2013-08-30 Thread Drew Blessing
On Tuesday, August 27, 2013 7:26:41 PM UTC-5, François Lafont wrote: > > I thought about another way with the extlookup function. > > --- > snmp: > community: extvalue_community > > monitoring: > community: extvalue_community > > And in a common.csv file: > > extvalue_community,abcd1234

[Puppet Users] Get the date and the state of the last run with puppet 2.6

2013-08-30 Thread François Lafont
Hi, On Debian Squeeze, I would like to get the date and the state of the last run of puppet agent. On Debian Squeeze, we have: ~# puppet agent --version 2.6.2 Unfortunately, with this version the "lastrunfile" (/var/lib/puppet/state/last_run_summary.yaml) doesn't exist. Nevertheless, is there

Re: [Puppet Users] Hiera and hiera-gpg

2013-08-30 Thread Richard Clark
On Thu, Aug 29, 2013 at 05:47:41PM -0400, Worker Bee wrote: > I am having a bit of difficulty implementing hiera-gpg; particularly with > accomplishing the deencryption in my manifests. Can anyone either provide > a simple example or point me to a good resource? I have searched alot and > am stil

[Puppet Users] Could not find certificate Error: header too long

2013-08-30 Thread Luca Gioppo
I'm having a strange issue: A new machine created this morning showed thi error: ON PUPPET AGENT [root@wso2greg ~]# puppet agent --environment=production --verbose --no-daemonize --debug Debug: Puppet::Type::User::ProviderUser_role_add: file rolemod does not exist Debug: Puppet::Type::User::Pr

Re: [Puppet Users] Puppet under HA Environment

2013-08-30 Thread Matthew Burgess
On 30 August 2013 10:42, Matthew Burgess wrote: > > So, instead of running puppet in daemon mode, I'd look to use something > like mcollective to control when the agents check in with the master. > You could of course just set up a cron job on each host, ensuring they check in at different times.

Re: [Puppet Users] Puppet under HA Environment

2013-08-30 Thread Matthew Burgess
In your situation, I'd be tempted to not run the puppet agent in daemon mode at all so that you can retain full control of when the agents will check in. I can't see how the splay option will help avoid concurrent checkins: Imagine HA node 1 is rebooted for whatever reason and comes back up at 12

Re: [Puppet Users] Re: Share data between classes/modules, best practices

2013-08-30 Thread Luca Gioppo
On dependency: My view is that many modules require you to install another module for working (let's take concat for example). I like as a module developer to release modules that "depend" on official modules from puppetlabs if possible and if able to contribute to them becouse there ale lots o

[Puppet Users] Re: passing hiera data to custom fact

2013-08-30 Thread Luca Gioppo
You are right is not a node fact but an "env" datum, so I developed a function that get me the IP address of a Hostname and assigned to a variable of the node. Thanks Luca Il giorno mercoledì 28 agosto 2013 15:41:10 UTC+2, jcbollinger ha scritto: > > > > On Wednesday, August 28, 2013 3:58:00 AM