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

2017-07-31 Thread Thomas Hallgren
I reacted to the formulation "Puppet 4.10.4/5.0.1 or earlier: success - but no functionality". There was never a success but rather a hidden failure (which is worse than an apparent one). Puppet never officially named the option to "sort_merge_arrays". The documentation has always had the correct

Re: [Puppet-dev] metadata.json ">= 1.x" version requirements

2017-05-30 Thread Thomas Hallgren
I noticed a typo in my reply. ">1.x" is the same as ">=2.0.0", not ">2.0.0" as I wrote earlier. - thomas On Tue, May 30, 2017 at 9:38 AM, David Schmitt wrote: > > > On 30 May 2017 at 08:27, Dominic Cleal wrote: > >> On 26/05/17

Re: [Puppet-dev] metadata.json ">= 1.x" version requirements

2017-05-26 Thread Thomas Hallgren
In Puppet 5.0.0, where SemanticPuppet 1.0.0 is used, ">= 1.x" is a legal version requirement. It is interpreted as '>=1.0.0'. Mixing operator and .x branches can be somewhat confusing though, and therefore not something that I'd recommend. For instance: ">1.x" is the same as ">2.0.0" "<=2.x" is

Re: [Puppet-dev] listing datatypes

2017-03-31 Thread Thomas Hallgren
s and > dataypes are available to them. > > > *I am going to play around with your suggestions to see what I can come up > with.* > > > > On Thursday, March 30, 2017 at 10:21:12 PM UTC-7, Thomas Hallgren wrote: >> >> Hi Corey, >> >> Yes, yo

Re: [Puppet-dev] listing datatypes

2017-03-30 Thread Thomas Hallgren
Hi Corey, Yes, your solution is indeed hackish as it performs surgery on undocumented implementation internals that might change without notice :-). Please don't do that. We currently have no way of presenting a full list. In order to do that, we must implement new functionality on the Puppet::Po

Re: [Puppet-dev] Re: Draft for new type and provider API

2017-02-07 Thread Thomas Hallgren
On Tue, Feb 7, 2017 at 12:33 PM, David Schmitt wrote: > > I do not understand how extending the puppet dsl on the server helps with > resource management on the agent. > A precursor to this, would of course be able to use the parser on the agent and also have an evaluator tailored for the agent.

Re: [Puppet-dev] Re: Draft for new type and provider API

2017-02-07 Thread Thomas Hallgren
Like Martin Afke above, I'm very interested in what could be done using the Puppet Language alone. What use cases can be covered entirely that way? What is not feasible to ever do with PL? Would an API that made it possible to write types and providers PL and hand over tiny tasks to another languag

Re: [Puppet-dev] Puppet 4 functions - argument count not working?

2015-09-01 Thread Thomas Hallgren
A correction to my last reply. You must use Pattern, not Regexp (a Regexp is for regexp instances whereas a Pattern matches strings). - thomas On 2015-09-01 14:28, Thomas Hallgren wrote: On 2015-09-01 13:27, Martin Alfke wrote: Hi Thomas, On 01 Sep 2015, at 09:59, Thomas Hallgren wrote

Re: [Puppet-dev] Puppet 4 functions - argument count not working?

2015-09-01 Thread Thomas Hallgren
On 2015-09-01 13:27, Martin Alfke wrote: Hi Thomas, On 01 Sep 2015, at 09:59, Thomas Hallgren wrote: Hi Martin, The function API has evolved slightly since the blog entry that you're referring to was written. The arg_count was removed since it was redundant and confusing aft

Re: [Puppet-dev] Puppet 4 functions - argument count not working?

2015-09-01 Thread Thomas Hallgren
Hi Martin, The function API has evolved slightly since the blog entry that you're referring to was written. The arg_count was removed since it was redundant and confusing after we introduced the 'optional_param' and 'repeated_param'. You can find the documentation for Puppet 4.2 functions here:

Re: [Puppet-dev] Re: Announce: Hiera 2.0.0 available

2015-04-02 Thread Thomas Hallgren
hen using interpolation expression. I'm well aware that it's a corner case but it does show the advantage of using a simple and consistent interpretation of the lookup key. - thomas On 2015-04-02 21:19, John Bollinger wrote: On Thursday, April 2, 2015 at 10:33:02 AM UTC-5, Thomas Ha

Re: [Puppet-dev] Re: Announce: Hiera 2.0.0 available

