[Puppet-dev] Re: Custom Hiera Interpolation Functions

2018-04-18 Thread Henrik Lindberg
On 18/04/18 03:56, adam.gard...@magicmemories.com wrote: So, I'm aiming to have a method of interpolating Facter facts in Hiera data files that works more or less exactly like the `scope` lookup function, except that if the Facter fact is not defined, this interpolation should result in Hiera m

[Puppet-dev] Re: Ephemeral resources

2018-04-16 Thread Henrik Lindberg
"after all resources processed" creates new or modifies existing resources? Also, should it run after collection/overrides or before? - henrik Trevor On Mon, Apr 16, 2018 at 5:00 PM, Henrik Lindberg mailto:henrik.lindb...@puppet.com>> wrote: On 16/04/18 17:38, Trevor V

[Puppet-dev] Re: Ephemeral resources

2018-04-16 Thread Henrik Lindberg
On 16/04/18 17:38, Trevor Vaughan wrote: How difficult would it be to create a third type of resource which is an 'ephemeral resource' whose only purpose is data collection on a host to be used by some other collector? These items would not be part of the catalog or added to the graph but wou

[Puppet-dev] Re: Feature Flags location

2018-02-16 Thread Henrik Lindberg
On 16/02/18 04:56, Juan Hoyos wrote: Hi there! In the COMMITTERS.md [0] file it is clearly stated that Puppet uses Feature Flags as the primary opt-in behavior, but cannot find a clear location where these are being used. In defaults.rb [1] I see configuration settings without no explicit dis

[Puppet-dev] Re: Puppetserver, never-ending requests and watchdogs

2017-09-12 Thread Henrik Lindberg
On 21/08/17 09:22, Nacho Barrientos wrote: Hi, I'd like to bring up a point that was raised during the resolution of a ticket. The idea is to hopefully trigger a discussion and derive actions from it, if necessary. Bugs like the one described in PUP-7848 [0] (for which there's a fix already

[Puppet-dev] Re: lookup from external script

2017-08-21 Thread Henrik Lindberg
On 21/08/17 09:26, Peter Meier wrote: Hi all, I have a bunch of ruby script that are munging data around, part of that data is based out of hiera. Until now, with hiera 3, I just required hiera in my ruby script, called lookup with a certain scope and I got my data out of hiera. Now looking fo

[Puppet-dev] Re: Hiera Merge

2017-08-10 Thread Henrik Lindberg
On 10/08/17 20:48, ggun wrote: Thanks, but the main point to merge the hash is that the sub hash header value is not fixed in the example I have mentioned as esa-user-profile-service or esa-group-service. It can be anything. I need to make the code free from using direct Key value . So 'wa

[Puppet-dev] Re: Hiera Merge

2017-08-09 Thread Henrik Lindberg
On 09/08/17 01:10, ggun wrote: Hi Experts, I have a requirement as below. I need to create a Hash from below hiera data. was_data: hs3sourcepath: 'glic.binaries/websphere' hdaresponse_file: /opt/software/WAS8.5.5.10_Install.xml hibmagentpath: /opt/software/agent.installer.linux.gtk.x8

[Puppet-dev] Re: So how exactly the immutable hashes are supposed to be used?

