On Tue, Mar 24, 2020 at 03:40:14PM +0100, Giovanni Bechis wrote:
> Puppet module generate seems broken (6.6-current as of today with 
> puppet-5.5.19 and 6.6-stable).
> 
> $ doas puppet module generate --skip-interview test-common
> Warning: `puppet module generate` is deprecated and will be removed in a 
> future release. This action has been replaced by Puppet Development Kit. For 
> more information visit https://puppet.com/docs/pdk/latest/pdk.html.
>    (location: 
> /usr/local/lib/ruby/site_ruby/2.6/puppet/face/module/generate.rb:142:in 
> `generate')
> 
> Notice: Generating module at /tmp/common...
> Notice: Populating templates...
> Error: undefined method `delete' for 
> #<JSON::Ext::Generator::State:0x00000770d3d74830>
> Error: Try 'puppet help module generate' for usage
> 
> The above command creates a "common" dir with broken config files.
> Is this a known problem ?
> 
> Puppet master is working fine.
>  
The following diff fixes the problem, ok after unlock ?
 Cheers
  Giovanni

Index: 5/Makefile
===================================================================
RCS file: /cvs/ports/sysutils/ruby-puppet/5/Makefile,v
retrieving revision 1.23
diff -u -p -r1.23 Makefile
--- 5/Makefile  18 Mar 2020 18:39:17 -0000      1.23
+++ 5/Makefile  8 May 2020 08:10:16 -0000
@@ -3,11 +3,13 @@
 PORTROACH=             limit:^5
 
 VERSION=               5.5.19
+REVISION=              0
 
 RUN_DEPENDS+=          databases/ruby-hiera3,${MODRUBY_FLAVOR} \
                        devel/ruby-gettext-setup,${MODRUBY_FLAVOR}>=0.28,<1 \
                        devel/ruby-locale,${MODRUBY_FLAVOR}>=2.1,<3 \
                        devel/ruby-rgen,${MODRUBY_FLAVOR} \
+                       converters/ruby-multi_json,${MODRUBY_FLAVOR} \
                        sysutils/facter
 
 SUBST_VARS +=  MODPY_DEFAULT_VERSION_2 MODPY_DEFAULT_VERSION_3

Attachment: signature.asc
Description: PGP signature

Reply via email to