salt.thorium.check module

The check Thorium state is used to create gateways to commands, the checks make it easy to make states that watch registers for changes and then just succeed or fail based on the state of the register, this creates the pattern of having a command execution get gated by a check state via a requisite.

salt.thorium.check.contains(name, value)

Only succeed if the value in the given register location is greater than the given value

salt.thorium.check.eq(name, value)

Only succeed if the value in the given register location is equal to the given value

salt.thorium.check.event(name)

Chekcs for a specific event match and returns result True if the match happens

USAGE:

code-block:: yaml

salt/foo/*/bar:
check.event
run_remote_ex:
local.cmd:
  • tgt: '*'
  • func: test.ping
  • require: - check: salt/foo/*/bar
salt.thorium.check.gt(name, value)

Only succeed if the value in the given register location is greater than the given value

salt.thorium.check.gte(name, value)

Only succeed if the value in the given register location is greater or equal than the given value

salt.thorium.check.lt(name, value)

Only succeed if the value in the given register location is less than the given value

salt.thorium.check.lte(name, value)

Only succeed if the value in the given register location is less than or equal the given value

salt.thorium.check.ne(name, value)

Only succeed if the value in the given register location is not equal to the given value