Commit Graph

184 Commits

Author SHA1 Message Date
Aaron Tan
2eda6b9528 Implement timeout on other unified jobs/JTs. 2016-10-17 16:56:39 -04:00
Wayne Witzel III
530a5c0c88 merging devel 2016-10-03 10:35:50 -04:00
Wayne Witzel III
4c8aaf1aed converting from socketio to channels websocket 2016-09-27 18:39:07 -04:00
Chris Church
6ebe45b1bd Configure Tower in Tower:
* Add separate Django app for configuration: awx.conf.
* Migrate from existing main.TowerSettings model to conf.Setting.
* Add settings wrapper to allow get/set/del via django.conf.settings.
* Update existing references to tower_settings to use django.conf.settings.
* Add a settings registry to allow for each Django app to register configurable settings.
* Support setting validation and conversion using Django REST Framework fields.
* Add /api/v1/settings/ to display a list of setting categories.
* Add /api/v1/settings/<slug>/ to display all settings in a category as a single object.
* Allow PUT/PATCH to update setting singleton, DELETE to reset to defaults.
* Add "all" category to display all settings across categories.
* Add "changed" category to display only settings configured in the database.
* Support per-user settings via "user" category (/api/v1/settings/user/).
* Support defaults for user settings via "user-defaults" category (/api/v1/settings/user-defaults/).
* Update serializer metadata to support category, category_slug and placeholder on OPTIONS responses.
* Update serializer metadata to handle child fields of a list/dict.
* Hide raw data form in browsable API for OPTIONS and DELETE.
* Combine existing licensing code into single "TaskEnhancer" class.
* Move license helper functions from awx.api.license into awx.conf.license.
* Update /api/v1/config/ to read/verify/update license using TaskEnhancer and settings wrapper.
* Add support for caching settings accessed via settings wrapper.
* Invalidate cached settings when Setting model changes or is deleted.
* Preload all database settings into cache on first access via settings wrapper.
* Add support for read-only settings than can update their value depending on other settings.
* Use setting_changed signal whenever a setting changes.
* Register configurable authentication, jobs, system and ui settings.
* Register configurable LDAP, RADIUS and social auth settings.
* Add custom fields and validators for URL, LDAP, RADIUS and social auth settings.
* Rewrite existing validator for Credential ssh_private_key to support validating private keys, certs or combinations of both.
* Get all unit/functional tests working with above changes.
* Add "migrate_to_database_settings" command to determine settings to be migrated into the database and comment them out when set in Python settings files.
* Add support for migrating license key from file to database.
* Remove database-configuable settings from local_settings.py example files.
* Update setup role to no longer install files for database-configurable settings.

f 94ff6ee More settings work.
f af4c4e0 Even more db settings stuff.
f 96ea9c0 More settings, attempt at singleton serializer for settings.
f 937c760 More work on singleton/category views in API, add code to comment out settings in Python files, work on command to migrate settings to database.
f 425b0d3 Minor fixes for sprint demo.
f ea402a4 Add support for read-only settings, cleanup license engine, get license support working with DB settings.
f ec289e4 Rename migration, minor fixmes, update setup role.
f 603640b Rewrite key/cert validator, finish adding social auth fields, hook up signals for setting_changed, use None to imply a setting is not set.
f 67d1b5a Get functional/unit tests passing.
f 2919b62 Flake8 fixes.
f e62f421 Add redbaron to requirements, get file to database migration working (except for license).
f c564508 Add support for migrating license file.
f 982f767 Add support for regex in social map fields.
2016-09-26 22:14:47 -04:00
Chris Meyers
27b9fb8dab refactor notifications 2016-08-30 14:36:18 -04:00
Chris Meyers
735a75729f Revert "fixes Save with update_fields did not affect any rows"
This reverts commit c6d282fce27d23317d2649ccf00b75799dad1a86.

This didn't fix the underlying issue. The issue is that the inventory
object may have been deleted by the time save is called.
2016-07-07 12:09:16 -04:00
Chris Meyers
1aca42ae93 fixes Save with update_fields did not affect any rows 2016-07-05 11:46:46 -04:00
Matthew Jones
8055bcc94e Create activity stream event on group delete
Normally this is bypassed for recursive deletes, this manually creates
one beyond the bypass
2016-06-27 16:53:47 -04:00
Akita Noek
ca2b4766a5 Removed some missed things from our Group role removal work
* Removed `groups/n/object_roles`
* Removed `groups/n/access_list`
* `active_roles` from the Group `summary_fields`

 #2631
2016-06-24 14:17:20 -04:00
Akita Noek
ee8215dc52 Removed InventoryGroup roles 2016-06-23 11:01:22 -04:00
AlanCoding
5e07ee2e45 fix flake8 errors from notification template edit 2016-06-17 16:11:22 -04:00
Matthew Jones
462d43060e Fix up missing notifications in invsrc 2016-06-17 11:52:13 -04:00
Matthew Jones
9b49ff15bd Mass rename foreman -> satellite6
For end-user facing elements. We still maintain foreman for some
underlying logic needed by the modules
2016-06-15 11:16:15 -04:00
Akita Noek
fd9c96aa80 Executed the inventory execute_role
Replaced with the 'use_role', which is now useful.

 Completes #1959
