Removed todo/comments that have been implemented.

This commit is contained in:
Chris Church
2013-04-04 14:47:10 -04:00
parent 1b93886be2
commit e9aa3f78e2
2 changed files with 1 additions and 16 deletions

View File

@@ -7,8 +7,6 @@ TODO items for ansible commander
* host relationships in DB, last launch job status per host, etc (self.play.inventory) <- Chris * host relationships in DB, last launch job status per host, etc (self.play.inventory) <- Chris
* stats attributes on launch job (??) * stats attributes on launch job (??)
* make launch job rest triggerable & launch job statuses readable. launch_job.start() <-- MPD * make launch job rest triggerable & launch job statuses readable. launch_job.start() <-- MPD
* Chris ---- callback plugin calls external script <-- Chris
ansible_delegate_callback calls ACOM_DATABASE_LOGGER script ?
* do we need something other than default playbook (ProjectOptions) <-- BOTH, TBD * do we need something other than default playbook (ProjectOptions) <-- BOTH, TBD
* way to send cntrl-c to kill job (method on job?) <-- Chris, low priority * way to send cntrl-c to kill job (method on job?) <-- Chris, low priority
* documentation on how to run with callbacks from NOT a launchjob <-- Chris * documentation on how to run with callbacks from NOT a launchjob <-- Chris

View File

@@ -725,20 +725,14 @@ class LaunchJob(CommonModel):
# project has one default playbook but really should have a list of playbooks and flags ... # project has one default playbook but really should have a list of playbooks and flags ...
# ENOUGH_TO_RUN_DJANGO=foo ACOM_INVENTORY_ID=<pk> ansible-playbook <path to project selected playbook.yml> -i ansible-commander-inventory.py
# ^-- this is a hard coded path
# ssh-agent bash # ssh-agent bash
# ssh-add ... < key entry # ssh-add ... < key entry
# #
# inventory script I can write, and will use ACOM_INVENTORY_ID
#
#
# playbook in source control is already on the disk # playbook in source control is already on the disk
# job_type: # job_type:
# run, check -- enough for now, more initially # run, check -- enough for now, more initially
# if check, add "--check" to parameters # if check, add "--check" to parameters
# we'll extend ansible core to have callback context like # we'll extend ansible core to have callback context like
# self.context.playbook # self.context.playbook
@@ -746,19 +740,12 @@ class LaunchJob(CommonModel):
# and the callback will read the environment for ACOM_CELERY_JOB_ID or similar # and the callback will read the environment for ACOM_CELERY_JOB_ID or similar
# and log tons into the database # 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 # the ansible commander setup instructions will include installing the database logging callback
# inventory script is going to need some way to load Django models # 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 # it is documented on ansible.cc under API docs and takes two parameters
# --list # --list
# -- host <hostname> # -- host <hostname>
# 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): class LaunchJobStatus(CommonModel):
''' '''
Status for a single run of a launch job. Status for a single run of a launch job.