Ask Your Question

using hiera to define a list of optional components

asked 2013-06-23 16:45:58 -0500

BaltoStar gravatar image

updated 2013-06-23 16:46:33 -0500

I am using Puppet to configure a region-based server that will host one or more services.

I am using Hiera to define the various regional server-types.

Parameterizing the region is easy - because it is defined per-server-type :


  region: 'na' 
      service_name: 'service-a'
      service_port: '3001'
      service_name: 'service-b'
      service_port: '3002'
      service_name: 'service-c'
      service_port: '3003'

In my node-def , how to define the list of service-types I'd like to configure for a particular node ?

Or am I going about this the right way ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-06-24 07:46:57 -0500

EJSarge gravatar image

You will need to set a variable in your node definition so that Hiera can use that variable to do the lookup.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-06-23 16:45:58 -0500

Seen: 227 times

Last updated: Jun 24 '13