Commit Graph

40 Commits

Author SHA1 Message Date
AlanCoding
f76680b625 add back in the Tower logger, fix bug 2017-01-05 10:28:23 -05:00
AlanCoding
cc4aa49556 pool restart with thread-based external log config
for CTiT enablement of celery task Tower logs
2017-01-04 14:53:49 -05:00
Chris Church
092c2be0e7 Make any settings read-only that have been modified in custom Python config files. 2016-12-14 16:57:32 -05:00
Wayne Witzel III
83b985ed2e tower settings removal depends on conf migration 2016-12-12 19:21:10 -05:00
Chris Church
27a3bae5dc Merge pull request #4319 from cchurch/remove-cached-validated-license-data
Remove caching of validated license data.
2016-12-07 13:47:58 -05:00
Chris Church
f2e2ca30ab Skip settings field validation for encrypted fields if submitted value is the $encrypted$ placeholder. 2016-12-06 19:36:31 -05:00
Chris Church
f55c47e927 Remove caching of validated license data. 2016-12-06 17:57:23 -05:00
Alan Rominger
ef87a58239 Merge pull request #4242 from ansible/logging_int
Logging Integration
2016-12-02 16:51:00 -05:00
Matthew Jones
b17ca58fdd Trigger local cache flush before broadcasting on settings change 2016-12-02 16:46:48 -05:00
AlanCoding
064a40ba92 Manage null default state for logging integration and DB definition 2016-12-02 16:45:27 -05:00
AlanCoding
7848198b9f New awx.main.utils directory, distributed task to invalidate settings 2016-12-02 14:36:04 -05:00
AlanCoding
7344a998b2 move formatter to logger file, settings reload on startup 2016-12-01 19:09:55 -05:00
AlanCoding
3643d9c06b allow for reloading of logging settings via CTiT 2016-11-30 16:52:47 -05:00
Chris Church
6a02ca1de0 Add support for encrypting settings that are passwords. 2016-11-30 11:22:39 -05:00
Chris Church
f15144807f Merge pull request #4093 from cchurch/tower-url-base-reset
Reset TOWER_URL_BASE to the hostname used for the request
2016-11-22 14:51:09 -05:00
Chris Church
8ba2c57b1e Merge pull request #4092 from cchurch/custom-logo-custom-login-info
Add support for CUSTOM_LOGO and CUSTOM_LOGIN_INFO settings
2016-11-22 14:50:59 -05:00
Chris Church
f007046e2b Reset TOWER_URL_BASE to the hostname used for the request when setting is deleted. 2016-11-21 16:35:53 -05:00
Chris Church
a35ed0a09d Add support for CUSTOM_LOGO and CUSTOM_LOGIN_INFO settings, add support to migrate from local_settings.json and custom_console_logo.png. 2016-11-21 15:33:07 -05:00
Chris Church
5b1df83fcc Add support for hiding settings based on whether features are enabled in the license. 2016-11-21 14:15:41 -05:00
Chris Church
798c8b631d Hide user settings category if no user settings are registered. 2016-11-19 21:26:35 -05:00
Aaron Tan
1cbeb71843 Merge pull request #4034 from jangsutsr/4023_resume_flake8_E302
Resume flake8 E302.
2016-11-16 10:41:18 -05:00
Aaron Tan
9e4655419e Fix flake8 E302 errors. 2016-11-15 20:59:39 -05:00
Chris Church
77a0e1445a Merge pull request #4009 from cchurch/fix-callback-url-fields
Fix callback URL fields to update when TOWER_URL_BASE changes
2016-11-15 18:28:44 -05:00
Aaron Tan
473ed016de Fix flake8 E305 errors. 2016-11-15 16:32:27 -05:00
Chris Church
89c629e796 Never return database values for read-only fields. 2016-11-15 00:59:10 -05:00
Chris Church
8dc5e7725c Fix configure Tower in Tower to work with updated django-jsonfield. 2016-11-15 00:22:55 -05:00
AlanCoding
339661a6a5 New method to monkeypatch JSONField 2016-11-14 16:35:56 -05:00
sundeep-co-in
688b5fef68 resolve conflict: settings/defaults.py 2016-11-02 15:19:57 +05:30
Matthew Jones
a1de353543 Shifting migrations after 3.0.3 merge 2016-11-01 14:40:32 -04:00
sundeep-co-in
d7b3b90f4d update strings 2016-10-25 16:12:41 +05:30
Chris Church
bedb363613 Merge pull request #3665 from cchurch/prevent-removing-license-via-system-settings
Prevent removing license via settings
2016-10-12 14:54:49 -04:00
Chris Church
8883738a7c Fix issue when string list settings field is null. Resolves #3683. 2016-10-12 14:47:22 -04:00
Chris Church
2488e1e3f0 Show actual settings module in use. 2016-10-12 13:40:05 -04:00
Jake McDermott
47b2b4322b use created and modified dates from TowerSettings when migrating to conf Settings 2016-10-10 10:25:53 -04:00
Chris Church
0992e354e3 Prevent removing license via PUT/PATCH/DELETE to /api/v1/settings/system/. 2016-10-07 14:13:51 -04:00
Chris Church
17f70fbc21 Merge pull request #3606 from cchurch/fix-ldap-saml-defaults
Fix default value validation for LDAP/SAML settings to prevent warnings.
2016-09-28 11:11:46 -04:00
Chris Church
0ce7b31502 Fix default value validation for LDAP/SAML settings to prevent warnings. 2016-09-28 11:04:35 -04:00
Chris Church
0007ef2546 Add --skip-errors option to migrate_to_database_settings command, allow any false/null value for 'off' in pendo setting. 2016-09-28 09:58:19 -04:00
Chris Church
41d05b0ae8 Flake8 fixes. 2016-09-26 22:15:26 -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