Warning Livedoc is no longer being updated and will be deprecated shortly. Please refer to https://documentation.tjhsst.edu.

Salt/State setup

From Livedoc - The Documentation Repository
Revision as of 14:39, 26 March 2014 by 2016fwilson (talk | contribs) (Created page with "= Setting up states for nodes = The way salt works, definitions of which states should apply to which machines are defined in <code>top.sls</code>: <pre>base: '*': -...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Setting up states for nodes

The way salt works, definitions of which states should apply to which machines are defined in top.sls:

base:
    '*':
    - tjcsl.ssh
    - tjcsl.vim
    - tjcsl.motd
    - tjcsl.gentools

Of course, the ’*’ matches all machines, and the list of things defines states which will be applied. We prefer to manage things in node groups if a state should not apply to all machines:

base:
    'itanium':
    - match: nodegroup
    - tjcsl.cluster.postgres

There should be plenty of states defined for you already (see the list of states).