[PUP-3354] Puppet Module Generate creates non lint approved modules Created: 2014/09/26  Updated: 2014/10/13  Resolved: 2014/10/13

Status: Closed
Project: Puppet
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: spencer owen Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicates PUP-3124 tool should generate code using the a... Closed


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

Comment by Adrien Thebo [ 2014/09/30 ]

It looks like https://github.com/puppetlabs/puppet/pull/3002 may have fixed this.

Comment by Adrien Thebo [ 2014/10/13 ]

Marking this as a duplicate in favor of PUP-3124

Generated at Sat Feb 22 15:01:03 PST 2020 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.