2016-05-20 14:10:29 -04:00
AlanCoding
f6b3da0c46 Make error message grammar more consistent 2016-05-18 13:39:06 -04:00
Wayne Witzel III
911c92707c update models to match new migrations 2016-05-13 11:59:14 -04:00
Matthew Jones
5895b3a343 Refactor Notification's naming
Notifier -> NotificationTemplate
notifier -> notification_template
2016-05-05 13:53:46 -04:00
Wayne Witzel III
697f97972f Host is not a Resource, access is granted indirectly through Inventory 2016-04-22 15:51:18 -04:00
Akita Noek
280993a15d Dropped stored role name/description and other superflous fields
For name and description, we'll derive these from the role_field and
content type, which is much better for lots of reasons (eg changing text
the future). Also ditched the rest of the fields comming from the
standard common base model, we didn't use them and they cost several
indexes on the table.
2016-04-22 10:16:04 -04:00
Matthew Jones
da7a61354a Merge pull request #1635 from matburt/new_azure_inventory_and_credentials
Implement Azure RM creds and inventory
2016-04-21 14:38:13 -04:00
Matthew Jones
296f70ce17 Implement Azure RM creds and inventory
* Vendor ansible's azure_rm inventory script
* Add new inventory type
* Add new credential type
* Expand host instance_id column from varchar 100 to 1024 to accept the
  long instance ids returned by Azure
* Make the inventory_import azure match rename more explicit.
2016-04-21 13:51:30 -04:00
Wayne Witzel III
fe75d164a7 added region choice placeholders for Sat6/CloudForms 2016-04-20 09:43:31 -04:00
Wayne Witzel III
320d6377d0 add Red Hat for CloudForms and Satellite 6 2016-04-19 18:03:58 -04:00
Akita Noek
849a9c08b0 Drop our implicit order by inventory for Host models
Sorting by inventory (which is really by inventory.name) which is
untenable for a large number of hosts
2016-04-16 18:30:30 -04:00
Akita Noek
2ddac6cb64 Fixed up some role parenting 2016-04-15 15:07:50 -04:00
Akita Noek
a361f14266 Added adhoc_role to inventory and group, read_role to CustomInventorySource 2016-04-15 14:57:08 -04:00
Akita Noek
128a4f1823 Added read_role to inventory, group, and job templates 2016-04-15 14:33:09 -04:00
Akita Noek
b25894aae8 New field name fixes 2016-04-15 12:19:06 -04:00
Wayne Witzel III
d508254742 updater_role -> update_role 2016-04-15 11:01:35 -04:00
Wayne Witzel III
7098ef8da5 usage_role -> use_role 2016-04-15 11:01:08 -04:00
Wayne Witzel III
5bca1283b2 executor_role -> execute_role 2016-04-15 11:00:33 -04:00
Akita Noek
8887db231b Progress on ripping out RolePermissions 2016-04-14 09:44:20 -04:00
Wayne Witzel III
e5b9766c8f Update Job start / access permissions 2016-04-12 13:28:03 -04:00
Akita Noek
2d31021296 Merge pull request #1411 from wwitzel3/more-rht-integration
RedHat Inventory Integrations
2016-04-07 12:56:12 -05:00
Wayne Witzel III
4a41c0f3b4 make CustomInvetoryScript a resource. 2016-04-07 11:53:21 -04:00
Wayne Witzel III
6635782ed8 add API support for CloudForms inventory (#1099) 2016-04-05 14:43:25 -04:00
Wayne Witzel III
051dfd4b0e add API support for Satellite 6 inventory (#1098) 2016-04-05 14:34:22 -04:00
Akita Noek
219c09728d Merge branch 'devel' of github.com:ansible/ansible-tower into rbac 2016-03-31 11:32:02 -04:00
AlanCoding
fa92b2e851 back out openstack_v3 options but retain v3 functionality 2016-03-30 16:20:20 -04:00
Akita Noek
5baa784ce2 Merge branch 'devel' of github.com:ansible/ansible-tower into merge-devel 2016-03-24 13:51:00 -04:00
AlanCoding
f4b1de766d Adding OpenStack v3 cred type 2016-03-18 16:41:09 -04:00
Akita Noek
cf3c988330 Missing import 2016-03-16 16:43:13 -04:00
Akita Noek
1face5aa28 Dropped unused ResourceMixin from InventorySource 2016-03-16 14:19:31 -04:00
Akita Noek
9e79cf733f Added missing permission grants on a Inventory updater and executor roles 2016-03-16 13:46:15 -04:00
Akita Noek
6ea99583da Mass active flag code removal 2016-03-15 09:29:55 -04:00
Akita Noek
ba833d683e Active flag removal: switched from using mark_inactive to delete calls 2016-03-15 09:29:28 -04:00
Akita Noek
db6117a56d Added role description fields
Completes #1096
2016-03-03 16:19:10 -05:00
Akita Noek
ea2cabe4d4 Merge branch 'devel' of github.com:ansible/ansible-tower into merge-devel 2016-03-01 15:09:58 -05:00
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