Hi Alan,

I would simply do

class profile::base { include profile::wazuh }

class profile::wazuh (
  Boolean $manager = False
) {
  if $manager {
    include profile::wazuh::manager
  }
  else {
    include profiles::wazuh::agent
}

and be set with it.

Then you don't need the following:
class role::wazuh::manager { include profile::wazuh::manager }
because every node already includes profile::wazuh via profile::base

Best
Karsten

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAL017hDxCZA4GBY1nut3-_QO9pHPvXTSAEH29apxFU15oOtneQ%40mail.gmail.com.

Reply via email to