mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
dfd82ad0bd
Applying latest changes for packaging Fixed typos in man pages Latest round of changes More packaging fixups Fixed salt-common typo Fixed wildcarding in install files Removed extra man pages Removed trailing slash Fixed links Moved binaries to proper packages Fixed man pages Pathing Perms tweak Missing files Fixed spacing Fixed another lintian error build the msgpack stuff Updating rules and install files Fixed shebang Control updates Fixed copyright file Fixed lintian Fixed overrides cmd.retcode no longer uses subprocess.call since it is broken fix issue with source_hash and trailing whitespace Bye-bye pickle, hello msgpack Add docs for new source powers Add support for source_hash to be a source hash string add pure python template type add return clarifying that no states were found if no states are found change some strings to use format add code to cache jobs on the minion if option is set serialize cache data was caching the wrong line data Add cache_jobs to the minion config template add docs for new config param cache_jobs make the minions return to the master in addition to returning to returners Add capability to designate multiple returns only run the apache module if apachectl is installed only load solr module if solr is installed Debug statement used the wrong variable. Only load nginx on machines that have nginx installed Make it more like the apache module
24 lines
426 B
Python
Executable File
24 lines
426 B
Python
Executable File
#!/usr/bin/python
|
|
'''
|
|
Directly call a salt command in the modules, does not require a running salt
|
|
minion to run.
|
|
'''
|
|
|
|
import salt.cli
|
|
import salt.log
|
|
salt.log.setup_console_logger()
|
|
|
|
|
|
def main():
|
|
'''
|
|
The main function
|
|
'''
|
|
client = salt.cli.SaltCall()
|
|
client.run()
|
|
|
|
if __name__ == '__main__':
|
|
try:
|
|
main()
|
|
except KeyboardInterrupt:
|
|
raise SystemExit('\nExiting gracefully on Ctrl-c')
|