Module to run salt-support within Salt.
salt.modules.saltsupport.LogCollector¶Output collector.
ERROR = 'error'¶INFO = 'info'¶WARNING = 'warning'¶error(message, *args, **kwargs)¶highlight(message, *values, **kwargs)¶info(message, *args, **kwargs)¶msg(message, *args, **kwargs)¶put(message, *args, **kwargs)¶warning(message, *args, **kwargs)¶salt.modules.saltsupport.SaltSupportModule¶Salt Support module class.
archives(**kwargs)¶Get list of existing archives. :return:
delete_archives(**kwargs)¶Delete archives :return:
format_sync_stats(cnt)¶Format stats of the sync output.
cnt --
last_archive(**kwargs)¶Get the last available archive :return:
profiles(**kwargs)¶Get list of profiles.
run(**kwargs)¶Run Salt Support on the minion.
Set available profile name. Default is "default".
Set available profile from the pillars.
Override archive name. Default is "support". This results to "hostname-support-YYYYMMDD-hhmmss.bz2".
Change the default outputter. Default is "nested".
CLI Example:
salt '*' support.run
salt '*' support.run profile=network
salt '*' support.run pillar=something_special
setup_config()¶Return current configuration :return:
sync(**kwargs)¶Sync the latest archive to the host on given location.
CLI Example:
salt '*' support.sync group=test
salt '*' support.sync group=test name=/tmp/myspecial-12345-67890.bz2
salt '*' support.sync group=test name=/tmp/myspecial-12345-67890.bz2 host=allmystuff.lan
salt '*' support.sync group=test name=/tmp/myspecial-12345-67890.bz2 host=allmystuff.lan location=/opt/
group -- name of the local directory to which sync is going to put the result files
name -- name of the archive. Latest, if not specified.
host -- name of the destination host for rsync. Default is master, if not specified.
location -- local destination directory, default temporary if not specified
move -- move archive file[s]. Default is False.
all -- work with all available archives. Default is False (i.e. latest available)