I have a situation where I have a module which manages some user accounts which, if required by a system, need to be physically present on that box. I have another module which sets up freeipa-client for all systems. The catch is that when the first module is present, it needs to be installed prior to the ipa-client module. But if I give ipa-client a dependency on it, it will force it to always be installed, which isn''t what I want. What''s the most puppet-ish way to handle this? -- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
If freeipa-client will be on all systems, just order it the other way. In the user module, make your class before freeipa-client. That way, the ordering is only in place when you include the user class. On Tuesday, February 5, 2013 11:21:30 AM UTC-7, Bret Wortman wrote:> > I have a situation where I have a module which manages some user accounts > which, if required by a system, need to be physically present on that box. > I have another module which sets up freeipa-client for all systems. > > The catch is that when the first module is present, it needs to be > installed prior to the ipa-client module. But if I give ipa-client a > dependency on it, it will force it to always be installed, which isn''t what > I want. > > What''s the most puppet-ish way to handle this? >-- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Bret Wortman
2013-Feb-06 11:55 UTC
[Puppet Users] Re: Best way for conditional dependency?
Ahhhh. So since that module won''t be included on all machines, neither will the dependency. I get it. Thanks, Joe. On Tuesday, February 5, 2013 3:06:08 PM UTC-5, joe wrote:> > If freeipa-client will be on all systems, just order it the other way. > > In the user module, make your class before freeipa-client. That way, the > ordering is only in place when you include the user class. > > On Tuesday, February 5, 2013 11:21:30 AM UTC-7, Bret Wortman wrote: >> >> I have a situation where I have a module which manages some user accounts >> which, if required by a system, need to be physically present on that box. >> I have another module which sets up freeipa-client for all systems. >> >> The catch is that when the first module is present, it needs to be >> installed prior to the ipa-client module. But if I give ipa-client a >> dependency on it, it will force it to always be installed, which isn''t what >> I want. >> >> What''s the most puppet-ish way to handle this? >> >-- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.