Hello all,

I have a quick question regarding the puppet-forge mcollective module and 
it's integration with hiera.  I'd like to abstract some values into hiera 
instead of using site.pp to define parameter values for the mcollective 
class.  I've got hiera and the mcollective module already working with the 
following two parameters (i've moved the $middleware hosts parameter for 
the sake of this post, from it's original location in init.pp):

class mcollective (
  # which subcomponents to install here
  $server                  = hiera('::mcollective::server'),
  $client                   = hiera('::mcollective::client'),
  $middleware_hosts = hiera('::mcollective::middleware_hosts'),

My hiera source looks like this:
---
classes: mcollective
mcollective::middleware: true
mcollective::server: true
mcollective::middleware_hosts:
  - server-01.local

So far everything is working fine but now I'd like to add the $middleware 
parameter and assign it to my hiera config (I've already added 'middleware' 
per the above definition).  The documentation states that I'd simply add 
the below 'middleware' parameter to my node definition:

node 'broker1.example.com' {
  class { '::mcollective':
    middleware         => true,


The problem is that I can't find that value anywhere in the module to 
replace the default 'false' with my hiera directive.  I've been combing 
through the module and I can't seem to find it. My understanding is that I 
need to replace the 'middleware' parameter just like I did above with 
$server/$client.  

Can anybody point me in the right direction on where I would change this 
value?  I'm still getting used to hiera and these module structures and, I 
do have to say that the mcollective module is probably the most complicated 
I've worked with so far.

Thanks you in advance for your help.

Cheers,

Mike

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d7b52df3-aeaa-4cba-bc49-8743c0a89371%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to