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

tool should generate code using the actual module name as the directory instead of username-modulename

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 3.7.1
    • Fix Version/s: PUP 4.0.0
    • Component/s: PMT
    • Labels:
    • Template:

      Description

      This is what currently happens

      <pre>
      [root@puppet modules]# puppet-module generate ghoneycutt-apache
      =====================================================================
      Generating module at /etc/puppetlabs/puppet/modules/ghoneycutt-apache
      ---------------------------------------------------------------------
      ghoneycutt-apache
      ghoneycutt-apache/Modulefile
      ghoneycutt-apache/tests
      ghoneycutt-apache/tests/init.pp
      ghoneycutt-apache/README
      ghoneycutt-apache/manifests
      ghoneycutt-apache/manifests/init.pp
      ghoneycutt-apache/metadata.json
      ghoneycutt-apache/spec
      ghoneycutt-apache/spec/spec.opts
      ghoneycutt-apache/spec/spec_helper.rb
      </pre>

      This is what should happen.

      <pre>
      [root@puppet modules]# puppet-module generate ghoneycutt-apache
      =====================================================================
      Generating module at /etc/puppetlabs/puppet/modules/apache
      ---------------------------------------------------------------------
      apache
      apache/Modulefile
      apache/tests
      apache/tests/init.pp
      apache/README
      apache/manifests
      apache/manifests/init.pp
      apache/metadata.json
      apache/spec
      apache/spec/spec.opts
      apache/spec/spec_helper.rb
      </pre>

      People actually use the tool by doing the following, which one should not have to do.

      <pre># puppet-module generate ghoneycutt-apache && mv ghoneycutt-apache apache</pre>

      ==

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  ghoneycutt garrett honeycutt
                  QA Contact:
                  Eric Thompson
                • Votes:
                  3 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: