From d3364336340cf0c762356a79d0aa58123e0fe3c0 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 22 Mar 2013 11:49:04 -0400 Subject: [PATCH] Take notes on launch job features --- lib/main/models/__init__.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/lib/main/models/__init__.py b/lib/main/models/__init__.py index 4f7f98a2ec..1454409373 100644 --- a/lib/main/models/__init__.py +++ b/lib/main/models/__init__.py @@ -195,8 +195,23 @@ class LaunchJob(CommonModel): project = models.ForeignKey('Project', on_delete=SET_NULL, null=True, default=None, blank=True, related_name='launch_jobs') user = models.ForeignKey('auth.User', on_delete=SET_NULL, null=True, default=None, blank=True, related_name='launch_jobs') job_type = models.CharField(max_length=64) + + # project has one default playbook but really should have a list of playbooks and flags ... - + + # ENOUGH_TO_RUN_DJANGO=foo ACOM_INVENTORY_ID= ansible-playbook -i ansible-commander-inventory.py + # ^-- this is a hard coded path + # ssh-agent bash + # ssh-add ... < key entry + # + # inventory script I can write, and will use ACOM_INVENTORY_ID + # + # + # playbook in source control is already on the disk + + # job_type: + # run, check -- enough for now, more initially + # if check, add "--check" to parameters # TODO: Events