Commit Graph

127 Commits

Author SHA1 Message Date
Matthew Jones
0ee12901fe Fix some notifications issues and write some tests
* Fixes some notifier merging issues
* Fixes some more unicode problems
* Implements unit tests
2016-02-29 12:30:00 -05:00
Matthew Jones
75ef0dd395 Implement tower ui view url on models 2016-02-23 14:19:42 -05:00
Matthew Jones
050ed8a200 Proper type for in check
Still an __in for when we need to add another trigger obj
2016-02-23 12:18:31 -05:00
Matthew Jones
dde70dafec Refactor NotificationTemplate to Notifier 2016-02-17 15:18:18 +00:00
Matthew Jones
8db2f60405 Notification serializers, views, and tasks
* Implement concrete Notification model for notification runs
* Implement NotificationTemplate and Notification serializers and views
* Implement ancillary views
* Implement NotificationTemplate trigger m2m fields on all job templates
  via a fields mixin
* Link NotificationTemplates with an org
* Link notifications with the activity stream
* Implement Notification celery tasks
* Extend Backend field parameters to identify sender and receiver as
  parameters needed by the message and not the backend itself
* Updates to backends to better fit the django email backend model as it
  relates to Messages
* Implement success job chain task + notifications
* Implement notifications in error job chain task
2016-02-09 23:12:55 -05:00
Chris Church
60224cdbe4 Update Django to 1.8 and DRF to 3.3, add new Django migrations, update serializers/pagination/metadata, update browsable API styling. 2016-02-02 17:48:04 -05:00
Matthew Jones
b25413002c Fix custom inventory scripts on org deletion
We'll now clear the organization for it, this requires a database
migration to accept null values for custom inventory scripts
2015-10-19 12:07:09 -04:00
Matthew Jones
5727d722b6 Merge remote-tracking branch 'upstream/release_2.3' into devel
* upstream/release_2.3: (91 commits)
  Include python-{paramiko,ecdsa} dependencies
  Remove extra epel testing stanzas
  Unit test for ec2 credentialless inventory
  Fix issue with ec2 iam sync with no credential.
  Use the htpasswd command instead the ansible module
  Pip is no longer needed
  check local user root or not in ./configure
  Remove unneeded when check for super user addition
  Improve distro detection in setup.sh
  Fix superuser check on upgrade
  Minor improvements to setup.sh
  Remove ansible prerequisite check from configure
  Attempt to install ansible within setup.sh
  Allow munin processes to access postgres
  Move up base package dependency install
  fixes jenkins failures
  Proper flake8 fix
  fixes executing processes with correct PYTHONPATH will pickup .pth files
  Show the repo for bundled package file dump
  Proper flake8 fix
  ...
