salt.wheel.config
Manage the master configuration file
-
Set a single key
Note
This will strip comments from your config file
salt.wheel.config.apply(key, value)
-
Update master config with
yaml_contents
.Writes
yaml_contents
to a file namedfile_name.conf
under the folder specified bydefault_include
. This folder is namedmaster.d
by default. Please look atinclude-configuration
for more information.Example low data:
data = { 'username': 'salt', 'password': 'salt', 'fun': 'config.update_config', 'file_name': 'gui', 'yaml_contents': {'id': 1}, 'client': 'wheel', 'eauth': 'pam', }
salt.wheel.config.update_config(file_name, yaml_contents)
-
Return the raw values of the config file
salt.wheel.config.values()
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/wheel/all/salt.wheel.config.html