jon | 18 Jun 2012 21:00
Picon

using hiera for node classification

Hi All,

I've been trying to use Hiera for node classification, my sit.pp is simple:

node default {
  hiera_include("classes")
}

 which has been working well with simple class definitions like:

user <at> host$ cat testagent.yaml        2012-06-18 14:55:48 jon pts/13
---
classes:
- motd

Is anyone doing this in production?  I've seen a little about this on line but it seems to be mostly toy cases like the above.  If so, is it possible to pass in parameterized classes this way, like:

user <at> host$ cat openstackall.yaml     2012-06-18 14:56:01 jon pts/13
---
classes:
- openstack::all: { 
  public_address: %{ipaddress_eth0},
  public_interface: eth0,
  private_interface: eth1,
  admin_email: nobody <at> csail.mit.edu,
  admin_password: admin_password,
  keystone_admin_token: keystone_admin_token,
  nova_user_password: nova_user_password,
  glance_user_password: glance_user_password,
  rabbit_password: rabbit_password,
  rabbit_user: rabbit_user,
  libvirt_type: kvm,
  fixed_range: 10.0.0.0/24 }

The above doesn't work, probably because I'm simply using the wrong structure...

Thanks,
-Jon

--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-dev/-/VmBH1MvK75AJ.
To post to this group, send email to puppet-dev <at> googlegroups.com.
To unsubscribe from this group, send email to puppet-dev+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.

Gmane