2015-04-02 Thread Thomas Hallgren
fact would be a good addition too. - thomas On 2015-04-02 16:29, John Bollinger wrote: On Wednesday, April 1, 2015 at 5:17:54 PM UTC-5, Thomas Hallgren wrote: John, We're seem to be talking past each other here. The description in HI-14 mentions facts specifically and that

Re: [Puppet-dev] Re: Announce: Hiera 2.0.0 available

2015-04-01 Thread Thomas Hallgren
g a key in Hiera, that time is now. - thomas Thanks, Trevor On Wed, Apr 1, 2015 at 7:58 PM, Thomas Hallgren <mailto:thomas.hallg...@puppetlabs.com>> wrote: On 2015-04-02 01:29, Trevor Vaughan wrote: I think perhaps if the issue could be pointed out that

Re: [Puppet-dev] Re: Announce: Hiera 2.0.0 available

2015-04-01 Thread Thomas Hallgren
On 2015-04-02 01:29, Trevor Vaughan wrote: I think perhaps if the issue could be pointed out that provides for *key* interpolation on dotted values without interpolation notation, that might clear things up. Thomas' example does provide HI-14 as I read it *but* there may have been an unintend

Re: [Puppet-dev] Re: Announce: Hiera 2.0.0 available

2015-04-01 Thread Thomas Hallgren
ore specific in what way the issue description doesn't match the implementation? Thanks, - thomas On 2015-04-01 21:00, John Bollinger wrote: On Wednesday, April 1, 2015 at 9:01:52 AM UTC-5, Thomas Hallgren wrote: On 2015-03-31 14:57, John Bollinger wrote: On Thursday, March 2

Re: [Puppet-dev] Re: Announce: Hiera 2.0.0 available

2015-04-01 Thread Thomas Hallgren
On 2015-03-31 14:57, John Bollinger wrote: On Thursday, March 26, 2015 at 8:24:30 AM UTC-5, John Bollinger wrote: Would someone please explain a little more about HI-14, though, and especially about how the change implemented to fix that issue actually addresses it at all? The issue

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

2015-02-25 Thread Thomas Hallgren
I would take a look at nokogiri. It's an XML/HTML parser for Ruby. Some helpful hints here: http://stackoverflow.com/questions/11198239/parsing-xml-with-ruby - thomas On 2015-02-25 19:43, Henrik Lindberg wrote: On 2015-25-02 18:17, Martin Alfke wrote: Hi, I am stuck at a puppet provider whe

Re: [Puppet-dev] The string to number torture never stops

2014-11-03 Thread Thomas Hallgren
e a string cast the same way I do. On Mon, Nov 3, 2014 at 9:42 PM, Joshua Hoblitt wrote: > On 11/03/2014 02:09 AM, Thomas Hallgren wrote: > >> > >> (String)$my_hungarian_integer > > I perceive this as a type cast, not a conversion, and would expect a > > runtime exc

Re: [Puppet-dev] The string to number torture never stops

2014-11-03 Thread Thomas Hallgren
On 2014-11-02 10:19, Joshua Hoblitt wrote: # best effort, or fail convert_to(Number, value) It would require changes to the lexer but another syntactic option (not that I'm advocating it) would be C style type coercion. (String)$my_hungarian_integer I perceive this as a type cast, not a conve

Re: [Puppet-dev] Re: Experiences with the new type system

2014-10-10 Thread Thomas Hallgren
On 2014-10-10 16:27, Henrik Lindberg wrote: Thanks Daniele, excellent feedback ! More comments below... On 2014-10-10 9:06, Daniele Sluijters wrote: So this should also work: class test ( Optional[Numeric] $number = undef, ) {} include test However, it does not: Error: Expected parameter

Re: [Puppet-dev] Numbers and Representation - Lets talk about BigDecimal

2014-09-12 Thread Thomas Hallgren
On 2014-09-12 03:21, Ken Barber wrote: Instead of continuing on the old thread "A question about numbers and representation", I decided to open a new thread avout BigDecimal to see if we can come to closure on that separately. Digging a bit more into Ruby, and how it handles floating point revea

Re: [Puppet-dev] RFC: Static Analysis of the Puppet project

