I have a director setup which I manage with Saltstack.
For my agents I’d like to set a variable for example vars.host.distro = “Debian” etc.
The simple question is, where do I define that on the agent so I can use it in an apply rule in Director?
Would you mind elaborating that?
I think I need to create a Data Field, but how do I fill it via a configuration manager like Saltstack or Ansible?
I don’t want to go and do this by hand.
Or do you mean a separate Host Template called “Ubuntu” and assign this to hosts which have Ubuntu installed?
ok, you didn’t write that the information come from the SaltStack or better that informations what the salt minion knows about the server should be shipped to the director.
My apologies it’s still a bit unclear to me. Can I only assign variables to a host in Director via the API or Icingaweb?
Is it in any way possible to define this in the Agent on the client?