Commit Graph
628 Commits
Author SHA1 Message Date
Matthew Jones 910f9bd4a3 Fixing up some flake8 issues 2015-12-17 10:48:15 -05:00
Matthew Jones 9db80bd9fc Support tower license within the database
With backwards support for the file-based license
2015-12-16 11:21:52 -05:00
Matthew Jones 35b19bf220 Update settings references
* PROOT
* Pendo tracking state
* ad hoc commands
* activity stream
* org admin visibility
2015-12-15 16:44:08 -05:00
Matthew Jones dfd1ca4ae9 Relocate AUTH_TOKEN_* settings reference 2015-12-15 15:37:26 -05:00
Matthew Jones e97e60bd30 Update settings location for certain values
* PROJECTS_ROOT
* JOBOUTPUT_ROOT
* SCHEDULE_MAX_JOBS
* STDOUT_MAX_BYTES_DISPLAY
2015-12-15 15:14:16 -05:00
Matthew Jones 273181e894 Expand dbconfig support
* Support updating settings values
* Support activity stream endpoint
* Support clearing value
* Improve type conversion system for displaying values
2015-12-14 15:09:10 -05:00
Matthew Jones f53f3d805d View and some validation logic for database config
* Fixing some bugs in the manifest definition
* Database model and schema migration for tower settings
* Initial View and Serializer implementation using a strategy of merging
  model instances and named tuples
2015-12-11 16:57:11 -05:00
Matthew Jones fdcda43de6 Initial Database Configuration bootstrap
* Settings manifest, mapping internal settings to what can be used in
  the database along with type information etc.
* Initial Database model
* Helper object that overlays database settings on django settings
2015-12-07 09:49:13 -05:00
Matthew Jones 780b27e0ed Don't hard-fail if default isn't defined on survey 2015-12-02 15:40:56 -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
Chris Meyers 5e7473e101 Merge pull request #457 from chrismeyersfsu/fix-stdout_dl_token
allow token in get params at stdout endpoint
2015-10-02 08:59:07 -04:00
Chris Meyers 22f0a4b79a allow token in get params at stdout endpoint 2015-10-01 17:25:21 -04:00
Matthew Jones 0e0037b7f8 Merge pull request #451 from matburt/iam_ephemeral_cred
Support IAM ephemeral cred
2015-10-01 10:59:10 -04:00
Chris Meyers 833cbce9e0 add appropriate help_text to run_ad_hoc_command 2015-09-30 14:07:50 -04:00
Matthew Jones 34e028b8c7 Adding security token field to support ec2 sts
And any future credential that might want to use "security_token"
2015-09-30 13:39:36 -04:00
Chris Meyers 000d26d7e3 session limit enforcement
* upon creating a new session, invalidate oldest sessions
2015-09-28 14:17:28 -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
Matthew Jones 09f4c9fbbe Fixed job redaction for projects and unit tests 2015-08-31 16:24:38 -04:00
Matthew Jones 7d2eec0974 Merge pull request #385 from AlanCoding/devel
add whitespace in API responses about survey rejection
2015-08-28 17:06:54 -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
Matthew Jones 549809dfa4 Fix chunked stdout display issue
* We removed stdout redaction from jobs and job templates but only for
  the full stdout dump, this extends it to the limited display also
2015-08-25 16:05:03 -04:00
Chris Meyers c038bdb1d5 flake8 fixes 2015-08-24 08:48:53 -04:00
Alan R 97c089a521 add whitespace in API responses about survey rejection 2015-08-20 15:48:04 -04:00
Matthew Jones d4dccff20c Change default sensitive redaction behavior
* Only project updates will contain sensitive data redaction logic when
  displaying stdout
2015-08-13 15:48:56 -04:00
Matthew Jones 6c2d6a63e7 Change default sensitive redaction behavior
* Only project updates will contain sensitive data redaction logic when
  displaying stdout
2015-08-13 15:48:16 -04:00
Chris Meyers dfff6b218a correctly inherit extra_vars
* inherit extra_vars from job_template
* overwrite with extra vars survey default vars
* overwrite with job extra_vars
* bypass extra_vars inherit logic for job relaunch
* with tests
2015-08-10 11:24:26 -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
Matthew Jones 1e95ac1c54 Merge pull request #361 from cchurch/recursive_inventory
Fix inventory issues when a group is its own parent
2015-08-06 21:30:45 -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 Church f0010cc574 Add support for detecting encrypted openssh format private keys. Fixes https://trello.com/c/ZeVOXN5U 2015-08-05 22:03:20 -04:00
Matthew Jones b1c12ca120 Fix empty standard out behavior
Previously we could just check for the absence of the stdout file to
know we didn't yet/wouldn't ever have any stdout content.  Now that we
are creating the stdout file ahead of time and persisting it we need to
also check to see if the file contains any data.   This is also
necessary for some unit tests.
2015-08-05 21:54:23 -04:00
Matthew Jones c0ea174e93 Rework stdout display for file storage only
* Cleanup old code related to stdout download using temporary files
* Remove copy-into-database code
* Modify stdout download code to reference stdout file
2015-08-05 21:52:47 -04:00
Chris Church b647811456 Add support for detecting encrypted openssh format private keys. Fixes https://trello.com/c/ZeVOXN5U 2015-08-04 18:59:25 -04:00
Matthew Jones 7e45ee8b55 Fix empty standard out behavior
Previously we could just check for the absence of the stdout file to
know we didn't yet/wouldn't ever have any stdout content.  Now that we
are creating the stdout file ahead of time and persisting it we need to
also check to see if the file contains any data.   This is also
necessary for some unit tests.
2015-08-04 14:25:05 -04:00
Matthew Jones bddcb06fab Merge branch 'stdout_file_download' into upstream_master
* stdout_file_download:
  Rework stdout display for file storage only
2015-08-03 15:30:17 -04:00
Matthew Jones 1c777c5441 Rework stdout display for file storage only
* Cleanup old code related to stdout download using temporary files
* Remove copy-into-database code
* Modify stdout download code to reference stdout file
2015-08-03 15:14:51 -04:00
Chris Meyers 0ce3a240e6 on job template launch inherit variables in the following hierarchy
(bottom up):

* Job Launch Extra Vars
* Job Template Survey (defaults)
* Job Template Extra vars
2015-07-28 09:21:43 -04:00
Matthew Jones b1b49ba286 Efficient stdout downloader implementation
* Temporarily dump stdout contents to a configurable temp location
* Implement file streaming to the host via a new format specifier in the
  api view
2015-07-22 15:08:37 -04:00
Matthew Jones 55da712a95 Protect against very large stdout fields
* Defer loading result_stdout_text until specifically needed
* Conditionally display it based on the size of the field
* Provide a helpful message otherwise
2015-07-22 14:13:48 -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 35fd2addc6 Remove runas from the list of become method choices since it's not
implemented in ansible yet (although it is listed in their help docs)
2015-06-01 09:48:16 -04:00
Matthew Jones 22ecb62179 Perform type checking on module_name and args for ad-hoc commands to
satisfy qa.
2015-05-29 14:55:42 -04:00
Matthew Jones 31d0342d41 More copyright headers for api side stuff 2015-05-29 12:10:40 -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