On Oct 1, 2009, at 4:08 PM, R.I.Pienaar wrote:
>
> hello,
>
> ----- "Luke Kanies" <[email protected]> wrote:
>
>> So (Paul Lathrop will correct me if I'm wrong, I hope), it looks like
>>
>> we decided on the following simplistic metadata for modules:
>>
>> * version
>> * name
>> * author
>> * source (i.e., a URL)
>> * requires
>>
>> The requires need to be able to specify either names or names and
>> version.
>>
>> We also decided that the data will be stored in a file named
>> something
>>
>> like 'metadata.json', and the file format will be json.
>>
>> My plan at this point is to do the requires as either an array, or an
>>
>> array of arrays:
>>
>> requires: foo, bar
>> requires: [foo, 1.0], [bar, 2.0]
>>
>> Comments?
>
> Can you tell those who aren't at the camp what the useage of this
> meta data will be, will this for dependencies between modules
> somehow or is it merely a compile time aid, or something else
> completely?
It will be a first step toward adding the ability to talk about
dependencies between modules, which would be checked at compile time.
We'd also add, eventually, tools for doing general validation outside
of a Puppet compile.
>
> I assume all the data will be available in some vars for all classes
> in teh module as well? I for one would love a $modulename var
> that's the same in all sub classes.
I hadn't thought of that, but it's a good point. I know the
$modulename thing is already a ticket, and the others shouldn't be too
hard, either.
--
The chief lesson I have learned in a long life is that the only way to
make a man trustworthy is to trust him; and the surest way to make him
untrustworthy is to distrust him and show your distrust.
-- Henry L. Stimson
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---