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

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -