drrb / puppet-library

A private Puppet Forge
GNU General Public License v3.0
87 stars 20 forks source link

RFE : Support for metadata.json in sources #7

Closed slaws closed 10 years ago

slaws commented 10 years ago

Hello,

As of puppet 3.6, the Modulefile file has been deprecated by puppetlabs (according to the doc here : http://docs.puppetlabs.com/puppet/latest/reference/modules_publishing.html). When a module is created using 'puppet module generate' it doesn't create a Modulefile anymore.

Would it be possible to use metadata.json if present ?

I'm not a developer but I tried to make this change there : https://github.com/slaws/puppet-library/commit/f76c1b1ede492be56043dbcee2e524081c262aab

I can make a pull request if it's ok.

drrb commented 10 years ago

Thanks for the report. That sounds like a good idea. There are a few other places to change too, so I'll try to get a patch submitted soon.

drrb commented 10 years ago

Reopening to fix broken tests

drrb commented 10 years ago

Implemented in v0.15.0. Specifically, source and Git repo forges use metadata.json if it exists and Modulefile doesn't exist. If both exist, Modulefile is used.