Hello, How can assign custom metadata to a host? (custom key/value pairs for example) I know I can define a pillar manually in Salt master /srv/pillar. However it would be great to just be able to assign custom values/pillars to a host in the GUI such that I can pick those up in my states. I know I can include this myself in the GUI by using forms. But that's not what I mean because I would have to "ask the same question" in every form where this information is required. Instead, I just want these custom attributes derived from the host, plain and simple. Any idea? Thanks.
Hello, You can use custom formulas. https://www.uyuni-project.org/uyuni-docs/uyuni/salt/formulas-custom.html Cristian Gherman On 3/21/21 2:35 PM, jm+github@roth.lu wrote:
Hello,
How can assign custom metadata to a host? (custom key/value pairs for example)
I know I can define a pillar manually in Salt master /srv/pillar.
However it would be great to just be able to assign custom values/pillars to a host in the GUI such that I can pick those up in my states.
I know I can include this myself in the GUI by using forms. But that's not what I mean because I would have to "ask the same question" in every form where this information is required. Instead, I just want these custom attributes derived from the host, plain and simple.
Any idea? Thanks.
Are you suggesting to use some generic form(ula) like "Server Type", and assign it to every server? Cristian Gherman wrote:
Hello,
You can use custom formulas.
On 3/21/21 2:35 PM, jm+github(a)roth.lu wrote:
I know I can include this myself in the GUI by using forms. But that's not what I mean because I would have to "ask the same question" in every form where this information is required. Instead, I just want these custom attributes derived from the host, plain and simple.
Hello
Allowing custom data in pillars is WIP:
https://github.com/uyuni-project/uyuni/pull/3093/files
Thank you
Pau Garcia Quiles
SUSE Manager Product Owner & Technical Project Manager
Phone: +34 91 048 7632
SUSE Software Solutions Spain
________________________________
From: Cristian Gherman
Hello,
How can assign custom metadata to a host? (custom key/value pairs for example)
I know I can define a pillar manually in Salt master /srv/pillar.
However it would be great to just be able to assign custom values/pillars to a host in the GUI such that I can pick those up in my states.
I know I can include this myself in the GUI by using forms. But that's not what I mean because I would have to "ask the same question" in every form where this information is required. Instead, I just want these custom attributes derived from the host, plain and simple.
Any idea? Thanks.
participants (3)
-
Cristian Gherman
-
jm+github@roth.lu
-
Pau Garcia