2015-09-03 15:46:10 -04:00
Matthew Jones
15005d3e6b Fix issue with ec2 iam sync with no credential.
When checking if an inventory sync can start allow an ec2 sync to run
even if credentials are not supplied
2015-09-03 13:37:38 -04:00
Sandra Wills
453bbf64e9 fixed a typo, mumber to number
https://github.com/ansible/ansible-tower/blob/devel/awx/main/models/inventory.py#L63
typo fix from mumber to number
2015-08-27 09:36:12 -04:00
Chris Meyers
c038bdb1d5 flake8 fixes 2015-08-24 08:48:53 -04:00
Chris Church
001127f8bd Limit max depth when building mapping of group depths to avoid hitting recursion limit. Fixes https://trello.com/c/2zc0odvX 2015-08-06 21:31:42 -04:00
Chris Church
3560e5a2eb Limit max depth when building mapping of group depths to avoid hitting recursion limit. Fixes https://trello.com/c/2zc0odvX 2015-08-06 14:59:04 -04:00
Chris Meyers
2dc22042ee flake8 fixes 2015-07-20 11:21:03 -04:00
Chris Meyers
fcc789f13b Differentiate between an expired license and a non-existant license 2015-06-16 15:59:23 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Chris Church
c24e51f515 Fix flake8 warning. 2015-06-02 20:09:26 -04:00
Chris Church
77ab83eb0d Fix inventory source name to exclude replacement text, fix inventory update name to be based only on inventory and group name. Fixes https://trello.com/c/zYrHMz9S 2015-06-02 19:46:18 -04:00
Matthew Jones
b3da3b34a3 Changing some legal headers for python source files 2015-05-29 12:10:39 -04:00
Chris Meyers
0be4485849 removed debug print 2015-05-22 11:48:22 -04:00
Chris Meyers
acc0f420ce removed print statements 2015-05-22 09:40:56 -04:00
Chris Meyers
79d6ecc2ef inherit child job finish status 2015-05-21 17:07:05 -04:00
Chris Meyers
c46c58fe7a Merge pull request #224 from chrismeyersfsu/feature-schedule_jobs_no_credentials_fail_fast
restrict the running of jobs
2015-05-21 13:23:44 -04:00
Chris Church
7f1c97b167 Include pk in inventory source name to keep it unique even with group renames. Fixes https://trello.com/c/PnmDWCai 2015-05-20 14:00:33 -04:00
Chris Meyers
51afab566b flake8 2015-05-20 08:23:11 -04:00
Chris Meyers
28d9b994eb restrict the running of jobs
The following jobs require a credential to launch
* InventoryUpdate without custom script
* Job
* AdHocJob
2015-05-19 10:11:51 -04:00
Chris Church
e017270201 Update serializers to remove empty choices, provide default values for fields, and better indicate the field type when possible for OPTIONS requests and browsable API docs. 2015-05-11 18:25:30 -04:00
John Mitchell
326581c44f changed Openstack to OpenStack 2015-05-06 15:24:19 -04:00
Chris Meyers
f6541059a3 mark license expired inventory update + tests 2015-05-04 12:51:46 -04:00
Matthew Jones
6c5fd93ce5 Merge pull request #137 from matburt/openstack_inventory_support
Openstack inventory support
2015-04-14 12:43:20 -04:00
Chris Meyers
64d4304a97 flake8 2015-04-14 10:16:23 -04:00
Chris Meyers
a930c4d8b2 detect invalid license thrown by inventory update 2015-04-14 08:36:55 -04:00
Matthew Jones
6525120c15 model and task support for launching openstack inventory updates 2015-04-13 15:05:58 -04:00
Chris Church
f7b8d510dc Implement support for ad hoc commands. 2015-03-30 13:04:19 -04:00
Matthew Jones
6a18a50d99 Fixing flake8 errors, this should be almost all of them! 2015-02-11 16:42:55 -05:00
Matthew Jones
1d76c1cd06 More pep8 goodness 2015-02-04 14:44:38 -05:00
Chris Meyers
76ad9720dd fixed inventory source update # license hosts check 2015-01-27 08:58:30 -05:00
Chris Meyers
d051b6348b Fix child job->parent job status update.
* refactored so that project shares parents _update_parent_instance() code
* allow parent job status field to be anything a child status job field can be
* fixed child job status to parent job status propagation
2015-01-26 16:55:26 -05:00
Matthew Jones
70d6e38f57 Wrap computed fields in transaction atomic to prevent deadlocks and
weird rollbacks
2015-01-19 15:37:29 -05:00
Chris Meyers
a6fdd9534e added ec2 tags_none grouping for hosts without tags 2015-01-16 10:15:23 -05:00
Chris Church
844e1b7343 Update validation for instance filters to allow 'tag:key=value'. Fixes https://trello.com/c/VH9Vnd8z. 2014-12-17 02:31:33 -05:00
Chris Church
ee97e83b2c Allow EC2 inventory sources to omit a credential in order to use IAM roles. Implements https://trello.com/c/aBMF95eF 2014-12-17 01:50:25 -05:00
Matthew Jones
6f2a354b6e Wrong base class for Custom Inventory Scripts 2014-12-11 13:25:31 -05:00
Matthew Jones
3d3cf2bb9e Make sure we include schedules as things that can be included when
creatinga  concrete job(any) from a job template, project update, or
inventory update
2014-12-08 14:03:16 -05:00
Chris Church
12f07e454f Reenable test for key=value extra vars, remove some unused imports. 2014-12-04 15:42:18 -05:00
Chris Church
fcf7398ec6 Add common code for determining active (licensed) hosts with unique names, update licensing code and inventory import to use it. Implements https://trello.com/c/2Q9Mosks 2014-12-03 19:41:01 -05:00
Chris Church
109988da13 Fix typo, modify can_update to prevent inventory update from even starting when source script is missing. 2014-12-03 18:35:33 -05:00
Matthew Jones
19c0d04885 Adding organization reference to the custom inventory script 2014-12-03 15:05:44 -05:00
Chris Church
02f9f68536 Added API validation of instance filter names. Fixes https://trello.com/c/VH9Vnd8z 2014-12-03 00:26:25 -05:00
Chris Church
1e56d3d2fd Add tests for inventory_filters and group_by, fix to convert None to empty string. 2014-11-26 13:34:10 -05:00