2014-08-11 Thread Thomas Hallgren
On 2014-08-11 17:06, Joshua Partlow wrote: On Sunday, August 10, 2014, Rahul Gopinath mailto:ra...@puppetlabs.com>> wrote: > Here is a related issue, > > I notice that there are different conventions for spacing followed > when using method calls with parenthesis, > including `method(a,b)`, `me

Re: [Puppet-dev] Re: Puppetdb java Library

2014-07-22 Thread Thomas Hallgren
Hi Alex, First of all, you found a bug. The parameter and return type for the getNodeFacts() method were both wrong. I fixed that and pushed a new version (0.1.6) of the API code to our Nexus instance. The getNodeFacts method calls: /v3/nodes//facts The call is documented here: http://do

Re: [Puppet-dev] Re: Puppetdb java Library

2014-07-17 Thread Thomas Hallgren
On 2014-07-17 19:06, Alex Wacker wrote: I appreciate the help. I was able to get connected One final question. In the example in the readme below methods such as 'eq', 'or' and 'and' are called. Are these defined anywhere in the library as they are missing for me currently? List classes =

Re: [Puppet-dev] Re: Puppetdb java Library

2014-07-15 Thread Thomas Hallgren
Are you able to get something from the server using a windows correspondence to linux commands such as curl or wget? Or perhaps in a browser? It really seems like a hard connection failure rather than a protocol error or authentication problem. - thomas -- You received this message because you

[Puppet-dev] Re: Puppetdb java Library

2014-07-15 Thread Thomas Hallgren
The current version of puppetdb-javaclient is designed to work with puppetdb 1.5. A couple of questions: 1. Have you tried using http instead of https and port 8080? Being able to use plain http was one of the features that were added when we made it compatible with 1.5. 2. If you'r

Re: [Puppet-dev] Environment Caching - RFC

2014-04-21 Thread Thomas Hallgren
Would a MANUAL strategy make sense? I.e. instead of rebooting the master, just tell it to clear the cache (perhaps per environment). - thomas On 2014-04-21 23:29, Henrik Lindberg wrote: Hi, We have been looking into environment caching and have some thoughts and ideas about how this can be don

Re: [Puppet-dev] PuppetDB 1.6.0-rc2 Now available

2014-01-16 Thread Thomas Hallgren
On 2014-01-16 16:43, Ken Barber wrote: I read through the comprehensive release notes trying to find if there are any specific changes/additions that affects the API that I need to also incorporate in the Java client (new endpoints or functionality). Lot's of great additions for sure but am I cor

Re: [Puppet-dev] PuppetDB 1.6.0-rc2 Now available

2014-01-16 Thread Thomas Hallgren
l API is unchanged? Thanks, Thomas Hallgren On 2014-01-14 22:17, Ken Barber wrote: ** Release Candidate ** PuppetDB 1.6.0-rc2 Prerelease: PuppetDB 1.6.0 is not yet released * RC1: January 7th, 2014. * RC2: January 14th, 2014. PuppetDB 1.6.0-rc2 Downloads Availab

Re: [Puppet-dev] The future of known_resource_types and loading puppet manifests

2013-08-27 Thread Thomas Hallgren
On 27 aug 2013, at 13:34, Andy Parker wrote: > > > I suspect Geppetto also has a similar problem to other Eclipse editors in > which if you change the file on disk via another mechanism (edit in vim, for > example) it kinda "freaks out" as it were. I think that has to do with the > caching

Re: [Puppet-dev] Module validation

2011-02-23 Thread Thomas Hallgren
validate it but here is the puppet command you can use.   cat manifest.pp | puppet --color=false --parseonly --ignoreimport On Wed, Feb 23, 2011 at 7:58 AM, Thomas Hallgren <tho...@tada.se> wrote:

[Puppet-dev] Module validation

2011-02-23 Thread Thomas Hallgren
Hi, In Geppetto, we'd like some way of validating a module. In essence, the validator should verify that all manifests, types, etc. are syntactically correct and contains needed entries. I'm curious if there is some existing code in puppet that does something similar that we could call on? -

Re: [Puppet-dev] User and module name constraints

2011-01-25 Thread Thomas Hallgren
On 2011-01-25 09:05, Luke Kanies wrote: I think for now we focus on the use cases that don't require a namespace, and then wait until the lack of a namespace is pretty painful. That fits how we've done this kind of feature in the past, and I think it's both appropriate here and very much in l

Re: [Puppet-dev] User and module name constraints

2011-01-25 Thread Thomas Hallgren
On 2011-01-25 08:06, Luke Kanies wrote: Ah. I've never used either to any significant extent. I'm... slightly scared at the thought of this much complexity. Is it dangerous to start without it and only consider adding it later if we really can't survive without it? No, and that's what we s

Re: [Puppet-dev] User and module name constraints

2011-01-24 Thread Thomas Hallgren
On 2011-01-24 08:11, Luke Kanies wrote: On Jan 23, 2011, at 11:08 PM, Thomas Hallgren wrote: On 2011-01-24 06:19, Luke Kanies wrote: Would every include/class name/import/etc mention the domain name? In essence yes but it can be improved. A common practice is to specify namespace affinity

Re: [Puppet-dev] User and module name constraints

2011-01-23 Thread Thomas Hallgren
On 2011-01-24 06:19, Luke Kanies wrote: On Jan 22, 2011, at 12:18 AM, Thomas Hallgren wrote: In a general sense, I think there are two ways to resolve this. Either it's decided that puppet modules as a concept must be universally unique by name or it's acknowledged that conflicts

Re: [Puppet-dev] User and module name constraints

2011-01-22 Thread Thomas Hallgren
nd earlier version of Puppet. In the long run, perhaps a fully fledged solution using domain names would be something to consider? Regards, Thomas Hallgren On 2011-01-21 19:33, Trevor Vaughan wrote: Basically, what *I* would like is: /etc/puppet/modules/superawesome/iptables /etc/pupp

Re: [Puppet-dev] User and module name constraints

2011-01-20 Thread Thomas Hallgren
I entered two issues to capture what's being discussed here: http://projects.puppetlabs.com/issues/5964 http://projects.puppetlabs.com/issues/5965 - thomas On 2011-01-20 18:07, James Turnbull wrote: Thomas Hallgren wrote: OK, that makes sense. In that case, I think the best way to re

Re: [Puppet-dev] User and module name constraints

2011-01-20 Thread Thomas Hallgren
On 2011-01-20 09:32, Nan Liu wrote: On Thu, Jan 20, 2011 at 12:19 AM, Thomas Hallgren wrote: What should happen if you install both bill/builder and bob/builder? When attempting to download the second module it should throw an error that a modules exist matching the name by a different

Re: [Puppet-dev] User and module name constraints

2011-01-20 Thread Thomas Hallgren
ere that can be consulted when resolving ambiguities. Regards, Thomas Hallgren -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com. To unsubscribe from this group, send email to

[Puppet-dev] User and module name constraints

2011-01-19 Thread Thomas Hallgren
]+)\z/ What constrains does the puppet parser/engine have on the module name? Regards, Thomas Hallgren -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com. To unsubscribe

Re: [Puppet-dev] Experiment: Data/Model separation design proposal

2011-01-16 Thread Thomas Hallgren
me I want to create an IDE extension for editing the data for a specific module. How can I assist the user in entering this data and then validate that it is correct? Regards, Thomas Hallgren On 2011-01-16 02:26, Nigel Kersten wrote: On Sat, Jan 15, 2011

[Puppet-dev] Version semantics

2011-01-13 Thread Thomas Hallgren
magnitude? Is this described somewhere? 2. What operators can be used? Is there a concept of a range? If so, is there something that controls inclusion/exclusion of the boundaries of that range? Regards, Thomas Hallgren -- You received this message because you are subscribed to the Google Groups &

Re: [Puppet-dev] Schema describing the puppet-module-tool service

2011-01-11 Thread Thomas Hallgren
. Thanks, Thomas Hallgren On 2011-01-07 00:17, Thomas Hallgren wrote: Hi James, I created a Server-api page with a link to it from http://projects.puppetlabs.com/projects/module-site/wiki It contains some basic terminology and the two operations (find and search) that I have found so far. I&#

[Puppet-dev] Parsing module meta-data without Ruby

2011-01-08 Thread Thomas Hallgren
ve Ruby, it's a beautiful language, but in this particular case it would be nice if I could circumvent it. Ideas and suggestions are very welcome. Regards, Thomas Hallgren -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To

Re: [Puppet-dev] Schema describing the puppet-module-tool service

2011-01-06 Thread Thomas Hallgren
HTML tags to get a formatting that was good enough. Please view this as an initial draft. I don't mind changing it if you feel that operation semantics should be displayed in a different way. Let me know what you think. - thomas On 2011-01-06 18:40, James Turnbull wrote: Thomas Hallgren

[Puppet-dev] Schema describing the puppet-module-tool service

2011-01-06 Thread Thomas Hallgren
ription of the API between the client and server. Is there a description like that around somewhere? I'm well acquainted with JSON so a description just listing the possible calls and returns in JSON terms would do fine. Thanks and Regards, Thomas Hallgren Cloudsmith Inc. -- You received this