On 2013-12-06 1:13, Rags wrote:
Puppet manifests today don't specify the version of DSL they are writing
to, afaik. This will likely lead to the classic versioning problem.
Imagine a new language construct gets added and not all Puppet versions
can support this language construct. Without having a way to know the
DSL version of a Puppet manifest, this mismatch can only be detected at
runtime in an adhoc manner.
Thoughts? I'm mainly interested in someone validating the existence of
this problem to help me assure I'm not missing anything.
Yes this problem exists.
Currently there is no way of specifying dependencies on a puppet version
for a module, nor is it possible to specify language feature compliance.
With the work that has taken place in the --parser future available
since 3.2 it will be possible to add features that help in the situation
you are describing.
The idea is that modules should declare their requirements on the
parser/validation and that there is a similar setting for the non-module
contained code (per environment). The idea is that new and old code can
coexist (as long as the overall runtime is compatible).
The new parser allows this because the parser and validation logic is
separate - one and the same parser can parse many different versions and
the semantics are checked by a validator that is configured as per the
requirements per module/environment.
The details have not been figured out yet. The support for this can not
be introduced until Puppet 4 as the base level for the --parser future
introduces some (but not many) non backwards compatible changes.
It is expected that when support for this is added, all modules that do
not specify a language compliance level will stay on puppet 3.x.
One way to test compliance (that is available today) is by using
Geppetto - the validation logic is available both in the Geppetto IDE
and as headless command line tools. There are plugins for Jenkins and
Travis CI that makes use of the Geppetto validation. (You can also see
it in action in Stackhammer).
With Geppetto validation it is possible to set the language compliance
level - i.e. get errors specific to a language version.
I hope this answers your questions.
Regards
- henrik
Thanks Rags
--
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 post to this group, send email to puppet-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
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 post to this group, send email to puppet-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.