You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whimsical.apache.org by "Sebb (Jira)" <ji...@apache.org> on 2021/05/10 12:03:00 UTC

[jira] [Commented] (WHIMSY-361) vhosttest.rb does not work in Puppet 6

    [ https://issues.apache.org/jira/browse/WHIMSY-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17341861#comment-17341861 ] 

Sebb commented on WHIMSY-361:
-----------------------------

Looks like the problem is that the ApacheVHostMacros class is now defined as part of the block, rather than in an independent module.

Not sure how to move the class without breaking anything...

> vhosttest.rb does not work in Puppet 6
> --------------------------------------
>
>                 Key: WHIMSY-361
>                 URL: https://issues.apache.org/jira/browse/WHIMSY-361
>             Project: Whimsy
>          Issue Type: Bug
>            Reporter: Sebb
>            Priority: Major
>
> Puppet 6 changed the way functions are created, and the testwrapper no longer works.
> I have updated the location by removing the 'Parser' path element, but the script now fails with:
> $ ruby vhosttest.rb /puppet/infra-p6 
> /puppet/infra-p6/modules/vhosts_whimsy/lib/puppet/functions/preprocess_vhosts.rb:1:in `<top (required)>': undefined method `create_function' for Puppet::Functions:Module (NoMethodError)
> I can make that go away by defining an empty function 'create_function', but then I get:
> vhosttest.rb:29:in `<main>': uninitialized constant Puppet::Functions::ApacheVHostMacros (NameError)
> Not sure how to proceed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)