On Wed, May 16, 2012 at 9:51 PM, Joshua Hoblitt <[email protected]> wrote:
> Hello,
>
> I have number of classes that deal with user management and I've run into a
> snag with needing to extend/modify either the user or group types.  I'm
> using theforeman as an ENC.
>
> The class structure I have is something like the following.
>
> users::common
> users::dev
> users::prod
> etc...
>
> users::{dev, prod} do not use inheritance.  Almost all node include
> users::common.  Some include users::common and user::dev, while others
> include users::common and users::prod.  No node presently includes all three
> classes but it's desirable for that to be possible.  The class users::common
> contains user and group types (actually virtual resources but that detail
> shouldn't matter...) and is machine generated.  users::{dev, prod} define
> additional users and groups.  The difficulty is that I have users in
> ::common that need to be added a group a group in ::dev but not be a member
> of that group in prod.  This is complicated by the fact that this group is
> declared in ::common.   Am I left with having to do class inheritence here?
> I'd like to avoid that if possible as that would preclude ::dev and ::prod
> being included on the same node.  I understand that heira is good at dealing
> with this sort of situation.  Is there some magic way of looking up data in
> heira without dumping foreman as an enc?

Check out: https://github.com/torrancew/hiera-foreman

As I understand it lets you map heira variables to foreman params.

Cheers,
Brian

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to