Project

General

Profile

Actions

Feature #6254

closed

Puppet 4 parser support

Added by Dominic Cleal over 10 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Urgent
Assignee:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Brand new parser etc is going to need a lot of work I suspect.

Of particular interest will be the new type system shown here: https://tickets.puppetlabs.com/browse/PUP-514


Related issues 2 (0 open2 closed)

Related to Kafo - Feature #7848: YARD / Puppet Strings supportClosedMarek Hulán10/08/2014Actions
Blocks Foreman - Tracker #8447: Puppet 4 supportClosed11/19/2014

Actions
Actions #1

Updated by Dominic Cleal about 10 years ago

Actions #2

Updated by Dominic Cleal about 10 years ago

Actions #3

Updated by Dominic Cleal almost 10 years ago

  • Priority changed from Normal to Urgent

Nightlies builds started failing recently.

[root@foreman ~]# rpm -q puppet
puppet-3.7.3.704-1.el7.noarch
[root@foreman ~]# foreman-installer -nv
/usr/share/gems/gems/kafo_parsers-0.0.4/lib/kafo_parsers/puppet_module_parser.rb:37:in `initialize': uninitialized constant Puppet::Parser::Parser (NameError)
        from /usr/share/gems/gems/kafo_parsers-0.0.4/lib/kafo_parsers/puppet_module_parser.rb:16:in `new'
        from /usr/share/gems/gems/kafo_parsers-0.0.4/lib/kafo_parsers/puppet_module_parser.rb:16:in `parse'
        from /usr/share/gems/gems/kafo-0.6.5/lib/kafo/puppet_module.rb:44:in `parse'
        from /usr/share/gems/gems/kafo-0.6.5/lib/kafo/configuration.rb:84:in `block in modules'
        from /usr/share/gems/gems/kafo-0.6.5/lib/kafo/configuration.rb:84:in `map'
        from /usr/share/gems/gems/kafo-0.6.5/lib/kafo/configuration.rb:84:in `modules'
        from /usr/share/gems/gems/kafo-0.6.5/lib/kafo/kafo_configure.rb:170:in `modules'
        from /usr/share/gems/gems/kafo-0.6.5/lib/kafo/kafo_configure.rb:152:in `params'
        from /usr/share/gems/gems/kafo-0.6.5/lib/kafo/kafo_configure.rb:185:in `set_parameters'
        from /usr/share/gems/gems/kafo-0.6.5/lib/kafo/kafo_configure.rb:66:in `initialize'
        from /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:126:in `new'
        from /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:126:in `run'
        from /usr/share/gems/gems/kafo-0.6.5/lib/kafo/kafo_configure.rb:116:in `run'
        from /sbin/foreman-installer:18:in `<main>'

(since https://github.com/puppetlabs/puppet/pull/3315 presumably)

I've disabled http://ci.theforeman.org/view/Status/job/systest_foreman_puppet_nightly/ as it's fatal right now.

Actions #4

Updated by Stefan Hölzle about 9 years ago

I'm taking a look at kafo_parsers.

Actions #5

Updated by Stefan Hölzle almost 9 years ago

I'm afraid I didn't get far. I need more information, especially about how to use classes from puppet.
By "puppet code" I mean https://github.com/puppetlabs/puppet/

I already found the following:
https://github.com/puppetlabs/puppet#developing-and-contributing
http://www.rubydoc.info/gems/puppet

Could someone point me in the direction of more detailed documentation of the puppet code ?

Actions #6

Updated by Dominic Cleal over 8 years ago

  • Status changed from New to Rejected

I don't think we're going to implement any support for the Puppet 4 parser per se in Kafo. Instead, a combination of #14447 (a cache that alleviates the need for a parser on the user's installation) and #7878 (using Puppet Strings to parse manifests) should replace the need for a real parser.

Actions

Also available in: Atom PDF