Problem:
When I register a new content host using “curl ... | bash”, I need to manually add Tracer to every host, because I want Tracer to run on all hosts.
This procedure is weak, because an operator may forget to install Tracer.
Expected outcome:
Is there a way to automatically install Tracer upon host registration?
e.g. by using “Activation Keys” or extending the curl command?
Just look into the templates. The standard “Linux host_init_config default” template checks for host parameter redhat_install_host_tracer_tools. If it’s true, it installs katello-host-tools-tracer.
Yes, this is exactly what I was missing - thank you!
I figured out that altering the template is not a good idea in this case.
As I need Tracer on all hosts (like some kind of global “policy”), I managed to add a Global Parameter, setting “redhat_install_host_tracer_tools” to “true”.
During execution of the “curl ... | bash” registration, the Tracer client component gets immediately installed.