From 92509d34b3c74a8ebf867a59f2d6164d6935bf68 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 22 Mar 2013 12:00:11 -0400 Subject: [PATCH] More launch job notes. --- lib/main/models/__init__.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/main/models/__init__.py b/lib/main/models/__init__.py index 1454409373..9b340ee7de 100644 --- a/lib/main/models/__init__.py +++ b/lib/main/models/__init__.py @@ -213,6 +213,23 @@ class LaunchJob(CommonModel): # run, check -- enough for now, more initially # if check, add "--check" to parameters + # we'll extend ansible core to have callback context like + # self.context.playbook + # self.context.runner + # and the callback will read the environment for ACOM_CELERY_JOB_ID or similar + # and log tons into the database + + # we'll also log stdout/stderr somewhere for debugging + + # the ansible commander setup instructions will include installing the database logging callback + # inventory script is going to need some way to load Django models + # it is documented on ansible.cc under API docs and takes two parameters + # --list + # -- host + + # posting the LaunchJob should return some type of resource that we can check for status + # that all the log data will use as a Foreign Key + # TODO: Events class LaunchJobStatus(CommonModel):