Salt grains

Hi,

The snippet "saltstack_minion" in Foreman has a line that goes like this:

grains: <%= @host.params['salt_grains'] ? @host.params['salt_grains'] :
'{}' %>

Which format should the parameter 'salt_grains' would have in order for
this snippet to work?

X

> Hi,
>
> The snippet "saltstack_minion" in Foreman has a line that goes like this:
>
> grains: <%= @host.params['salt_grains'] ? @host.params['salt_grains'] :
> '{}' %>
>
> Which format should the parameter 'salt_grains' would have in order for
> this snippet to work?

Something like this should work:
{'foo': 'bar', 'baz': 'qux}

There's also a Salt plugin for Foreman if you haven't seen:
http://github.com/theforeman/foreman_salt/

··· On Tue, Jan 20, 2015 at 05:03:20PM +0100, Xavier Naveira wrote:

X


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Best Regards,

Stephen Benjamin
Red Hat Engineering