Commit 615e0aa1 authored by Jason Frisvold's avatar Jason Frisvold
Browse files

- Rough loop flow

parent 405d2165
......@@ -34,3 +34,5 @@ Slim framework for the web interface? https://github.com/codeguy/Slim
Spawn log requires data from cloud and spawn tables. Disable only? Or duplicate data?
https://pythonhosted.org/netaddr/index.html
https://stackoverflow.com/questions/250283/how-to-scp-in-python
......@@ -84,6 +84,17 @@ def main(argv):
# MAIN LOOP
# Determine if we should be running now
# Get the list of servers to access
# Loop through the list
# Get the key for each server
# Build configs (based on what criteria? always? Only when changed?)
# SCP configs over (if there are configs)
# Get results from server
# Process results, update database, store results
# end loop
logger.info('Sleeping until next loop iteration')
# Sleep until the beginning of the next minute
......@@ -145,4 +156,4 @@ try:
if __name__ == "__main__":
main(sys.argv[1:])
except KeyboardInterrupt:
sys.exit()
\ No newline at end of file
sys.exit()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment