>
> I would like to set to noop some classes (not all) for some server
> groups. (For example, we can have 2 types of modules, IT and Middleware,
> IT must be in no-noop and Middleware must be in noop)
>
So you would like to sometimes apply a nodes assigned classes and sometimes
not? That sounds like a strange usecase. If it''s just a case of
''sometimes''
as in some actually puppetruns, you could use something like cronjobbed
''puppet agent --test
--tags=<all,the,classes,I,do,want,to,apply>''.
If on the other hand your puppet environment is set up to apply classes to
nodes that shouldn''t be applied, you would be advised to look into how
to
only assign the necessary classes to the server group requiring them,
rather than creating a parameter to every class to turn them on and off at
will. Things like a custom fact that parses IP''s or hostnames, returns
a
<server group> string and then using that as part of hiera.yaml and doing
your classes assignment might be an idea.
--
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 puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/46ffe52f-7bff-41ff-8ac4-34ef84c0b12e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.