My Salt setups have migrated to use reclass as both the ENC and pillar
source --- I don't have any Salt top files, it all comes out of reclass.
Reclass allows you to define pillar data (what reclass calls parameters)
and which states a node will have applied to it (what reclass calls
applications).
States are still defined as you would normally define them in Salt.
Reclass knows nothing about states, other than, when asked about a node,
it will build up a list of 'applications' which that node needs; the
Salt integration treats those as the states it needs to make sure is on
the node and will apply them as normal.
I've set up my master to have the Salt master and the reclass config all
come out of the same directory, which looks like:
classes
nodes
reactor
states
The first two reclass cares about, the second two Salt does.
I've been meaning to write this up as an article for a while, perhaps I
should find enough gumpt ions to do that this weekend.
--
Thomas L. Kula |
ku...@tproa.net |
http://kula.tproa.net/