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.

Reply via email to