Commit Graph
100 Commits
Author SHA1 Message Date
Chris Church 27c80c81e0 Fixes AC-376. Set description to empty string when passed as null to the API. 2013-08-29 16:22:19 -04:00
Chris Church 5ce8328230 Fixes AC-334. Don't set failed flag on job events when ignore_errors is True. 2013-08-28 10:21:02 -04:00
Chris Church 92e0beb5cb Fixes AC-346. Allow playbooks with invalid YAML syntax to show up in list of available playbooks. 2013-08-28 09:58:36 -04:00
Chris Church 8d16485f7f Updated third-party requirements to latest versions. 2013-08-27 23:20:47 -04:00
Chris Church 0129036b40 For AC-332. Added support to inventory script view, inventory script and task engine to include hostvars inline when using Ansible >= 1.3. 2013-08-27 00:09:05 -04:00
Chris Church 2bb5374685 Added inventory tree view for AC-360. 2013-08-26 12:57:41 -04:00
Chris Church e343c9386d Fix for 500 error when POST data is not a dict. 2013-08-26 11:26:03 -04:00
Chris Church e661f96054 AC-132 Minor updates after testing via API, notes on remaining items to implement. 2013-08-26 10:31:39 -04:00
Chris Church ee3ba2c0e1 More work in progress on AC-132. 2013-08-26 10:31:39 -04:00
Chris Church e594296c9b Fix to maintain Django 1.4 compatibility. 2013-08-26 10:31:39 -04:00
Chris Church fc68955bad For AC-132. Work in progress on project SCM support. 2013-08-26 10:31:39 -04:00
Chris Church 89f5182935 Add API doc templates to manifest so they are included in the build. 2013-08-22 14:59:11 -04:00
Chris Church 718b566a03 Fix for filtering using __int on boolean fields. 2013-08-13 20:19:53 -04:00
Chris Church b73077b2f3 Fix bug from previous commit. 2013-08-08 17:57:33 -04:00
Chris Church bd5e9e2b6e For AC-331. Update queries to use select_related and prefetch_related to avoid duplicate queries and improve performance. Add all_groups and groups items to summary_fields for hosts. 2013-08-08 17:44:48 -04:00
Chris Church 30d2a4f5c9 For AC-331. Major updates to API filtering to allow negative filtering, use of a list of items with the __in lookup, more flexible boolean/null values, more validation of filter values, and tests. 2013-08-08 15:58:58 -04:00
Chris Church efbdb67c33 Work on AC-205. Filter job events that are internal as a result of async polling, update event display name for various async job events. 2013-08-07 02:42:33 -04:00
Chris Church f787ff8251 Work on AC-205. Update display of extra events triggered by async polling. 2013-08-05 00:55:59 -04:00
Chris Church a4af00da85 Fix for AC-321. Mark hosts and groups inactive when inventory is marked inactive. 2013-08-04 22:56:07 -04:00
Chris Church 49beca2b97 Fix for AC-310. Change how we unattach a group from a parent group when it has no other parents, mark it inactive instead of just removing the relationship. 2013-08-04 22:38:36 -04:00
Chris Church 057e7bad59 Update browsable API built-in documentation to use templates. 2013-08-04 20:46:26 -04:00
Chris Church 8ccf4c0a89 Fix typo in development settings. 2013-07-30 22:48:30 -04:00
Chris Church 01d7df3ab2 Added sample script for launching a job via the API. 2013-07-30 22:48:30 -04:00
Chris Church 92bfddb834 Fix for django-jsonfield to work on Django 1.4.1 (default with Ubuntu 12.10, fix for AC-222), update settings to provide more information when unable to load local/global settings file. 2013-07-28 16:30:19 -04:00
Chris Church 4c2af3a879 Fix AC-293. Explicitly check for start/cancel permissions on job for access to job start/cancel views. 2013-07-28 13:50:25 -04:00
Chris Church 6f09299284 Fix for AC-298. Remove check for project-team association as requirement to edit/run a job. 2013-07-28 10:22:20 -04:00
Chris Church fce1a04a76 Fix for AC-284. Delete groups when they are disassociated and have no more parents. Remove all group and host associations from a group when it is marked inactive. 2013-07-27 23:00:07 -04:00
Chris Church 222bbd7c98 Revert previous fix for deleted name change, update how we change username when a user is marked inactive to keep it under 30 chars. 2013-07-27 21:05:26 -04:00
Chris Church de2cd7b0fc Update for AC-291, playbook_on_stats (aka Playbook Complete) event now sets changed and failed flags when any host has changes/failures. 2013-07-27 20:19:12 -04:00
Chris Church 764d2ff94d Implemented AC-22, hosts and child groups are migrated to a group's parent when the group is deleted or marked inactive. 2013-07-27 01:06:09 -04:00
Chris Church d78bc8fb19 Fix so command tests will work on Django 1.4.x. 2013-07-27 00:21:45 -04:00
Chris Church 2c166e501e Implemented AC-166, added signal handlers to update has_active_failures flag whenever host/group/job are changed/deleted and whenever group-host and group-group relationships change. 2013-07-26 23:49:49 -04:00
Chris Church 21fc169b29 Fix for imports in awx.main.utils. 2013-07-26 22:00:44 -04:00
Chris Church 5ad361a32b AC-237 Fix for automatic naming of callback jobs, remove unique constraint on job name. 2013-07-26 21:14:20 -04:00
Chris Church 81b78121b3 Add user to summary fields. 2013-07-26 18:52:48 -04:00
Chris Church f6b3be40f1 Fix for AC-265. 2013-07-26 18:43:25 -04:00
Chris Church c3639f96eb Fix AC-263 and AC-264. Update how we check for access to item referenced via foreign key, and determining whether an immutable field has changed. 2013-07-26 15:41:09 -04:00
Chris Church 4aaeb9506f Fixed AC-261. Relaxed permission requirements on parent object needed to view sublists. 2013-07-25 21:47:43 -04:00
Chris Church 9916a5eefb Fix for AC-257. Handle setting/updating password through UserSerializer. 2013-07-25 17:12:28 -04:00
Chris Church 0c54dcef39 Finish implementing access checks for all objects, update tests to pass. 2013-07-25 11:15:12 -04:00
Chris Church 8e9c8a2692 Stub for UI tests with selenium. 2013-07-25 11:15:12 -04:00
Chris Church bc49627203 Permissions-related updates and fixes, more tests, better handling of any user input that would previously generate a server error. 2013-07-25 11:15:12 -04:00
Chris Church 5ef8a48600 Start on tests for inventory_import command. 2013-07-25 11:15:11 -04:00
Chris Church 6fda31e790 Fix imports, __all__ definition, organization/team sublists under projects. 2013-07-25 11:15:11 -04:00
Chris Church a6c767907e Renamed some API files/classes to mimic REST framework names, moved queryset filtering for permissions alongside other permissions/access checks, cleaned up base views to handle get_queryset based on class attributes, cleaned up post to sublist to create/attach/unattach. 2013-07-25 11:15:11 -04:00
Chris Church af751e3f38 Fixed /api/v1/projects/N/organizations to allow creating a new organization via POST. 2013-07-19 21:32:16 -04:00
Chris Church 9af163691a Allow post to /api/v1/projects/N/organizations/, add resource for /api/v1/projects/N/teams/. 2013-07-19 11:49:40 -04:00
Chris Church c5f2f2bfaf Added support for defining additional environment variables in settings to pass to the subprocess launched by the celery task, specify HOME and USER in settings by default instead of supervisord configuration. 2013-07-16 01:39:17 -04:00
Chris Church 707c94f32d Import json directly, don't assume it is always available via awx.main.models.*. 2013-07-15 14:51:28 -04:00
Chris Church 5a630d6bfa Update playbook to set environment in supervisor config, expose job_args, job_cwd and job_env attributes via API. 2013-07-15 14:37:26 -04:00
Chris Church 8e0974c688 Enabled syslog by default for all 500 errors. 2013-07-15 14:27:02 -04:00
Chris Church 9c39f13056 Hide DeprecationWarning messages when in production (DEBUG=False). 2013-07-15 13:29:06 -04:00
Chris Church d09d94bca2 Finish implementation/tests of job template callback. 2013-07-11 22:32:51 -04:00
Chris Church ca949eb71e Initial working version of job template callback with a test. 2013-07-11 14:57:59 -04:00
Chris Church 259083c0e2 Fix for jobs failing to run. 2013-07-08 22:06:21 -04:00
Chris Church 42071315b5 Minor updates to local app_setup playbook so it *should* work to setup PostgreSQL database. 2013-07-08 13:28:56 -04:00
Chris Church b909e79088 Expose event_level attribute on job events. 2013-07-02 16:58:03 -04:00
Chris Church fccf663d42 Add tests for changed flag on job events. 2013-07-02 14:41:05 -04:00
Chris Church 4762166caf Added changed flag to job events, added launch_type to jobs. 2013-07-02 12:11:32 -04:00
Chris Church 914e586150 Work in progress on empheral host callback. 2013-07-02 12:11:32 -04:00
Chris Church 689765c587 Fix to only update the user's password if a non-empty password string is provided. 2013-06-30 13:00:16 -04:00
Chris Church adcc402910 Removed print, fixed so inventory tests will still work without a valid license file. 2013-06-30 12:53:25 -04:00
Chris Church 6f0d644f5f First pass at cleanup_deleted management command. 2013-06-30 12:36:48 -04:00
Chris Church e5b827944e Cleanup user permissions check, fix bug to allow admin to change own username, first_name and last_name. 2013-06-28 23:07:45 -04:00
Chris Church 775ae688f8 Added validation to prevent setting an invalid project local_path via the API. 2013-06-28 22:25:04 -04:00
Chris Church 089098dc3f Local path choices for projects now only returns unused project paths. 2013-06-28 21:44:26 -04:00
Chris Church 98af899b49 Reapplied earlier fix so that indent option is used, response is still verified to be JSON. 2013-06-28 21:34:20 -04:00
Chris Church 15dd0039c7 Added setting for production builds to be able to run tests using SQLite. 2013-06-28 06:07:58 -04:00
Chris Church 395685b23b Fix to not require explicit port specification in REST_API_URL. 2013-06-28 05:54:05 -04:00
Chris Church ffa48f2c9e Fixed comment line in requirements. 2013-06-28 05:37:00 -04:00
Chris Church 3984730754 Remove print from callback, fix failed flag propagation on job event, add tests for failed flag and play/task field on job events. 2013-06-28 05:03:22 -04:00
Chris Church d387f013b7 Expose play and task attributes on job event. 2013-06-27 15:42:25 -04:00
Chris Church ec080313fc Propagate failed flag on job events to parent job events. 2013-06-27 15:42:25 -04:00
Chris Church ead71569bf Fix inventory script json bug. 2013-06-27 15:42:25 -04:00
Chris Church bf5a1d1d67 Added modified sdist command to distribute certain files as pyc only. 2013-06-25 19:46:20 -04:00
Chris Church 07d151b8cb Add validation for permission serializer. 2013-06-25 14:54:14 -04:00
Chris Church bb65f7556c Removed old path for inventory script. 2013-06-25 11:43:26 -04:00
Chris Church d9fb5d17a5 Support South migrations and Django management commands in .pyc files. 2013-06-25 11:35:40 -04:00
Chris Church cbd64ee65d Include local versions of third-party dependencies, particularly those unavailable or outdated as OS packages. 2013-06-23 21:08:54 -04:00
Chris Church 07657926b9 Rename ansibleworks to awx. 2013-06-23 13:21:02 -04:00
Chris Church 2da6966f8d Added main readme, work on contributing doc. 2013-06-23 11:50:46 -04:00
Chris Church 28404dd8a6 Fix comment typos. 2013-06-22 16:30:17 -04:00
Chris Church d822287609 Updated to be compatible with Django 1.4.5, added tox settings for automated testing with Python 2.6/2.7 and Django 1.4/1.5. 2013-06-22 16:27:17 -04:00
Chris Church f0a0a69ec7 Makefile updates, updated requirement packages, added requirements files for both local and PyPI installations. 2013-06-20 15:53:20 -04:00
Chris Church 1d3bd62bd2 Update callback plugin to use API, remove inventory/callback management commands. 2013-06-20 12:44:51 -04:00
Chris Church 59d1ae7322 Work in progress on inventory script using API. 2013-06-20 04:20:59 -04:00
Chris Church 85a483a6fb Update API/admin to accept either JSON or YAML for inventory/host/group variables. 2013-06-19 01:39:43 -04:00
Chris Church c9da8294df Fix to only specify sudo user if explicitly given by the credentials, so as not to force the playbook to require sudo privileges to run. 2013-06-17 19:48:09 -04:00
Chris Church 0dbb737f20 Added setting for using minified JS in production. 2013-06-17 12:31:26 -04:00
Chris Church 232c4f2391 Added job event parent/child fields, update event display to show hierarchy levels. 2013-06-17 12:28:21 -04:00
Chris Church f9b385bed2 Fix tests to pass when using PostgreSQL as the test database. 2013-06-16 00:07:03 -04:00
Chris Church c6cb86321e Renaming some views for somewhat consistent naming, add hosts/N/groups and hosts/N/all_groups views, removed creation_date field from seralizers. 2013-06-15 00:16:56 -04:00
Chris Church e435951fe4 Added config resource with project base dir and local paths, various other API cleanup. 2013-06-14 23:15:31 -04:00
Chris Church abd81b7492 Added variable data field and resource on inventory. Updated inventory script to output inventory variables for the 'all' group. 2013-06-14 20:09:55 -04:00
Chris Church c526f58098 Updates to work with REST framework 2.3.x, update browseable API style to mimic UI. 2013-06-14 04:13:34 -04:00
Chris Church 365a21f103 Added has_active_failures as database field on Inventory, Group and Host models. 2013-06-12 23:57:30 -04:00
Chris Church 6557fb33f3 Updated inventory script to only return active groups and active hosts for active inventories. 2013-06-12 22:37:25 -04:00
Chris Church 65c8176507 Added tarballs for third-party Python dependencies, updated requirements, added optional django-debug-toolbar support. 2013-06-10 21:54:42 -04:00
Chris Church bbdfe8bc46 Minor fix for host has_active_failures field, indentation on custom_filters file. 2013-06-10 21:51:44 -04:00
Chris Church cba55a061a Numerous model-related updates and supporing changes, including:
- Add variables field on Host/Group models and remove separate VariableData model.
- Add data migrations for existing variable data.
- Update views, serializers and tests to keep roughly the same API interface for variable data.
- Add has_active_failures properties on Group/Host models to provide indication of last job status.
- Add job_tags field on JobTemplate/Job models to specify tags to ansible-playbook.
- Add host_config_key field to JobTemplate model for use by empheral hosts.
- Add job_args, job_cwd and job_env fields to Job model to capture more info from running the job.
- Add failed flag on JobHostSummary model.
- Add play/task fields on JobEvent model to capture new context variables from callback.
- Add parent field on JobEvent model to capture hierarchy of job events.
- Add hosts field on JobEvent model to capture all hosts associated with the event (especially useful for parent events in the hierarchy).
- Removed existing Tag model, replace with django-taggit instead.
- Removed existing AuditLog model, replacement TBD.
2013-06-10 17:34:37 -04:00