Re: [Puppet Users] PDK on bionic Ubuntu

2019-01-28 Thread Peter Berghold
David, Removing ~/.pdk did the job. I had already tried removing Gemfile.lock thinking that was the issue. Works good now. thanks On Mon, Jan 28, 2019 at 10:53 AM David Schmitt wrote: > This Gemfile works on my debian machine, which means we can exclude a > whole bunch of potential

[Puppet Users] ensure_packets not working

2019-01-28 Thread Jochen Haeberle
Hi, I am using serverless puppet apply on some nodes. I prepared a set of manifests using forge plugins. I developed everything using Vagrant quite fine. Now I put my code via git on a debian 9.7 VM with puppet 6.2 and am getting the following errors: Error: Evaluation Error: Error while

[Puppet Users] How to compare two strings/Arrays

2019-01-28 Thread Abhishek singh
Hello Group, I am trying to use facts like interfaces and based on the available interfaces perform a common task. Please help me out for below: 1. How strings from core facts and local variable can be compared? For example if interfaces has "eth0, lo, .." and i want to match from it. 1.

[Puppet Users] Re: TrustedInformation expected a certificate - issue

2019-01-28 Thread Tibor Ölvedi
Hi Ren, I see the same message on my setup (incl. a reverse proxy responsible for external ssl termination) as well. I'd assume that means, that puppetserver couldn't authenticate the client, it just assumes the client's identity by the header "X-Client-DN" recieved from the authenticating

Re: [Puppet Users] PDK on bionic Ubuntu

2019-01-28 Thread David Schmitt
This Gemfile works on my debian machine, which means we can exclude a whole bunch of potential problems. As next step, try removing your `Gemfile.lock` and the `/home/peter/.pdk/cache/ruby/` directory. I hope that helps. Cheers, David unrelated PS: the changes you made to require hiera 3.5.0 in

Re: [Puppet Users] PDK on bionic Ubuntu

2019-01-28 Thread Peter Berghold
Gemfile source ENV['GEM_SOURCE'] || 'https://rubygems.org' def location_for(place_or_version, fake_version = nil) git_url_regex = %r{\A(?(https?|git)[:@][^#]*)(#(?.*))?} file_url_regex = %r{\Afile:\/\/(?.*)} if place_or_version && (git_url = place_or_version.match(git_url_regex))

Re: [Puppet Users] PDK on bionic Ubuntu

2019-01-28 Thread David Schmitt
please also provide the Gemfile as I've asked above. Without that it's impossible to reproduce locally and/or diagnose. On Mon, Jan 28, 2019 at 3:03 PM Peter Berghold wrote: > Yes that was done in a module created by PDK originally. > > Here is the debug output > > peter@saltycowdawg:

Re: [Puppet Users] PDK on bionic Ubuntu

2019-01-28 Thread Peter Berghold
Yes that was done in a module created by PDK originally. Here is the debug output peter@saltycowdawg: mediawiki]:(master): pdk test unit --debug pdk (INFO): Using Ruby 2.5.1 pdk (INFO): Using Puppet 6.0.2 pdk (DEBUG): Checking for missing Gemfile dependencies. pdk (DEBUG): Using

Re: [Puppet Users] PDK on bionic Ubuntu

2019-01-28 Thread David Schmitt
Hi Peter, is the module compatible to the PDK? That is, have you created the module with the PDK, and/or ran `pdk convert`/`pdk update` successfully on it? If no, please do so before trying to run any other PDK commands in a module. If yes, please capture the full output of the command you're