Re: [Puppet Users] Dictating class evaluation order

2015-07-20 Thread Gareth Rushgrove
Hi Andrew On 20 July 2015 at 00:38, Andrew Langhorn andrew.langh...@digital.cabinet-office.gov.uk wrote: I don't know why, but when I renamed the class, things started to work. Very odd. Maybe I should just upgrade to the latest stable 3.x release (3.8.0, I think), or even 4. See Peter's

Re: [Puppet Users] Using client-side hiera data in puppet agent while using a puppet master

2015-07-20 Thread Angel L. Mateo
El 17/07/15 a las 09:31, bjoern pohl escribió: Hi, we're currently transforming some ugly perl-based management scripts (which placed some config data on the client and then configured something with it) to puppet. While it is definitely the best idea point to keep all that config data on the

Re: [Puppet Users] Dictating class evaluation order

2015-07-20 Thread Andrew Langhorn
Morning Gareth, Ah - I re-read that, and that makes more sense, especially since renaming the class fixed it. I'll give it a go to neaten up the module; am sure it will work. Thanks both! :) A On Monday, 20 July 2015, Gareth Rushgrove gar...@morethanseven.net wrote: Hi Andrew On 20 July

Re: [Puppet Users] puppetserver does not sign its certificate

2015-07-20 Thread Trevor Vaughan
Hmm...I think you'll need to run 'puppet cert' by hand to set up the CA prior to firing off the Puppet Server. I don't know that it's a bug, but it's certainly a documentation issue if you have to do this. Thanks, Trevor On Sun, Jul 19, 2015 at 5:22 PM, Felix Frank

[Puppet Users] Re: No certificates in /var/lib/puppet/ssl/ca/signed

2015-07-20 Thread Richard Walker
I have the same thing, got it working but it's a mystery why puppet isn't recreating /var/lib/puppet/ssl when running it, not seen this before. The only certs on my server are under /ssl/. So is this a 3.8 thing or are CentOS7 thing or (in my case) a Digital Ocean droplet thing? Very

[Puppet Users] puppet collectors plus own data

2015-07-20 Thread Thomas Polnik
Hi, I am using saz/ssh [1], it works fine with exported resources (host keys) and autogenerated /etc/ssh/ssh_known_hosts ... But I did not find any solution to add host keys from systems, where puppet is not installed (it is needed in my case). Is there any possibility to add any own

[Puppet Users] Case of the missing Ruby file

2015-07-20 Thread Peter Berghold
Hi folks, I've bravely stepped out into the world of writing tests for my Puppet modules to ensure code quality. Have run into an issue. My spec/spec_helper.rb has one line. require 'puppetlabs_spec_helper/module_spec_helper' I run rake spec and this happens: spec/spec_helper.rb:1:in

Re: [Puppet Users] Newbie question regarding the file resource

2015-07-20 Thread Peter Berghold
I think I understand what you are driving at, and your logic seems good to me. When I was doing web hosting for people I had a class that handled installing and configuring Apache and a separate module called sites that handled setting up the web sites using the apache::vhost define that

[Puppet Users] Newbie question regarding the file resource

2015-07-20 Thread Fabien Delpierre
Hi folks, I'm super new to Puppet but decently experienced with Chef, I'm trying to apply my Chef logic to some things I'm trying to do in Puppet but I've hit what is probably a simple snag. And perhaps I shouldn't be trying to apply Chef logic, but hear me out first! Firstly, I'm following

[Puppet Users] Re: puppet facts and mcollective are incompatible

2015-07-20 Thread Peter Huene
On Monday, July 20, 2015 at 2:12:45 PM UTC-7, Fabrice Bacchella wrote: I used to fill mcollective yaml facts with a simple facter -p foo.yaml. But with facter 3, -p is gone, one should use 'puppet facts --render-as yaml' instead. For this (and a few other reasons), the breaking change

Re: [Puppet Users] puppet facts and mcollective are incompatible

2015-07-20 Thread Fabrice Bacchella
And I can use puppet to generate it, I don't run puppet with cron or as a daemon. Le 20 juil. 2015 à 23:12, Fabrice Bacchella fabrice.bacche...@orange.fr a écrit : I used to fill mcollective yaml facts with a simple facter -p foo.yaml. But with facter 3, -p is gone, one should use

[Puppet Users] puppet facts and mcollective are incompatible

2015-07-20 Thread Fabrice Bacchella
I used to fill mcollective yaml facts with a simple facter -p foo.yaml. But with facter 3, -p is gone, one should use 'puppet facts --render-as yaml' instead. So far so good, but mcollective can't use this command output : yaml_facts.rb:31:in `rescue in block in load_facts_from_source' Failed

[Puppet Users] rspec question: how to test that no resource exists with certain parameters?

2015-07-20 Thread johnson . earls
RSpec question for all the helpful folks here: How do I test that there is no resource in the catalog that matches certain parameters? I know how to test that a specific resource does not exist, or a specific resource does not match certain parameters. I want to test that, for example, there

[Puppet Users] Re: Puppet server failing on invalid UTF-8 facts

