> I looked at the "forge" thing, and the "puppet-module" tool.
> Sad to say, I did not like it, for this purpose. It seems too complex
> compared to the alternatives.
Do you really think its hard? I was under the impression it was
relatively easy these days.
So okay - the way I read this was that the tool is to be unpacked
inside the Puppet core source files? Am I mistaken here? Ordinarily
'modules' are kept away from the core files - as plugins shouldn't be
mixed with core.
So okay - the way I read this was that the tool is to be unpackedinside the Puppet core source files? Am I mistaken here? Ordinarily'modules' are kept away from the core files - as plugins shouldn't bemixed with core.
>> > I looked at the "forge" thing, and the "puppet-module" tool.
>> > Sad to say, I did not like it, for this purpose. It seems too complex
>> > compared to the alternatives.
>>
>> Do you really think its hard? I was under the impression it was
>> relatively easy these days.
>
>
> huh. I dunno, lets just say that it did not seem that way at
> https://github.com/puppetlabs/puppet-module-tool/blob/master/README.markdown
>
> If I have to go trawl through over 1,000(?) words, and scroll down multiple
> pages, to find out how to do something that is supposed to be "easy"... (and
> still havent even gotten to the details), I start looking elsewhere.
> I suspect I'm not alone in this :)
So the principle is:
* Create a Modulefile according to the defined format in that doc
* Run 'puppet module generate' (or puppet-module generate if your
using the old tool)
First off, thanks for taking the time to write and share your smf
property provider. I've list of some comments/suggestions below.
...
> svccfg("-s",resource[:fmri],"setprop",resource[:property],"=",resource[:value])
> X refresh="/usr/sbin/svcadm refresh #{@resource[:fmri]}"
> X execute(refresh)
Any reason not using?
svcadm('refresh', @resource[:frmri])
You can add defaultto :present in ensurable to avoid requiring users
specify ensure => present.
Philip Brown wrote:
>
> Lemme know when your "easy module installation tool" is actually easy to
> install itself, please.
> Having a one-stop-shopping install.rb file would be one way to
> accomplish this. It's rather backwards, when your "easy" puppet
> configuration tool, is more difficult to install than puppet itself.
>
Actually it's not - packages work and are the recommended way anyone
should manage things like this:
$ yum/apt install ruby rubygems
>> Do you really think its hard? I was under the impression it was
>> relatively easy these days.
>
>
> huh. I dunno, lets just say that it did not seem that way at
> https://github.com/puppetlabs/puppet-module-tool/blob/master/README.markdown
>
So the principle is:
* Create a Modulefile according to the defined format in that doc
* Run 'puppet module generate' (or puppet-module generate if your
using the old tool)
>
> And IMO, that's as it should be. Back end ruby language code should be held
> separate from regular "puppet language code" stuff.
I'm still not convinced, but I'm open to being convinced :-).
>
> As a suggestion.. if you guys INSIST on overloading the term "module", to
> cover both user-level code, and back-end code, then I would recommend you
> add an additional, separate subcommand to puppet-module, that generates
> back-end templating, instead of the default user-side templating.
> Dumping both types of templating as the default, would make things more
> confusing to the general-case user.
> It's confusing enough (with all the extra junk like "metadata.json" and
> "./spec/spec.opts") without making it more so.
This is a fair enough feature request - I would presume there are
almost 'template styles' that one would want. ie. Generate a templated
resource, generate a class, generate a fact or function etc. So that
way, you could almost have people defining their own set of templates
as well. I often find that would help a customer, when they have
finally decided on a preferred template - giving them the capability
to keep their own library would be awesome. What do you think?
So the top level location of stuff is defined here:
http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html
Given that the path I took to reach the "modules" bit, had just been talking about pure user-side, non-puppet-back-end stuff, I still thought I was in pure puppet language land.
There is only a brief mention in the top half of the page, about the lib directory. it says,
"Contains plugins, like custom facts and custom resource types"
Umm. okay. (files that in back of brain, doesnt sound very crucial or different)
And with that, an assuption has just been made, "the lib directory is just like everything else (ie: same language), it just has a slightly different role to play"
Other parts of the doc support this assumption.I think your tone is a little trollish Philip - can we be more civil
please? I'm just trying to help.
> ( custom types go in (MODULEDIR)/lib/(?somewhere?) -- hey another bug, it
> doesnt say specifically where under lib it goes )
On the page I sent you:
http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html
Under the lib directory it states:
Contains plugins, like custom facts and custom resource types. See
“Using Plugins” for more details.
Which redirects you to a hyperlink explaining the layout:
http://docs.puppetlabs.com/guides/plugins_in_modules.html
If you want to raise concrete bugs on
docs or code, I'm happy to show you were these can be raised -
>
> The top level needs to more noticably spell out to the reader, "hey pay
> attention, this bit(lib dir) is very different, you should go read the
> detail page to understand it more."
Sounds fair enough, if you think you have a clear idea of how you
would like the prose to be changed on that particular docs page, put a
proposal together and submit it as a ticket in Redmine:
http://projects.puppetlabs.com/projects/puppet-docs
> 1. How do I address the problem of forge vs docs site redundancy? Not sure
> that the above redmine area is the correct place
Its a good enough place to start. If the documentation overlaps or
says two different things its a fair place to cover it.
> 2. The trouble with the bug I filed, though.. is that personally, I think
> the documentation in that area could do with a *Major* rewrite.
> I filed some stopgap measures, but a rewrite is called for.
> It would not make sense to do that until the "forge vs docs site" issue is
> decently resolves, though.
>
> Additionally, I do have some experience writing online documentation, and
> could potentially contribute.
> The bug system is not adequate for doing that, though.
On that URL I gave you:
http://projects.puppetlabs.com/projects/puppet-docs
There is a link on how to contribute:
http://docs.puppetlabs.com/contribute.html
Its managed like code, so if you go to:
https://github.com/puppetlabs/puppet-docs
You can see the README file with the docs on how to build it, and view it.