Commit Graph

498 Commits

Author SHA1 Message Date
Chris Church
130d1f071f Return URL to new job created from job template callback. 2014-04-15 15:41:49 -04:00
Chris Church
7eed13cca4 AC-448 Add support for mapping LDAP users to teams based on LDAP group membership. 2014-04-15 14:22:45 -04:00
Chris Church
e8b0d7451e AC-1182 Handle a schedule rrule that results in zero occurrences. 2014-04-15 13:24:06 -04:00
Matthew Jones
99f2f65be2 Fix issue AC-1047, don't use pk when verifying that the user exists and isn't anonymous 2014-04-15 11:46:16 -04:00
Chris Church
2546cbdbb6 AC-504 Capture role when available for job events. 2014-04-15 00:22:57 -04:00
Chris Church
1d417fe573 AC-1191 Fix limit parameter on callback jobs to intersect with any limit specified on the job template. 2014-04-14 23:40:06 -04:00
Chris Church
55da67fa91 AC-1181 Fixed job serializer to copy default name/description from job template. 2014-04-14 23:09:02 -04:00
Chris Church
1283a78e09 AC-1134 Updated rax/ec2 inventory scripts from ansible. Added ability to filter groups/hosts by regular expression and exclude empty groups, so that Tower can exclude RAX/EC2 instance ID groups and EC2 RDS hosts/groups. 2014-04-08 23:50:57 -04:00
Chris Church
59dc2a2cb8 AC-1158 Fix project to set delete on next update. 2014-04-08 15:41:40 -04:00
Matthew Jones
78e208dcdb Use id instead of pk or checking for anonymous user 2014-04-07 17:11:11 -04:00
Matthew Jones
3876e06a8d Fix AC-1155, make sure we check for anonymous user because that's what will come back through the rest api 2014-04-07 14:49:45 -04:00
Matthew Jones
064dd6dc08 Fix up unit tests where we no longer allow posting a schedule to an
inventory source that is not a cloud source
2014-04-07 14:18:59 -04:00
Matthew Jones
1e50f0cc24 Don't add other jobs to the dependency task chain such that if we are
running a job (as opposed to an inventory update or project update) they
may proceed even if the job failed.
2014-04-06 02:29:06 -04:00
Matthew Jones
b51a867b5f More fixes for the license obfuscation 2014-04-03 17:16:03 -04:00
Matthew Jones
05613c1bea Make sure we are pulling in the right license class after obfuscation 2014-04-03 17:04:48 -04:00
Matthew Jones
2587fe9f18 Obfuscate the license engine... implements AC-1069 2014-04-03 15:49:14 -04:00
Chris Church
9b33057042 AC-1122 Fixed inventory source name (and therefore inventory update name) to pull from group/inventory name. 2014-04-03 14:19:48 -04:00
Matthew Jones
641c8d8e05 Check the result of signal_start when adding a schedule and mark the
task as failed if it failed to signal the starting
2014-04-03 13:56:00 -04:00
Matthew Jones
711c1824a3 Fix issue AC-1112... disallow multiple dtstart and rrule segments 2014-04-03 13:14:53 -04:00
Matthew Jones
2e4f62d0a6 Reimplement last_run detection in the periodic Tower scheduler task to
not rely on celery's last run information
2014-04-02 21:51:45 -04:00
Matthew Jones
d190aa3001 Wrap up rrule validation for scheduler 2014-04-02 11:44:49 -04:00
Matthew Jones
3e2e682658 Re-do the way we perform dtend calculation by parsing the until value
instead of attempting to read the last item from the list in cases where
the list is very long
2014-04-02 11:44:49 -04:00
Chris Church
2c319cc986 Update title for browsabl API to Ansible Tower, return dated version for development/nightly builds. 2014-04-02 00:16:48 -04:00
Chris Church
3aa517154e Get unit tests to pass with created_by changes. 2014-04-01 22:42:16 -04:00
Chris Church
c453c26124 Fix previous change for determining when to use ssh-agent. 2014-04-01 21:52:53 -04:00
Chris Church
118ddf97f6 Get created_by and modified_by updating automatically. 2014-04-01 21:27:32 -04:00
Chris Church
762e8656c5 Use ssh-agent for encrypted ssh_key_data even when ssh_key_unlock is empty. 2014-04-01 20:35:36 -04:00
Chris Church
86599cf1e3 Add API resource for unified job stdout with HTML output of ANSI color codes. 2014-04-01 20:15:43 -04:00
Chris Church
658581cce0 AC-1116 Support for deleting project/inventory updates. 2014-04-01 17:15:41 -04:00
Matthew Jones
4069a33ab0 Scheduler unit tests 2014-04-01 17:12:46 -04:00
Matthew Jones
306544dca0 Fix up schedule access control by referencing the right base object 2014-04-01 16:48:45 -04:00
Chris Church
9479068cda AC-1114 Mark schedules inactive when their parent unified job template is marked inactive. 2014-04-01 16:17:29 -04:00
Chris Church
1c649a0752 AC-1108 Downgrade django-jenkins to get unit tests passing. Fix activity stream tests to not assume PK is always 1. 2014-04-01 14:56:37 -04:00
Matthew Jones
54599578a0 Fix up ScheduleAccess queryset to fit between schedules and unified jobs 2014-04-01 13:13:53 -04:00
Matthew Jones
49f6bd3e1c Fix imports for using Job in some models 2014-04-01 13:02:33 -04:00
Matthew Jones
2e6457b887 Recalculate dtstart and dtend on every save now that it is idempotwhatever 2014-04-01 10:09:52 -04:00
Chris Church
008ec8f86e AC-601 Add groups/hosts collections to inventory sources, add inventory sources collections to groups/hosts to indicate which inventory source(s) have created/updated the given groups/hosts. Prevent setting an explicit inventory source for a group that is being managed by another parent with cloud inventory source. 2014-03-31 19:26:03 -04:00
Chris Church
d7f31f9777 Fix edge case in inventory import that would cause a group to become its own parent. 2014-03-31 17:37:41 -04:00
Matthew Jones
2913ce21d2 Make sure we store the real start value for a schedule 2014-03-31 17:35:49 -04:00
Matthew Jones
4a535e5404 Updating dependency check for jobs, project updates, and inventory updates 2014-03-31 17:16:49 -04:00
Chris Church
47218c17e4 AC-1040 Added progress output for unified jobs data migration. 2014-03-31 16:26:29 -04:00
Chris Church
67b8f57518 AC-1040 Add some output while running large unified jobs migration. 2014-03-31 16:26:29 -04:00
Matthew Jones
60b399409a Update old schedules if we missed them 2014-03-31 15:33:25 -04:00
Matthew Jones
9e898953dd Revert start_args when launching job 2014-03-31 12:45:57 -04:00
Matthew Jones
7e5ac7b3fa Make sure we shoehorn start args to empty string 2014-03-31 11:38:54 -04:00
Matthew Jones
96a4752f2f Be more strict when verifying dtstart 2014-03-31 11:33:49 -04:00
Matthew Jones
a3ca786758 Fix some import errors and filter errors when updating unified_jobs with
schedule information
2014-03-31 10:26:12 -04:00
Chris Church
e1d3da731e AC-1040 Model cleanup/refactor, add and use job_explanation field. 2014-03-30 22:57:45 -04:00
Chris Church
fe5d154d76 AC-1040 Exposed list of choices for type field. 2014-03-29 14:34:22 -04:00
Chris Church
35e4bd477c AC-1040 Cleanup old code in tasks, combine methods from unified job subclasses into base classes. 2014-03-28 22:07:24 -04:00