2015-07-20 Thread Peter Huene
On Monday, July 20, 2015 at 1:23:20 PM UTC-7, Peter Huene wrote: On Monday, July 20, 2015 at 1:16:07 PM UTC-7, Federico Agnelli wrote: Hi Giorgio, I have the same problem with a puppet client on Intel NUC5i5RYH. All other clients (on different hardware) with the same puppet version work

[Puppet Users] Re: Puppet server failing on invalid UTF-8 facts

2015-07-20 Thread Federico Agnelli
http://www.intel.it/content/www/it/it/nuc/nuc-kit-nuc5i5ryh.htmlHi Giorgio, I have the same problem with a puppet client on Intel NUC5i5RYH. All other clients (on different hardware) with the same puppet version work fine. My puppet version for both agent and server is 4.2.0, the problem

[Puppet Users] Re: Puppet server failing on invalid UTF-8 facts

2015-07-20 Thread Federico Agnelli
Hi Giorgio, I have the same problem with a puppet client on Intel NUC5i5RYH. All other clients (on different hardware) with the same puppet version work fine. My puppet version for both agent and server is 4.2.0. Version 4.1.0 was ok. Did you find a fix? Thanks, Federico -- You received

[Puppet Users] Re: Puppet server failing on invalid UTF-8 facts

2015-07-20 Thread Peter Huene
On Monday, July 20, 2015 at 1:16:07 PM UTC-7, Federico Agnelli wrote: Hi Giorgio, I have the same problem with a puppet client on Intel NUC5i5RYH. All other clients (on different hardware) with the same puppet version work fine. My puppet version for both agent and server is 4.2.0.

Re: [Puppet Users] rspec question: how to test that no resource exists with certain parameters?

2015-07-20 Thread Hunter Haugen
There is no helper built in to rspec-puppet to do this, but you can do it by using an rspec expect() around a catalogue.resources check: it has no file resources with ensure = directory do expect(catalogue.resources.select { |r| r.type == File r[:ensure] == directory }).to be_empty end On

Re: [Puppet Users] Newbie question regarding the file resource

2015-07-20 Thread Felix Frank
On 07/20/2015 06:17 PM, Fabien Delpierre wrote: I've tried multiple things: puppet:///modules/sensei/mysite.conf Well that's nice, but earlier in your mail, you stated that mysite.conf is in the 'myfiles' module. The URL you need is puppet:///modules/myfiles/mysite.conf Your reasoning is

Re: [Puppet Users] rspec question: how to test that no resource exists with certain parameters?

2015-07-20 Thread Johnson Earls
Thanks, I'll try that. - Johnson On Monday, July 20, 2015 at 1:30:14 PM UTC-7, Hunter Haugen wrote: There is no helper built in to rspec-puppet to do this, but you can do it by using an rspec expect() around a catalogue.resources check: it has no file resources with ensure = directory do

[Puppet Users] Advice on Puppet update to 4

2015-07-20 Thread Stack Kororā
Greetings, First, a short intro. :-) Last year I invested quite a bit of time building out a puppet infrastructure. I have +150 Scientific Linux 6 and RHEL 6 servers running puppet 3.7.1. It has been working really well concidering that I basically haven't touched it since last October

Re: [Puppet Users] Case of the missing Ruby file

2015-07-20 Thread Felix Frank
Hi, so you installed puppet_spec_helper as a gem. This should work, and I'm not certain what the clean approach of making it work in this scenario would be. I believe require 'rubygems' might help, but I half remember some issues that can crop up with this. Personally, I would create a Gemfile,

Re: [Puppet Users] Case of the missing Ruby file

2015-07-20 Thread Trevor Vaughan
Hi Peter, I would *highly* recommend using something like RVM to manage your ruby installations for testing. This way you can ensure a clean environment and also be sure that you don't have any conflicting modules or environment pollution. I'm guessing that there's something wrong with your

[Puppet Users] is there any way to get rspec to tell you the contents of the catalog on a failure?

2015-07-20 Thread Johnson Earls
Another rspec question: Is there any way to get rspec to tell you, when a test fails, what the contents of the catalog was, at a high level at least, that generated the failure? I've got a code block that looks right to me, and an rspec test that looks right to me. the test is failing and I

Re: [Puppet Users] Newbie question regarding the file resource

2015-07-20 Thread Fabien Delpierre
Peter, Felix, Thank you for your answers! I guess my improperly worded question was about figuring out whether Puppet has a concept similar to what Chef calls a wrapper cookbook. Felix, the sensei is my actual folder name, I just substituted for generic names and may have forgotten to subst

[Puppet Users] Getting data out of hiera?

2015-07-20 Thread Russell Cecala
Hi, I use to keep all my class parameters in the default hiera data file, /var/lib/hiera/defaults.yaml, but now I need to maintain another set of nodes that would need to use different values for the class parameters in the defaults.yaml. I figured, no bug deal, just add the

[Puppet Users] puppet collectors plus own data

2015-07-20 Thread Thomas Müller
Hi thomas Saz/ssh seems to use the standard sshkey type to export the host keys. Code: https://github.com/saz/puppet-ssh/blob/master/manifests/hostkeys.pp Seems you can export the non-puppet managed keys on a puppet managed node to get it distributed. Thomas -- You received this message