salt.states.sysrc
State to work with sysrc
-
Ensure a sysrc variable is absent.
- name
-
The variable name to set
- file
-
(optional) The rc file to add the variable to.
- jail
-
(option) the name or JID of the jail to set the value in.
salt.states.sysrc.absent(name, **kwargs)
-
Ensure a sysrc variable is set to a specific value.
- name
-
The variable name to set
- value
-
Value to set the variable to
- file
-
(optional) The rc file to add the variable to.
- jail
-
(option) the name or JID of the jail to set the value in.
Example:
syslogd: sysrc.managed: - name: syslogd_flags - value: -ss
salt.states.sysrc.managed(name, value, **kwargs)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/states/all/salt.states.sysrc.html