mc_api¶
Convenient functions to use a salt infra as an api Internal module used as api.
-
mc_states.runners.mc_api.
apply_sls
(slss, concurrent=True, *a, **kwargs)¶ args
- slss
- one or list of sls
- output
- output to stdout
- ret
- mc_state results dict
- salt_target
- target
- sls_kw
useful to give pillar:
(**{sls_kw: {pillar: {1:2}}})
-
mc_states.runners.mc_api.
cli
(*args, **kwargs)¶ Correctly forward salt globals to a regular python module
-
mc_states.runners.mc_api.
destroy
(id_, sshport=22, sshhost=None, destroy=False, remove_key=True, **kwargs)¶ Alias to remove
-
mc_states.runners.mc_api.
remove
(id_, sshport=22, sshhost=None, destroy=False, remove_key=True, **kwargs)¶ Remove salt linking to a host (common code) This requires ssh access