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':} ->

# 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+unsubscribe@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.

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 12 | next ›
Discussion Overview
grouppuppet-users @
postedMay 6, '13 at 5:25p
activeMay 7, '13 at 10:12p



site design / logo © 2022 Grokbase