2017-07-25 Thread Henrik Lindberg
On 13/07/17 19:00, Mariusz Gronczewski wrote: Hi, I've been slowly converting old 3.x codebase (which has seen days of 0.24...) to 4.x and there is a lot of following pattern used for hashes:' $hash = { "some" => "defaults" } if $thing_one == "is_true" { $hash["

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

2017-07-24 Thread Henrik Lindberg
> On 24 Jul 2017, at 22:29, Peter Meier wrote: > >> Now, the reason your call on line 74 >> >>call_function('lookup', key, 'Hash', 'hash',{}) >> >> fails is that you have to pass in a ruby object for the type, not a >> string representation of the type. There's probably a better way that >

[Puppet-dev] Re: Announce: Puppet 5 Platform Available!

2017-06-28 Thread Henrik Lindberg
On 28/06/17 16:31, Trevor Vaughan wrote: I'm seeing a lot of Warning: Defining "data_provider": "hiera" in metadata.json is deprecated. How do we successfully support both Puppet 4.7 (LTS) and Puppet 5 (Today) without this garbage popping up at every run? I don't want to kill any *real* deprec

[Puppet-dev] Re: Puppet 4 function dispatch

2017-05-23 Thread Henrik Lindberg
On 23/05/17 20:21, Dean Wilson wrote: Hi, I'm currently trying to write a Puppet 4, EPP, version of https://forge.puppet.com/deanwilson/multitemplate but I'm having an issue with the dispatch rules I'd like to use. In order to support multiple template file names, and provide values for the te

[Puppet-dev] Re: listing datatypes

2017-04-03 Thread Henrik Lindberg
On 31/03/17 22:49, Thomas Hallgren wrote: The problem is that there is no known list. Loaders builds their set of type (the list) in response to the types being referenced during evaluation. Different loaders will have different set of types. So what list is it you want to present to the user? At

[Puppet-dev] Re: Extend data_provider lookups to eyaml in the 4.7.x Puppet implementation

2016-12-13 Thread Henrik Lindberg
On 12/12/16 22:17, Stan Chan wrote: Hi Puppet Devs, I'm trying to extend the data_provider lookup types to support eyaml for the v4 implementation of Hiera. Has anyone started down this path and/or can provide some suggestions as to how best to extend the 4.7.x codebase to support this? Thanks

[Puppet-dev] Re: Sensitive[T] types

2016-08-30 Thread Henrik Lindberg
On 30/08/16 15:15, R.I.Pienaar wrote: hello, I've been trying to figure out what these Sensitive types are all about based on https://github.com/puppetlabs/puppet-specifications/blob/master/language/types_values_variables.md#sensitivet Best I can tell there isn't yet docs on docs.puppet.com fo

[Puppet-dev] Re: list all available functions by input data type

2016-07-30 Thread Henrik Lindberg
For 3.x functions this is impossible as they do not have type information. (You would have to call each function with each data type and see if it fails. Or, you would have to parse the ruby code and then via static analysis of the ruby code try to determine if a data type is acceptable or not)

[Puppet-dev] Re: Facter config file

2016-05-23 Thread Henrik Lindberg
On 23/05/16 22:06, Eric Sorenson wrote: On Wed, 2 Mar 2016, Henrik Lindberg wrote: I would very much like to be able to type facts using the puppet type system. While this could be done in other places, a Facter config would be very useful to have server side when compiling as the compiler can

[Puppet-dev] Re: server facts

2016-05-17 Thread Henrik Lindberg
the node's parameters, and then become both global variables (for backwards compatibility reasons), and in $facts. Hope that explains a bit and that it helps you. Best, - henrik Corey On Sunday, May 15, 2016 at 3:58:15 PM UTC-7, Henrik Lindberg wrote: On 15/05/16 23:53, Corey Osman

[Puppet-dev] Re: server facts

2016-05-15 Thread Henrik Lindberg
On 15/05/16 23:53, Corey Osman wrote: Hi, I want to retrieve server_facts as documented below but the puppet node face doesn’t seem to create a variable called $server_facts in the facts hash. https://docs.puppet.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#serverfacts-variable

[Puppet-dev] Re: Puppet RFC 23 - XPP Files

2016-04-05 Thread Henrik Lindberg
On 30/03/16 18:24, Eric Sorenson wrote: Hi, I've just posted a new Puppet RFC that describes pre-parsed and pre-validated Puppet files, akin to '.pyc' files for Python. It's called XPP and the doc is open for comments here: https://docs.google.com/document/d/17SFn_2PJYcO5HjgA4R65a5ynR6_bng_Ak5W5

[Puppet-dev] Re: Puppet RFC 23 - XPP Files

2016-04-04 Thread Henrik Lindberg
On 04/04/16 19:42, Thomas Gelf wrote: Probably not evaluated, because that's where from my understanding the "it's no longer data" starts. If I'm wrong on that: nice. If not, just out of curiosity: is evaluation in Ruby expensive? I forgot - yes evaluation in Ruby is also slow. - henrik -- V

[Puppet-dev] Re: Puppet RFC 23 - XPP Files

2016-04-04 Thread Henrik Lindberg
On 04/04/16 19:42, Thomas Gelf wrote: Am 04.04.2016 um 03:21 schrieb Henrik Lindberg: We are happy if we initially only get 5-10% out of this... And this is where I currently disagree. Very often I invest lots of time for just 1%. But being able to run without a fragile caching layer could be

[Puppet-dev] Re: Puppet RFC 23 - XPP Files

2016-04-03 Thread Henrik Lindberg
On 02/04/16 01:18, Thomas Gelf wrote: Hi Henrik, thanks a lot for your response! Am 01.04.2016 um 20:21 schrieb Henrik Lindberg: The C++ implementation is several orders of magnitudes faster than the ruby implementation. i.e. something silly like tens of thousands of times faster. No doubt

[Puppet-dev] Re: Puppet RFC 23 - XPP Files

2016-04-01 Thread Henrik Lindberg
On 01/04/16 04:02, Thomas Gelf wrote: Hi Eric, your dedication in getting Puppet faster is really appreciated. My post is absolutely not in favor of XPP, but please don't get me wrong: it is meant to be a constructive contribution to the current design process. In my personal opinion we have a

[Puppet-dev] Re: Puppet RFC 23 - XPP Files

2016-03-30 Thread Henrik Lindberg
On 30/03/16 23:12, Jeremiah Powell wrote: ASTs don't need to be built on a node-by-node basis (unless you meant manifest-by-manifest basis Well, manifest-by-manifest where the manifest will vary depending on the node the compile job is depending upon. Reviewing the code I get the impre

[Puppet-dev] Re: PUP-5296

2016-03-13 Thread Henrik Lindberg
On 14/03/16 00:59, Alex Harvey wrote: Hi all, I have just discovered the bug PUP-5296 using the latest Puppet 4 and the Puppet Labs CentOS 7 vagrant box. This bug, reported 6 months ago, breaks idempotence in any module that tries to use an Init-style service in the wonderful world that is Syst

[Puppet-dev] Re: RFC: deprecating the 'resource_types' endpoint in Puppet Server

2016-03-11 Thread Henrik Lindberg
On 11/03/16 15:06, Chris Price wrote: On Fri, Mar 11, 2016 at 3:54 AM, Erik Dalén mailto:erik.gustav.da...@gmail.com>> wrote: The API looks good to me. Will this be available as a command line tool (standalone one, not contacting a master)? That would be useful for scripts and loc

[Puppet-dev] Re: Facter config file

2016-03-01 Thread Henrik Lindberg
On 01/03/16 19:52, Eric Sorenson wrote: I've been thinking about a config file for Facter, which has historically not been run-time configurable. The two problems in front of me that seem applicable are: * Sometimes, certain facts are just plain bad to collect and users would like to prevent th

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

2016-02-25 Thread Henrik Lindberg
t 3+. Thanks, Trevor On Thu, Feb 25, 2016 at 5:31 PM, Henrik Lindberg mailto:henrik.lindb...@puppetlabs.com>> wrote: On 25/02/16 22:08, John Bollinger wrote: On Thursday, February 25, 2016 at 8:55:01 AM UTC-6, Trevor Vaughan wrote: Hmm.

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

2016-02-25 Thread Henrik Lindberg
On 25/02/16 22:08, John Bollinger wrote: On Thursday, February 25, 2016 at 8:55:01 AM UTC-6, Trevor Vaughan wrote: Hmm. I think, as long as it is documented, then whatever behavior is deterministic is fine. ' I think that there is value in the following resolutions:

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

2016-02-25 Thread Henrik Lindberg
On 25/02/16 15:08, Gary Larizza wrote: On Wednesday, February 24, 2016, Gary Larizza mailto:g...@puppetlabs.com>> wrote: On Wed, Feb 24, 2016 at 10:47 PM, Henrik Lindberg > wrote: On 23/02/16 01:47, Henrik Lindberg wrote: Hi, I am thinking ahead a bit

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

2016-02-24 Thread Henrik Lindberg
On 23/02/16 01:47, Henrik Lindberg wrote: Hi, I am thinking ahead a bit regarding puppet 5 and how we should deal with all the requests for features that require deprecations. (There are some related things like requests for additional validation and warnings that are different from deprecations

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

2016-02-24 Thread Henrik Lindberg
On 24/02/16 20:24, Walter Heck wrote: On Wednesday, February 24, 2016 at 11:49:17 AM UTC+1, 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 Fo

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

2016-02-24 Thread Henrik Lindberg
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 appropriate. The global --strict=off should override any module-level setting.

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

2016-02-23 Thread Henrik Lindberg
On 24/02/16 00:27, Ryan Whitehurst wrote: 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 compi

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

2016-02-23 Thread Henrik Lindberg
On 24/02/16 00:22, 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 typo myself, but

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

2016-02-23 Thread Henrik Lindberg
On 23/02/16 23:31, 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 typo myself, but wouldn't have to enforce that on all third party code. Good idea, you probably a

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

2016-02-22 Thread Henrik Lindberg
Hi, I am thinking ahead a bit regarding puppet 5 and how we should deal with all the requests for features that require deprecations. (There are some related things like requests for additional validation and warnings that are different from deprecations). In the past we merrily started issuin

[Puppet-dev] Re: Puppet 4: defined resource types and epp template

2016-02-04 Thread Henrik Lindberg
On 2016-04-02 14:40, Martin Alfke wrote: On 04 Feb 2016, at 14:30, Henrik Lindberg wrote: On 2016-04-02 11:46, Martin Alfke wrote: This especially feels bad, when we will have performance improvement for epp in the future. I have not seen tickets with reports of performance problems. How

[Puppet-dev] Re: Puppet 4: defined resource types and epp template

2016-02-04 Thread Henrik Lindberg
On 2016-02-02 21:15, John Bollinger wrote: On Monday, February 1, 2016 at 12:15:12 PM UTC-6, henrik lindberg wrote: Contrast this with the inline_epp, which you can think of as a lambda/code-block. Here the code block gets to see the variables in scope, since it is itself in that

[Puppet-dev] Re: Puppet 4: defined resource types and epp template

2016-02-04 Thread Henrik Lindberg
On 2016-04-02 11:46, Martin Alfke wrote: On 01 Feb 2016, at 19:15, Henrik Lindberg wrote: That is exactly what you should do. An external (file based epp) when called, does not get to see variables in the scope from which it was called/used. This design is deliberate. Think of the

[Puppet-dev] Re: Puppet 4: defined resource types and epp template

2016-02-01 Thread Henrik Lindberg
On 2016-01-02 24:23, Martin Alfke wrote: Hi, I recently had an issue with epp template within a defined resource type. Let’s assume the following code snippets: # modules/test/manifests/init.pp class test { ::test::files { 'test': param1 => 'value', } } # modules/test/manifests/file

[Puppet-dev] Re: RFC - A specification for module schemas

2016-02-01 Thread Henrik Lindberg
There were many great replies to this, I am following up on this and the comments made elsewhere in one go here. On 2016-30-01 5:45, Corey Osman wrote: I wanted to bring up a conversation in hopes that we as a community can create a specification for something I am calling module schemas. Befo

[Puppet-dev] Re: Is is possible to detect what file and line from which a function was called?

2015-11-16 Thread Henrik Lindberg
On 2015-12-11 6:20, Trevor Vaughan wrote: All, Please disregard, the answer is source.file and source.line and works MUCH better if you're not testing a function outside of a manifest set ;-). Thanks, Trevor That is not the same as where a function is called from, it is container from which

[Puppet-dev] Re: Getting module name in type or provider

2015-10-20 Thread Henrik Lindberg
On 2015-16-10 18:11, bert hajee wrote: Hello , Is there a reliable way to get the module name inside of a custom type and/or a provider? reliable in a sense that it works both when using puppet apply and also works on an agent. What I've tried so far is to deducting the type name from the call

[Puppet-dev] Re: Puppet Strings Module Release

2015-09-23 Thread Henrik Lindberg
On 2015-23-09 22:33, Ian Kronquist wrote: We’re excited to announce the latest release of the Strings module! Strings generates HTML documentation from inline comments and is designed to replace /puppet doc/. Strings 0.3.1 is a backward-compatible minor release. It includes support for generating

[Puppet-dev] Re: Puppetconf 2015: pre-summit tea party

2015-09-12 Thread Henrik Lindberg
On 2015-11-09 19:20, Daniele Sluijters wrote: Hi everyone, As is tradition (since last year) It was a nice event last year. Want to join? Throw a +1 in the list so I get a rough idea of how people are going to show. +1 - henrik -- Visit my Blog "Puppet on the Edge" http://puppet-on-the

[Puppet-dev] Re: EPP templates and ruby code

2015-09-12 Thread Henrik Lindberg
On 2015-11-09 11:31, Erik Dalén wrote: You use the range function from stdlib to create an array. For example: range(1,5).each |$x| {notice($x)} The same is achieved with an Integer type: Integer[1,5].each |$x| { notice $x } It is more efficient than the range function since it does not crea

[Puppet-dev] Re: Using data types on hashes

2015-08-29 Thread Henrik Lindberg
On 2015-27-08 9:01, Martin Alfke wrote: On 27 Aug 2015, at 02:08, Henrik Lindberg wrote: On 2015-26-08 17:56, Martin Alfke wrote: Hi Henrik, On 26 Aug 2015, at 17:49, Henrik Lindberg wrote: Hash[String, Struct[{ uid => Integer, home => Pattern[/^\/.*/]}]] $hash Am I m

[Puppet-dev] Re: Using data types on hashes

2015-08-26 Thread Henrik Lindberg
On 2015-26-08 17:56, Martin Alfke wrote: Hi Henrik, On 26 Aug 2015, at 17:49, Henrik Lindberg wrote: On 2015-24-08 14:38, Martin Alfke wrote: Hi, I am playing around with the Puppet 4 Type system and nested hashes. Is it possible to use the Type system on a hash and check sub hashes as

[Puppet-dev] Re: Using data types on hashes

2015-08-26 Thread Henrik Lindberg
On 2015-24-08 14:38, Martin Alfke wrote: Hi, I am playing around with the Puppet 4 Type system and nested hashes. Is it possible to use the Type system on a hash and check sub hashes as Struct? Yes, certainly. # nested hashes $hash = { ‘ben’ => { uid => 2204, home => ‘/home/ben’

[Puppet-dev] Re: Accessing resource attributes

2015-07-31 Thread Henrik Lindberg
On 2015-31-07 12:35, R.I.Pienaar wrote: I just noticed last night we can now access resource and class attributes: define x($y) { } x{"foo": y => "bar"} notice(X["foo"]["y"]) this works, yay with the obvious parsing order caveats. This works too: define x($y) { noti

[Puppet-dev] Re: Getting module_name from Puppet 4 functions

2015-07-25 Thread Henrik Lindberg
eview. - henrik Thanks as usual al On Monday, July 20, 2015 at 4:10:20 PM UTC+2, henrik lindberg wrote: On 2015-19-07 18:14, Alessandro Franceschi wrote: > This is a silly question that will take to guys like Henrik less than a > nanosecond to reply, I suppose, but I'

[Puppet-dev] Re: Getting module_name from Puppet 4 functions

2015-07-20 Thread Henrik Lindberg
On 2015-19-07 18:14, Alessandro Franceschi wrote: This is a silly question that will take to guys like Henrik less than a nanosecond to reply, I suppose, but I'm struggling hard with this and haven't found a way out. I need to get the value of the compiler variable module_name from within a Pupp

[Puppet-dev] Re: How do you know what variables are frozen?

2015-07-15 Thread Henrik Lindberg
On 2015-15-07 12:22, Peter Huene wrote: On Wed, Jul 15, 2015 at 12:18 PM, Trevor Vaughan mailto:tvaug...@onyxpoint.com>> wrote: Indeed, I did change it to that but it would still be nice to know what's going on so that I can stuff it into rspec and check for it. Puppet's compiler inten

[Puppet-dev] Re: Catalog Deserialization performance

2015-07-02 Thread Henrik Lindberg
On 2015-01-07 9:05, Romain F. wrote: There is probably lots of duplicated work going on at the levels above and those are causing those generic methods to light up (except Puppet::Resource.initialize). There is both the deserialization process as such to optimize, but also t

[Puppet-dev] Re: Catalog Deserialization performance

2015-06-30 Thread Henrik Lindberg
complexity will always consume quite a bit of processing and memory to get across the wire. Is it hitting the "world record" enough? - henrik Cheers, Le mardi 30 juin 2015 04:23:42 UTC+2, henrik lindberg a écrit : On 2015-29-06 22:41, Trevor Vaughan wrote: > If you g

[Puppet-dev] Re: Catalog Deserialization performance

2015-06-29 Thread Henrik Lindberg
rn is very much client side performance since the more you managing a client, the less the client gets to do it's actual job. Thanks, Trevor On Mon, Jun 29, 2015 at 4:35 PM, Henrik Lindberg mailto:henrik.lindb...@cloudsmith.com>> wrote: On 2015-29-06 16 :48, Romain F. wrote:

[Puppet-dev] Re: Catalog Deserialization performance

2015-06-29 Thread Henrik Lindberg
On 2015-29-06 16:48, Romain F. wrote: Hi everyone, I try to optimize our Puppet runs by running some benchmarks and patching the puppet core (if possible). But I have some difficulties around the catalog serialization/deserialization. In fact, in 3.7.5 or 3.8.x, the Config Retrieval takes rough

[Puppet-dev] Re: relative paths to defines deprecated?

2015-06-25 Thread Henrik Lindberg
On 2015-25-06 11:54, Erik Dalén wrote: I guess this was https://tickets.puppetlabs.com/browse/PUP-121. So the change was intentional then. Yes, the change was intentional, but all holes were not plugged right away IIRC. - henrik On Thu, 25 Jun 2015 at 11:49 Erik Dalén mailto:erik.gustav.da.

[Puppet-dev] is a change of fqdn_rand to return a numeric a breaking change?

2015-06-04 Thread Henrik Lindberg
In ticket https://tickets.puppetlabs.com/browse/PUP-4698 it is suggested that fqdn_rand should change its return value to be a numeric value instead of a string since it is common to compare it to a value later and string comparison never falls back to a numeric comparison with future parser/pu

[Puppet-dev] Re: Using functions inside functions in Puppet 4

2015-05-18 Thread Henrik Lindberg
Thursday, May 14, 2015 at 1:51:49 PM UTC+2, henrik lindberg wrote: On 2015-14-05 12:58, Alessandro Franceschi wrote: > Hi all, > sorry to bother, I should probably search around better but I'm quite > confident that I can find here a quick solution. >

[Puppet-dev] Re: puppet4 regressions or features?

2015-05-15 Thread Henrik Lindberg
On 2015-15-05 24:59, Joshua hoblitt wrote: As I'm slowly updating my modules' testing boilerplate for puppet 4.x, I've run into a couple cases of breakage that I'm unsure if they are intentional changes in semantics or regressions. When introspecting on a resource and the param is undefined, an

[Puppet-dev] Re: Using functions inside functions in Puppet 4

2015-05-14 Thread Henrik Lindberg
On 2015-14-05 12:58, Alessandro Franceschi wrote: Hi all, sorry to bother, I should probably search around better but I'm quite confident that I can find here a quick solution. I've this issue: https://github.com/example42/puppi/issues/123 in a function which tries to use the hiera function as f

[Puppet-dev] Re: Unit testing v4 functions in modules

2015-04-30 Thread Henrik Lindberg
the failing travis build for it: https://travis-ci.org/dalen/puppet-v4functiontest/builds/60517933 This is requiring the latest rspec-puppet (2.1.0) and puppet 4.0.0. What am I doing wrong? On Tue, 28 Apr 2015 at 17:00 Henrik Lindberg mailto:henrik.lindb...@cloudsmith

[Puppet-dev] Re: Unit testing v4 functions in modules

2015-04-28 Thread Henrik Lindberg
On 2015-28-04 15:16, Erik Dalén wrote: Do any of you have any tips in regards to unit testing function using the v4 API in modules? I would like to do something like this: https://github.com/puppetlabs/puppet/blob/master/spec/unit/functions/scanf_spec.rb But PuppetSpec::Compiler & Matchers::Res

[Puppet-dev] Re: Unit testing v4 functions in modules

2015-04-28 Thread Henrik Lindberg
On 2015-28-04 16:53, Henrik Lindberg wrote: On 2015-28-04 15:16, Erik Dalén wrote: Do any of you have any tips in regards to unit testing function using the v4 API in modules? I would like to do something like this: https://github.com/puppetlabs/puppet/blob/master/spec/unit/functions

[Puppet-dev] Re: detecting manifest parser version

2015-04-23 Thread Henrik Lindberg
On 2015-23-04 21:36, Corey Osman wrote: Yea, since I don't actually run evaluation at this point I only need a manifest to parse. I am using this in my project: http://github.com/logicminds/puppet-retrospec if you are curious. I am thinking I may need to hot swap parser versions during manifes

[Puppet-dev] Re: detecting manifest parser version

2015-04-23 Thread Henrik Lindberg
On 2015-21-04 20:59, Corey Osman wrote: Is there a better way to detect which parser a manifest is using than what I have come up with below? https://gist.github.com/logicminds/d3f795f4fa28ed8d0be6 Your code basically runs puppet parser validate with or without --parser future afaict Resu

[Puppet-dev] Re: Puppet environments implementation question - get_conf() location and result caching

2015-04-17 Thread Henrik Lindberg
On 2015-16-04 18:34, Bostjan Skufca wrote: On Thursday, 16 April 2015 14:01:29 UTC+2, henrik lindberg wrote: On 2015-16-04 4:30, Bostjan Skufca wrote: > Just recently I was looking at the environments part of puppet > implementation, and I have stumbled upon this curious g

[Puppet-dev] Re: Puppet environments implementation question - get_conf() location and result caching

2015-04-16 Thread Henrik Lindberg
On 2015-16-04 4:30, Bostjan Skufca wrote: Just recently I was looking at the environments part of puppet implementation, and I have stumbled upon this curious gimmick. There is Puppet::Environments class, which is a class for general Environments management (searching, loaders, caching, etc). Th

[Puppet-dev] Re: yaml Kwalify schema for hiera files

2015-03-25 Thread Henrik Lindberg
On 2015-25-03 20:06, Corey Osman wrote: Hi, Has anybody created a yaml Kwalify schema for hiera files. I would like to validate my yaml files against an official hiera schema using Kwalify. Since the YAML spec varies greatly a schema is required to validate hiera specific keys. Exactly w

[Puppet-dev] Re: Generate README.md from inline doc

2015-03-17 Thread Henrik Lindberg
On 2015-17-03 17:34, Raphaël Pinson wrote: Thanks for the answer Henrik. That is kind of what it looked to me. I think if I have to go this way, i'll probably make a gem for this, since that would be easier to plug into modulesync than a Puppet module actually. Note that puppet-strings will b

[Puppet-dev] Re: Generate README.md from inline doc

2015-03-17 Thread Henrik Lindberg
On 2015-17-03 12:04, Raphaël Pinson wrote: Hello! I'd like to generate the README.md of my Puppet modules from modulesync, by getting the docs from the classes themselves. I've considered using puppet-strings, but I don't really see how I could retrieve markdown from it. Is there a way I coul

[Puppet-dev] Re: Rspec tests on puppet master branch failing

2015-03-13 Thread Henrik Lindberg
this needs to be in our docs, PR coming. Kylo Not quite sure what's going on. I'll poke around some more later since you can't seem to reproduce. Trevor On Thu, Mar 12, 2015 at 11:57 AM, Henrik Lindberg mailto:henrik.lindb...@cloudsmith

[Puppet-dev] Re: Rspec tests on puppet master branch failing

2015-03-12 Thread Henrik Lindberg
ran this on master: * bundle update * bundle exec rake parallel:spec[4] => 18768 examples, 0 failures, 44 pending - henrik Thanks, Trevor On Thu, Mar 12, 2015 at 11:11 AM, Henrik Lindberg mailto:henrik.lindb...@cloudsmith.com>> wrote: On 2015-12-03 14:10, Trevor Vaughan wrote:

[Puppet-dev] Re: Rspec tests on puppet master branch failing

2015-03-12 Thread Henrik Lindberg
On 2015-12-03 14:10, Trevor Vaughan wrote: Hi all, Some of the package spec tests are failing for me under Ruby 1.9.3. The offending commit appears to be: commit 8eb9557420bd10cfb268c55a62698136338c9b79 Merge: 0abb9a9 11bba86 Author: Henrik Lindberg mailto:henrik.lindb...@cloudsmith.com

[Puppet-dev] Re: Modulepath and manifest in environment.conf should interpolate $environment too

2015-03-09 Thread Henrik Lindberg
On 2015-09-03 14:54, Felix Frank wrote: On 03/09/2015 02:16 PM, Henrik Lindberg wrote: It would be splendid if we could define modulepath paths with $environment as variable part of path, like this: modulepath = /path/to/$environment/modules manifest = /path/to/$environment/manifest2/ Would

[Puppet-dev] Re: Modulepath and manifest in environment.conf should interpolate $environment too

2015-03-09 Thread Henrik Lindberg
On 2015-08-03 20:27, Bostjan Skufca wrote: Hi all, this change I have not yet implemented, but I believe it might be nice to have. Currently in environment.conf we can specify modulepath with relative or absolute paths to module directories, like this: modulepath = modules/:/some/other/location

[Puppet-dev] Re: Environmentpath support for globbing

2015-03-09 Thread Henrik Lindberg
On 2015-08-03 20:10, Bostjan Skufca wrote: Hi there, I like to have my environments organized into multiple subdirectories. Puppet configuration supports that by defining multiple paths for environmentpath setting, separated by ':'. However, I find it very convenient to use this simple configur

[Puppet-dev] Re: Puppet provider - xml parsing - help needed

2015-02-25 Thread Henrik Lindberg
On 2015-25-02 18:17, Martin Alfke wrote: Hi, I am stuck at a puppet provider where I need to read data from xml. Data which needs to get parsed: 0 0 Expected

[Puppet-dev] Re: Clojure authorization system for SERVER-111...

2015-02-23 Thread Henrik Lindberg
On 2015-23-02 17:47, Chris Price wrote: On Mon, Feb 23, 2015 at 7:09 AM, Trevor Vaughan mailto:tvaug...@onyxpoint.com>> wrote: Sorry to derail for the moment but HOCON + JSON + YAML + XML? Sounds great.. Totally agree that we have too many formats. That's why we tried to put a lot

[Puppet-dev] Puppet Dev Status -- week ending Feb 21

2015-02-20 Thread Henrik Lindberg
We gave all of the yaks a mullet, now they need a shave. Everyone is really busy with the AIO packaging and getting all the right bits through the testing gauntlet. After much going back and forth on one of the details; what should the paths be for all the components in the AIO? we decided to

[Puppet-dev] Re: Thoughts on Module Namespace Conflicts

2015-02-20 Thread Henrik Lindberg
On 2015-20-02 20:51, Wil Cooley wrote: In some ways, this is a lot like environments, but unlike environments, which are unique at the node-level, these allow the use of multiple module-sets and are scoping for entities at the manifest-level. As I understand environments, they can (and probably u

[Puppet-dev] Re: Thoughts on Module Namespace Conflicts

2015-02-12 Thread Henrik Lindberg
On 2015-12-02 15:12, Erik Dalén wrote: A related ticket to the interface and redirect functionality is https://tickets.puppetlabs.com/browse/FORGE-111 There I just suggest the feature to be able to say that module B provides the interface of module A version X. So either module can satisfy a dep

[Puppet-dev] Re: Thoughts on Module Namespace Conflicts

2015-02-10 Thread Henrik Lindberg
l::server::mysql-server'] } } Or something along those lines. Question remains where the IMysql::server interface then needs to be declared, and how we would manage the GUID registration of interfaces. Comments, thoughts? Walter On Tuesday, February 10, 201

[Puppet-dev] Re: Thoughts on Module Namespace Conflicts

2015-02-10 Thread Henrik Lindberg
estion remains where the IMysql::server interface then needs to be declared, and how we would manage the GUID registration of interfaces. Comments, thoughts? Walter On Tuesday, February 10, 2015 at 5:52:37 PM UTC+1, henrik lindberg wrote: On 2015-10-02 1:23, Trevor Vaughan wrote: > I

[Puppet-dev] Re: Thoughts on Module Namespace Conflicts

2015-02-10 Thread Henrik Lindberg
On 2015-10-02 1:23, Trevor Vaughan wrote: I was talking with a few folks today about potential resolutions to module namespace issues. == Fundamental Issue == puppetlabs_apache -- Installs To --> apache example42_apache -- Installs To --> apache theforeman_apache -- Installs To --> apache You

[Puppet-dev] puppet dev status week ending feb 7

2015-02-06 Thread Henrik Lindberg
The Puppet Dev team had a crazy week with lots of things happening at the same time. * FOSDEM, Config Management Camp and Contributor Summit * Building and testing packages for the AIO (All in One Agent) * Fixing the issues we find as we start building and testing the Puppet 4.0.0 release incl

[Puppet-dev] Re: Puppet Experimental Features (like parser=future)

2015-01-21 Thread Henrik Lindberg
On 2015-21-01 11:23, shashank wrote: Hi All, I was using puppet since the release of puppet 2.6 version in various projects.Now came across the "Puppet Experimental Features" in the Puppet 3.x series and some of which are really very useful for projects I was taking care of. My concern is that

[Puppet-dev] Re: custom function and special variables

2015-01-09 Thread Henrik Lindberg
On 2015-08-01 21:33, Johan De Wit wrote: Hi, Sorry for the somewhat misleading title, but don't know better wording. Is it possible to access special variables that are set outside the function ? I'm not talking about config settings, but looking at something like a variable that I could que

[Puppet-dev] Re: Non-breaking changes and puppet 3.7.x

2014-12-05 Thread Henrik Lindberg
On 2014-05-12 3:56, Kylo Ginsberg wrote: On Thu, Dec 4, 2014 at 3:46 PM, Henrik Lindberg <mailto:henrik.lindb...@cloudsmith.com>> wrote: On 2014-04-12 22:24, Kylo Ginsberg wrote: * non-breaking changes should default to 3.7.x until some time passes after 4.0 is ou

[Puppet-dev] Re: Non-breaking changes and puppet 3.7.x

2014-12-04 Thread Henrik Lindberg
On 2014-04-12 22:24, Kylo Ginsberg wrote: * non-breaking changes should default to 3.7.x until some time passes after 4.0 is out Eh, no, not in general please. We have lots of code removal and anything that needs to go through the process of being implemented both an old and a new way should not

[Puppet-dev] Stockholm Puppet Hackathon Dec 4

2014-11-28 Thread Henrik Lindberg
Hi, On december 4th, there is a Puppet Hackathon at Spotify, Stockholm, Sweden. There are limited seats available - rsvp here http://www.meetup.com/Stockholm-Puppet-Users/events/218941894/ if you want to join Erik Dalén, Daniele Sluijters, and Henrik Lindberg (among others) and hack on Puppet

[Puppet-dev] Re: Use of private in module skeleton

2014-11-23 Thread Henrik Lindberg
On 2014-22-11 21:25, Felix Frank wrote: On 11/22/2014 01:22 PM, Gareth Rushgrove wrote: Hey all I'd love some feedback on this PR, which adds the private function to the puppet-module-skeleton that a bunch of people use. https://github.com/garethr/puppet-module-skeleton/pull/43 A few people c

[Puppet-dev] Re: puppet-dev status the week ending 14-11-14

2014-11-14 Thread Henrik Lindberg
** Next PR Triage Wednesday, November 19th @ 10:00 am Pacific. ** Priorities 1. Puppet 3.7.4 2. Native Facter 0.3.0 3. Puppet Server 1.0.0 4. Code removal for puppet 4 5. New puppet doc implementation Commentary Puppet: We are going

[Puppet-dev] Re: puppet-dev status the week ending 14-11-14

2014-11-14 Thread Henrik Lindberg
Sorry a bout the botched format... investigating -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscr...@googlegroups.com. To view this discu

[Puppet-dev] puppet-dev status the week ending 14-11-14

2014-11-14 Thread Henrik Lindberg
are in this situation and need help with the transition. Regards Henrik Lindberg henrik.lindb...@puppetlabs.com -- Visit my Blog "Puppet on the Edge" http://puppet-on-the-edge.blogspot.se/ -- You received this

[Puppet-dev] Re: Puppet PR Triage starting soon

2014-11-12 Thread Henrik Lindberg
notes from the meeting https://github.com/puppet-community/community-triage/blob/master/core/notes/2014-11-12.md Since we changed to taking notes in the Github PRs directly, you can see the triaged PRs that are still open (and where comments were added), and the triaged PRs that were closed by

[Puppet-dev] Re: Improving the Resources Resource Type

2014-11-07 Thread Henrik Lindberg
On 2014-07-11 18:28, Erik Dalén wrote: On Fri Nov 07 2014 at 5:29:15 PM John Bollinger mailto:john.bollin...@stjude.org>> wrote: Having said all that, I can completely get behind Luke's idea to provide for client-side queries. I am confused, however, as to why the ideas for that see

  1   2   3   4   >