Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7069

puppet module generate fails on windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: PUP 4.8.1
    • Fix Version/s: None
    • Component/s: PMT, Windows
    • Labels:
    • Environment:

      Windows 2012 R2;
      Ruby 2.3.1 installed from chocolatey
      Puppet 4.8.1 installed as gem

    • QA Risk Assessment:
      Needs Assessment

      Description

      When creating a new module using puppet module generate the tool fails at the very end with an error very similar to PUP-4884:

      PS C:\vagrant> puppet module generate puppetlabs-picktest2 --trace --skip-interview
       
      Notice: Generating module at C:\vagrant/picktest2...
      Notice: Populating templates...
      Error: No such file or directory @ dir_s_rmdir - C:/vagrant/picktest2/metadata.json.erb
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/face/module/generate.rb:240:in `unlink'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/face/module/generate.rb:240:in `unlink'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/face/module/generate.rb:240:in `block (2 levels) in populate_templates'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/face/module/generate.rb:234:in `each'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/face/module/generate.rb:234:in `block in populate_templates'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/face/module/generate.rb:231:in `each'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/face/module/generate.rb:231:in `populate_templates'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/face/module/generate.rb:219:in `duplicate_skeleton'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/face/module/generate.rb:140:in `generate'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/face/module/generate.rb:126:in `block (3 levels) in <top (required)>'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/application/face_base.rb:48:in `call'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/application/face_base.rb:48:in `render'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/application/face_base.rb:249:in `main'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/application.rb:352:in `run_command'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/application.rb:344:in `block in run'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/util.rb:540:in `exit_on_fail'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/application.rb:344:in `run'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/util/command_line.rb:132:in `run'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/lib/puppet/util/command_line.rb:72:in `execute'
      c:/tools/ruby23/lib/ruby/gems/2.3.0/gems/puppet-4.8.1-x64-mingw32/bin/puppet:5:in `<top (required)>'
      c:/tools/ruby23/bin/puppet:23:in `load'
      c:/tools/ruby23/bin/puppet:23:in `<main>'
      Error: Try 'puppet help module generate' for usage
      PS C:\vagrant>
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                david.schmitt David Schmitt
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support