(#11282) PMT creates all five module subdirectories#287
(#11282) PMT creates all five module subdirectories#287ghoneycutt wants to merge 1 commit intopuppetlabs:masterfrom ghoneycutt:tickets/2.7.x/11282_module_face_creates_all_subdirectories
Conversation
puppet module generate will now create files, lib, and templates directories in addition to the manifests, spec, and tests directories that were already created in order to be complete.
|
This looks good, I think we may need to update the specs (spec/integration/module_tool_spec.rb) around this behavior. |
|
These readme files are really nice and should be a big help to new users of Puppet, based on the commit message I was expecting code that creates some additional directories, I am missing something? |
|
The code already creates a skeleton directory based on what is in lib/puppet/module_tool/skeleton/templates/generator/ This commit adds the missing directories and README's underneath them. The README's give clarity to what the directories are for as well as get past git not allowing empty directories to be committed. |
|
Not sure what to change in the specs You can recreate such as puppet module generate ghoneycutt-foonotice: Generating module at /Users/gh/git/puppet/pkg/ghoneycutt-foo |
|
I will ping one of the Sr, Devs to review this and get this merged. |
|
I'm not going to merge this. =) Whenever I run I'd be happy to merge this if all of the documentation were limited to a At a more technical level, we should definitely not put anything in |
|
Also, to be clear I'm fine creating the directories, I just don't think they should have anything in them by default. |
|
Finally, I didn't mean to imply "I'm not going to merge this ever" I just meant "as it is now." Garrett, what do you think about moving the information into the top level README.md? |
|
Lets make a final decision on the tests directory rename, especially in light of the existence of the spec directory. And yes I agree with the removal of the README files. Another thing to look at is the exclusion of metadata.json in the initial scaffolding. That file is going to be used more thoroughly by Puppet but needs not to be blank and generated from the contents of the Modulefile which I currently think only happens on a 'puppet module build' task. |
|
My opinion would be. puppetlabs-foo Plus extra actions that can generate me server.pp for my foo::server class or a sample template with recommended header. Then a way to easily generate metadata.json. |
|
I chatted briefly with @pvande about this and he's fine with renaming Also, just as an FYI, his "v1" target for the module tool work he's doing is coming up and it doesn't have a ton of module generation and creation stuff in it. We're fine doing merges like this, but he wanted to mention this because the work may not be be re-used by project Geordi. -Jeff |
|
The README info could certainly be moved to the top level README and out of the individual directories. They were placed there because git does not allow you to commit empty directories. In light of this, I placed the README's in the directories so I could commit them in version control. If there is another way of doing this, we should do that. |
|
As for renaming tests to examples, that does not have anything to do with this ticket (as the tests directory is already in the code) and should be addressed in a separate ticket. Besides PMT, that would also affect documentation and training. |
|
Hi guys, just a little observation regarding the README in the toplevel module dir. It seems This would also require a change to |
|
Willaerk, Thanks for contributing! Could you create a separate ticket in Redmine[1] and ensure that you have signed our CLA so that we can use your code? [1] - http://projects.puppetlabs.com/projects/forge Thanks again, |
|
Ghoneycutt, signed the CLA, and created a ticket in Redmine (#11801). |
|
Pull request submitted: 309 |
|
@kelseyhightower - you own this; can you make a call on this getting merged or rejected, please, and I will follow that. If you need to coordinate with others, go ahead, but I need a decision from you. :) |
|
@kelseyhightower - any chance your team can review and, if appropriate, merge this, please? |
|
Pinging for update |
|
@kelseyhightower : any news on this one? |
|
@kelseyhightower - can you review this, please? |
Known issue for PE > 3.1.1 < 3.2.0 broken on Solaris x86
(PCP-234) Add new set of test certs
puppet module generate will now create files, lib, and templates
directories in addition to the manifests, spec, and tests directories
that were already created in order to be complete.