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
Chris Church
71dbb9c818
Docs update following LaunchJob renaming.
2013-04-17 21:53:45 -04:00
Chris Church
883449f4a5
Added helper attributes to job for retrieving hosts by status.
2013-04-17 21:45:41 -04:00
Chris Church
aff422c976
Renamed LaunchJob to JobTemplate, LaunchJobStatus to Job, LaunchJobHostSummary to JobHostSummary, and LaunchJobStatusEvent to JobEvent. Updated admin, celery task, management commands accordingly.
2013-04-17 18:59:21 -04:00
Chris Church
27ac9a206e
Added migration dependency.
2013-04-16 16:18:30 -04:00
Chris Church
52ace2700c
Added relationships to hosts from launch job status and launch job status event, updated admin to display host stats and events.
2013-04-15 19:23:06 -04:00
Chris Church
9dbbf330e8
Added support for token authentication (with test).
2013-04-10 00:41:51 -04:00
Chris Church
038ed04943
Changed celery task reference to store the task_id only, capture traceback if task run fails, update admin to be able to run launch jobs.
2013-04-04 16:53:28 -04:00
Chris Church
541445d60f
Added support and tests for --check option.
2013-04-04 14:47:41 -04:00
Chris Church
e9aa3f78e2
Removed todo/comments that have been implemented.
2013-04-04 14:47:41 -04:00
Chris Church
1b93886be2
Updated callback module to delegate to acom_callback_event management command.
2013-04-04 14:47:41 -04:00
Chris Church
0155f0acea
Update settings template to use SQLite test database when running acom_inventory script in tests, initial stub for callback event logger.
2013-04-02 14:53:52 -04:00
Chris Church
63ef048d73
Fixed test database name in app setup template.
2013-04-02 14:06:54 -04:00
Chris Church
9307e2de26
Notes/todos.
2013-04-02 13:12:32 -04:00
Chris Church
38f3fb0985
Fix import error for missing file.
2013-03-31 23:28:41 -04:00
Chris Church
df1d6ebc7e
Added back try/except for TaskMeta lookup.
2013-03-31 23:25:54 -04:00
Chris Church
678e4c053b
Admin field/inline updates.
2013-03-31 23:23:48 -04:00
Chris Church
8c42d0d9bb
Added test for failed launch job.
2013-03-31 23:23:48 -04:00
Chris Church
3c7cac00f9
Working version of callback module to log to database.
2013-03-31 19:24:53 -04:00
Chris Church
c149f03119
Initial working test for run_launch_job task.
2013-03-31 17:25:18 -04:00
Chris Church
b38cb80efa
Finished acom_inventory commnand tests.
2013-03-31 11:40:13 -04:00
Chris Church
cece190c54
Reapplied migrations since change, work on tests for inventory script.
2013-03-29 02:36:11 -04:00