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

Puppet Module Generate creates non lint approved modules

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:

      Description

      If you run `puppet module generate foo-bar` then puppet will create the directory tree for a module.

      That module does not conform to puppet-lint specifications because the module class does not match the module directory name.

      puppet module generate foo-bar
      puppet lint foo-bar/manifests/init.pp
      ERROR: bar not in autoload module layout on line 38
      

      The solution to this, is to name the directory the same as the classes in the manifests.

      mv foo-bar bar
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  spuder spencer owen
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support