[Puppet Users] Stubbing functions in Puppet rspec

2016-08-05 Thread Peter Berghold
I have this wonderful module that calls various custom functions that I've written that I'm trying to adopt RSpec testing for. After seeing it crash and burn with "function unknown" errors I took a rather meandering path and arrived here: https://github.com/TomPoulton/rspec-puppet-unit-testing So

Re: [Puppet Users] Stubbing functions in Puppet rspec

2016-08-05 Thread Trevor Vaughan
Hi Peter, See if this helps https://github.com/onyxpoint/puppet-gpasswd/blob/master/spec/unit/provider/group/gpasswd_spec.rb Thanks, Trevor On Fri, Aug 5, 2016 at 8:04 AM, Peter Berghold wrote: > I have this wonderful module that calls various custom functions that I've > written that I'm try

Re: [Puppet Users] Stubbing functions in Puppet rspec

2016-08-05 Thread Peter Berghold
ooo... that looks to be an RSpec specification for a custom type/provider? I'm going to need that! Thanks! On Fri, Aug 5, 2016 at 9:13 AM Trevor Vaughan wrote: > Hi Peter, > > See if this helps > https://github.com/onyxpoint/puppet-gpasswd/blob/master/spec/unit/provider/group/gpasswd_spec.rb

Re: [Puppet Users] Puppet web server stops after being started

2016-08-05 Thread 'Michael Wildey' via Puppet Users
Matthaus, I found that I renamed the auth.conf by mistake. Now I renamed it again and then I started the hole server again. After that I tried to start the server again in foreground. The output is attached. Now there is written "Finished TK main lifecycle, shutting down Clojure agent threads"

Re: [Puppet Users] Puppet web server stops after being started

2016-08-05 Thread Matthaus Owens
Michael, If you don't mind posting the contents of your auth.conf as well, that could help in figuring out what is going on. It looks like there is a problem with the contents of the file, but without seeing the file, it is hard to know what specifically is wrong. Thanks, Matthaus On Fri, Aug 5,

[Puppet Users] Re: Announce: Ruby 2.3 update planned for puppet-agent 1.6.0

2016-08-05 Thread Geoff Nichols
On Friday, July 29, 2016 at 5:00:26 PM UTC-7, Geoff Nichols wrote: > > Because Ruby 2.1 is approaching end-of-life (upstream bugfix support ended > March 2016), we need to move puppet-agent to a more modern Ruby version. > > If all goes well with testing, the upcoming puppet-agent 1.6.0 release