Re: [Puppet-dev] Anyway to trigger cleanups when classes are removed from a host?

2017-10-05 Thread Ryan Whitehurst
On Thu, Oct 5, 2017 at 10:35 AM, James Perry wrote: > I'm using the saz/sudoers as well and it removes, say ERPM10-20, when I > remove the user from the host, exactly as expected. > > What doesn't happen is the user ERPM10-20 isn't removed from the server. > > Let me try to see if I can put it an

Re: [Puppet-dev] Need for feedback regarding sort_merged_arrays vs sort_merge_arrays lookup behavior

2017-07-31 Thread Ryan Whitehurst
On Mon, Jul 31, 2017 at 3:53 AM, Martin Alfke wrote: > Hi, > > we (example42) are in need of feedback regarding sort_merged_arrays vs. > sort_merge_arrays when having to support multiple Puppet versions. > > http://www.example42.com/2017/07/31/sort_merged_array-fix/ > > Given that sort_merge_arra

Re: [Puppet-dev] Re: odd log entry warning: com.puppetlabs.http.client.HttpClientException: Request cancelled

2017-07-28 Thread Ryan Whitehurst
On Fri, Jul 28, 2017 at 9:01 AM, Mike Jeski wrote: > Cheers mate. This version of PE is actually running java 7. > Ah, well in that case bumping up the MaxPermSize will have an effect, but the problem is still almost certainly caused by too low of a heap size, so you should still read the infor

Re: [Puppet-dev] Re: odd log entry warning: com.puppetlabs.http.client.HttpClientException: Request cancelled

2017-07-27 Thread Ryan Whitehurst
On Thu, Jul 27, 2017 at 1:37 PM, Mike Jeski wrote: > Cheers, > the -XX:MaxPermSize= was there as part of the pe-puppetserver package. I > merely raised the value to 512m from 256m. > > Are you saying it is syntactically incorrect? > It's not syntactically incorrect, it just has no effect on Ja

Re: [Puppet-dev] Most Spec tests fail if using fail('some error') to test with and_raise(Puppet::Error, /some error/)

2017-07-26 Thread Ryan Whitehurst
On Wed, Jul 26, 2017 at 11:59 AM, James Perry wrote: > Can anyone assist my confusion on how to use is_expected.to > compile.and_raise(Puppet::Error, /some error/)? > > I have a class where I have fail('some error') and it is only calls class > ABC if parameters A=1, B=2, C=3, which I am using to

Re: [Puppet-dev] It is possible to mock / stub a local variable in the module being tested?

2017-07-25 Thread Ryan Whitehurst
urrent directory or whatever the mechanism is). The specific implementation isn't really important, and that means, for example, you could change it in some way so that it doesn't use the intermediate variable without having to change the test. > On Tuesday, July 25, 2017 at 5:59:50

Re: [Puppet-dev] It is possible to mock / stub a local variable in the module being tested?

2017-07-25 Thread Ryan Whitehurst
On Tue, Jul 25, 2017 at 2:33 PM, James Perry wrote: > I'm not sure if it can be done, but I am trying to test a case where I > take an array of values and use stdlib's delete to remove one value before > iterating over it. The class will fail if the removed value is present. > That all works fine

Re: [Puppet-dev] calling functions from (ruby-)functions and puppet data types

2017-07-24 Thread Ryan Whitehurst
On Mon, Jul 24, 2017 at 8:02 AM, Peter Meier wrote: > Hi All, > > I'm stumbling over two problems, while trying to port over a custom > hiera backend from hiera 3 to hiera 5. > > I was able to simplify the problem I have to a simple example and I > think it shows > > a) Documentation is wrong > b

Re: [Puppet-dev] Ephemeral Resources

2016-12-12 Thread Ryan Whitehurst
On Fri, Dec 9, 2016 at 5:45 PM, Trevor Vaughan wrote: > This makes sense but it *is* compile order dependent though. Therefore care > has to be taken in ensuring that all shared_data are available prior to full > resource realization in the catalog. > > This is why the ordering relationship matter

Re: [Puppet-dev] Ephemeral Resources

2016-12-08 Thread Ryan Whitehurst
On Thu, Dec 8, 2016 at 7:28 AM, Trevor Vaughan wrote: > So, in theory, ephemeral resources would only have relationships on items > that need them for data and/or building purposes. > > We already have this problem and, as more items start getting managed, we're > going to run into more issues wit

Re: [Puppet-dev] PQL, puppetdb and tags set with tag()

2016-08-02 Thread Ryan Whitehurst
On Sun, Jul 31, 2016 at 3:05 PM, R.I.Pienaar wrote: > hello, > > I am trying to selectively find classes using PQL that has a certain > parameter. > > class foo($server=true) { > } > > So with PQL I have no idea how to match only foo classes where server = true, > it > appears from errors that i

Re: [Puppet-dev] Re: Euro/London Presence (was: Re: Re: The Future of Puppet [Was: Deprecation logs])

2016-04-13 Thread Ryan Whitehurst
On Wed, Apr 13, 2016 at 10:43 AM, Thomas Gelf wrote: > Last time was at last years PuppetConf, had a very nice discussion, do > not remember with whom. There I have been told that this could be part > of the upcoming virtual classroom trainings. I realized right a couple > of minutes ago that ther

Re: [Puppet-dev] Re: The Future of Puppet [Was: Deprecation logs]

2016-04-12 Thread Ryan Whitehurst
On Tue, Apr 12, 2016 at 10:54 AM, Dean Wilson wrote: > AWS: Over the last 5 years I've deployed a -lot- of AWS and spoke to a > lot of people about it and unless they are a large enterprise > forklifting their current environment over or looking to run a few > bits of code at instance time, and ju

Re: [Puppet-dev] Re: How strict do you want puppet to be?

2016-02-24 Thread Ryan Whitehurst
On Wed, Feb 24, 2016 at 5:58 AM, Henrik Lindberg wrote: > On 24/02/16 11:49, Trevor Vaughan wrote: >> >> I'm also a fan of per module which can override a global setting. >> >> If it could be part of the metadata.json, that would be ideal and would >> allow for attestation on the Forge if appropri

Re: [Puppet-dev] How strict do you want puppet to be?

2016-02-23 Thread Ryan Whitehurst
On Tue, Feb 23, 2016 at 3:22 PM, Walter Heck wrote: > On Tuesday, February 23, 2016 at 11:31:18 PM UTC+1, Ben Ford wrote: >> >> Would it be possible in this scheme to mark strict mode per class? I could >> mark my own code as being strict and therefore get compile time failures >> when I make a ty

Re: [Puppet-dev] Accessing variables from templates in wrapped defines

2015-08-12 Thread Ryan Whitehurst
John Bollinger writes: Shocking. To the best of my understanding, it should not work in EPP any more than it does in ERB or Puppet DSL. If it does work in EPP then that would be a bug, and it would be unwise to rely on that bug to remain unfixed. Note that I was referring to accessing res

Re: [Puppet-dev] Accessing variables from templates in wrapped defines

2015-08-11 Thread Ryan Whitehurst
Martin Alfke writes: How can I access the variable from the first define? I can change the second define to have another parameter so it knows about the template variable. Is there any other solution available? It's not exactly the same, but this works now, using EPP instead of ERB: sco