Find a better explanation here: 
http://www.devco.net/archives/2012/12/13/simple-puppet-module-structure-redux.php

El martes, 7 de mayo de 2013 10:42:47 UTC-5, Ken Coar escribió:
>
>
>
> On Monday, May 6, 2013 3:36:06 PM UTC-4, Gerardo Santana Gómez Garrido 
> wrote:
>>
>> Hi Ken,
>>
>> I'm not sure I fully understood the purpose of each class, and until then 
>> I'm not pointing out issues. But if my interpretation is correct then you 
>> may get something useful from this other pattern:
>>
>> # it's probaby your mod::defaults and mod::settings together
>> class mod::params {
>>   $setting1 = 1
>>   $setting2 = 'a'
>> }
>>
>> # entry point
>> class mod(
>>   $setting1 = $mod::params::setting1,
>>   $setting2 = $mod::params::setting2
>> ) {
>>   class {'mod::install': } ->
>>   class {'mod::config':} ~>
>>   class {'mod::service':} ->
>>   Class['mod']
>> }
>>
>> # the classes below reference parameters
>> # as $mod::setting1
>> class mod::install {
>> }
>>
>> class mod::config {
>> }
>>
>> class mod::service {
>> }
>>
>> this can be expanded to more than one entry point.
>>
>  
> Hmm.  That seems.. confusing.. to me, probably because I'm a 
> beginning-to-intermediate user.  I'm not even sure what the hell is going 
> on, in fact. :-)
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to