class - Puppet access parameters of module through other module -
i'm trying deal following situation:
class profile:mq { include rabbitmq } class rabbitmq ( $user, $pass, $host ) { ...logic... }
i use hiera auto lookup fill in parameters in rabbitmq through profile::mq class (eg profile::mq:rabbitmq::user: "value", not rabbitmq::user: "value") guess encapsulate rabbitmq not sure how in puppet.
automated data binding: plan.
it doesn't work way propose, however. hiera keys given class looks parameter values depend on class , parameter names. independent of locus of , declarations of class. cannot otherwise, because multiple declarations of same class may evaluated same target node, , -- because classes singletons -- declare same class (instance).
you may able achieve you're after putting rabbitmq parameter values in profile-specific level of hiera hierarchy. doesn't feel quite right me, may serve enough purposes.
Comments
Post a Comment