Commit Graph
100 Commits
Author SHA1 Message Date
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
Chris Church ec986f4ebe Fix for root groups to actually show only the groups with no parents. 2013-06-04 11:17:23 -04:00
Chris Church 4fae801355 Bumped version number, updated settings and playbook to add support for logging via syslog. 2013-05-30 01:02:43 -04:00
Chris Church 40dd9b08be Added error handling views and templates, added setting to log request errors to a file. 2013-05-28 14:11:19 -04:00
Chris Church c71a04dfb0 Minor fix to migration cleanup target. 2013-05-24 18:12:20 -04:00
Chris Church c0aaff7850 Cleaned up migrations, updated Makefile migrate target to handle this change. 2013-05-24 17:55:03 -04:00
Chris Church f7b983c807 Added event_display field to job event, with slightly more readable event name. 2013-05-23 12:13:13 -04:00
Chris Church 0cd9f51bf9 Playbook updates after some testing. 2013-05-23 04:58:44 -04:00
Chris Church 1ef11155da Added new set of playbooks for deploying to a single-server configuration, including Vagrant configuration for testing. 2013-05-23 03:22:26 -04:00
Chris Church 3b91d68130 Don't try to use minified JS in production mode (for now). 2013-05-22 22:03:24 -04:00
Chris Church e137d17964 Updated manifest to include UI static files. 2013-05-21 19:40:50 -04:00
Chris Church 903274db3e Removed print statements left in the code. 2013-05-21 19:19:46 -04:00
Chris Church 9478d8d532 Updates to setup/requirements, add Makefile target for running tests with coverage. 2013-05-21 19:08:46 -04:00
Chris Church aeac739735 Major rename of package from lib to ansibleworks. 2013-05-21 18:20:26 -04:00
Chris Church 5133b9a30e Update to production settings to fail if no config found, updates to build script, added Makefile targets for build. 2013-05-21 17:39:40 -04:00
Chris Church 06239b4c04 Return passwords_needed_to_start when not provided via POST to start job. 2013-05-21 11:21:22 -04:00
Chris Church 14b09dcc1a Update to commands/tests to fix new settings-related issues. 2013-05-21 11:20:47 -04:00
Chris Church 7809e94fde Settings updates to support production installation. 2013-05-21 09:10:54 -04:00
Chris Church 0bd576de62 Fix JSONField default in models and migrations to avoid error when running from an installation via tarball. 2013-05-19 23:56:37 -04:00
Chris Church ac172928f8 Added job_events and job_host_summaries for groups. 2013-05-16 21:59:58 -04:00
Chris Church 602fce73e4 Removed failing organization test (since we no longer return a 409). 2013-05-16 19:53:29 -04:00
Chris Church b3615465d1 Renamed _get_queryset in new inventory view to reflect filtering updates. 2013-05-14 19:18:28 -04:00
Chris Church 7183549289 Moved queryset filtering/ordering out of BaseList into the CustomFilterBackend. Added job_host_summaries sublists for jobs and hosts, add detail view for job host summary, with tests. 2013-05-14 19:17:17 -04:00
Chris Church e528ede913 Disable transaction middleware when starting jobs via the API (only for tests). 2013-05-14 15:29:12 -04:00
Chris Church fe5a454441 Basic support for job start/cancel via REST API with supporting tests. 2013-05-13 10:43:43 -04:00
Chris Church a20573a68d More job template tests, enable creating a new job by posting to the job template job list. 2013-05-11 05:11:31 -04:00
Chris Church 6e6600b822 Model and test updates for last_job and last_job_host_summary fields on Host. 2013-05-11 02:10:17 -04:00
Chris Church 8f2ea04b48 Add simple test for credentials list, should not allow POST (for now). 2013-05-10 11:14:14 -04:00
Chris Church 17e96751c0 Removed local_settings*.tmp files added by @chouseknecht, updated .gitignore to prevent them from getting added again. 2013-05-10 00:51:03 -04:00
Chris Church d7737f6b43 Changed project property available_playbooks to playbooks, exposed via API as a child resource of the project detail. Changed project local_path to a CharField and added helper method and API attribute to show the list of available choices for local_path. 2013-05-10 00:44:21 -04:00
Chris Church 2cbed11034 Reverted JSONField change on VariableData and fixed related tests and migration. Also fixed older migrations that break when migrating backwards. 2013-05-09 17:11:45 -04:00
Chris Church d51fa4f629 Added credentials list view. 2013-05-09 15:14:43 -04:00
Chris Church e6377a1243 Fix lingering import statement, add context processor to expose settings to templates. 2013-05-09 14:31:08 -04:00
Chris Church fdc9422409 Catch exception raised for the reverse access of a OneToOneField. 2013-05-08 17:56:40 -04:00
Chris Church f7cd605415 Model changes based on jobs API discussion, code and test fixes to work with those changes. 2013-05-08 17:43:09 -04:00
Chris Church e5057fbd83 Removed old versions of UI in static directory. 2013-05-08 12:02:56 -04:00
Chris Church cc16c394fe Added debug condition to determine which JS files to include. 2013-05-08 11:58:37 -04:00
Chris Church 6f6e3d23a5 Added static url prefix to partials and images. 2013-05-08 11:46:22 -04:00
Chris Church eff2e65c9a Moved UI into its own Django app. 2013-05-08 11:41:00 -04:00
Chris Church 2a15d07221 Split out RBAC and can_user_* methods from models into access.py. Moved list/item permissions checks from the base views into RBAC. Added serializers/views/tests for jobs REST API. 2013-05-08 10:46:16 -04:00
Chris Church 75ea4a1cda Initial setup script. 2013-05-07 18:17:04 -04:00
Chris Church 932b1ed620 Add variable data to admin. 2013-05-07 18:17:04 -04:00
Chris Church ef92fe3960 Updates to permissions checks (and tests), add logging around permission checks, permission-related fixes to support browsable API, work in progress on job templates API, added default logging settings. 2013-05-01 14:10:42 -04:00
Chris Church b6e7d964c2 Add foreign key field back to serializer so test will pass. 2013-04-29 16:35:39 -04:00
Chris Church edbd9c42ff Admin updates, added a few more related resources. 2013-04-29 16:02:21 -04:00
Chris Church 69a9916423 Refactored URLs to be more DRY, changed reverse lookups to use named url patterns. 2013-04-27 23:19:28 -04:00
Chris Church 48c0b1c6d5 Update browseable REST API interface, make resource URLs into links. 2013-04-27 19:51:56 -04:00
Chris Church 2a875411d0 Removed old comments/code, better test coverage. 2013-04-26 23:18:13 -04:00
Chris Church ecf6be4335 More tests for jobs and tasks. 2013-04-26 18:24:17 -04:00
Chris Church 52d31d105d Jobs updates to start/cancel and prompt for passwords via the admin. 2013-04-26 18:24:17 -04:00
Chris Church d6d468633f Task refactoring, updates to support ssh-agent and responding to password prompts. Needs test for using credentials. 2013-04-24 11:35:30 -04:00
Chris Church cc25d55121 Work in progress on credential/job updates. 2013-04-24 00:43:36 -04:00
Chris Church 5901acb6a8 Added separate method to start Job independently from creating it; Jobs no longer start automatically when first saved. Added method on JobTemplate to create a new Job with defaults copied from the template. 2013-04-19 18:11:31 -04:00
Chris Church bc1f3e320e Changed how Project local_path is configured, added option to specify playbook on JobTemplate and Job, updated admin and tests. 2013-04-19 15:40:13 -04:00
Chris Church 6567e6ac10 Might help to add the forms for the admin to import. 2013-04-19 10:31:47 -04:00
Chris Church b9da59c5f3 Admin updates. 2013-04-19 10:12:49 -04:00