[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 then validate against such a configuration without having
to do the full compilation with a full set of values.

This also opens up for the possibility to do real type inference. This
is not possible when facts are in essence untyped.


This seems orthogonal to an agent-side facter config; you're talking
about a Type "signature" of what the returned structure of a fact should
look like, right?



Yes like in "the fact 'foo' is an Integer" - preferably expressed in 
terms of the Puppet Type System.


- henrik


Eric Sorenson - eric.soren...@puppetlabs.com - freenode #puppet: eric0
puppet platform // coffee // techno // bicycles




--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/387ced45-91af-e358-9bd3-1be8a4ed4cc7%40puppet.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet-dev] Re: Facter config file

2016-05-23 Thread Eric Sorenson

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 then validate 
against such a configuration without having to do the full compilation with a 
full set of values.


This also opens up for the possibility to do real type inference. This is not 
possible when facts are in essence untyped.


This seems orthogonal to an agent-side facter config; you're talking about a 
Type "signature" of what the returned structure of a fact should look like, 
right?


Eric Sorenson - eric.soren...@puppetlabs.com - freenode #puppet: eric0
puppet platform // coffee // techno // bicycles

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/alpine.OSX.2.20.1605231304110.72822%40fermium.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet-dev] Facter config file

2016-05-23 Thread Eric Sorenson

On Wed, 2 Mar 2016, Trevor Vaughan wrote:


R.I., did I just hear you make a suggestion for writing fact DDL files? Not
sure how I feel about that, they're a pain to deal with and confuse users.

The features that I would like to add my vote for:

* Fact TTLs
* Custom fact execution timeouts
* Fact execution timeouts
* Fact parallelization (and settings therein)


Hmm, I'd question the ROI of trying to parallelize something that is already 
pretty fast and can be made even faster with a working client-side fact cache 
that has long TTLs for expensive facts. Are there benefits besides speed you 
have in mind here?



* Moving the facts.d location
* Asynchronous fact reporting (I don't want to have to run facter every
puppet run)
* System fact ACLs (have the ability to allow other hosts access to facts)


Can you explain the problem statement behind this last one a little better?

Eric Sorenson - eric.soren...@puppetlabs.com - freenode #puppet: eric0
puppet platform // coffee // techno // bicycles

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/alpine.OSX.2.20.1605231301010.72822%40fermium.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet-dev] Facter config file

2016-05-23 Thread Eric Sorenson

On Tue, 1 Mar 2016, Eric Sorenson wrote:


I've been thinking about a config file for Facter, which has historically
not been run-time configurable.


A little thread necromancy here, as I finally got back to this and started 
working into a real proposal as Puppet RFC 24, Facter Config File. WIP google 
doc here: 
https://docs.google.com/document/d/1xlj0NYESLHNv5ZO_NJ-1fCssAWzaHsTZIhyaK3uzHQY/edit


I think I summarized everyone's use-case in the "Problems and People" section 
but feel free to comment/suggest if I've mischaracterized something. I have a 
few more inline questions on the way too.


Eric Sorenson - eric.soren...@puppetlabs.com - freenode #puppet: eric0
puppet platform // coffee // techno // bicycles

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/alpine.OSX.2.20.1605231258560.72822%40fermium.
For more options, visit https://groups.google.com/d/optout.