Commit Graph
100 Commits
Author SHA1 Message Date
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
Chris Church 602985f7b5 Reverted license type change from 5230360ffe1d130681b572247e591810081850b1 2015-06-02 16:43:39 -04:00
Chris Church a46837608a Capitalize license type return in /api/v1/config/. 2015-06-01 12:27:41 -04:00
Chris Church e23539e69b Fix flake8 warning. 2015-05-30 16:42:56 -04:00
Chris Church 8eb69b96d1 Set created_by and modified_by on default org to superuser (if found). Fixes https://trello.com/c/gERRKtXa 2015-05-30 16:23:12 -04:00
Chris Church 07205bcb88 Disable LDAP support when not allowed by license. 2015-05-30 16:08:19 -04:00
Chris Church a72dbe4428 Update license data to include subscription_name. Implements API part of https://trello.com/c/4IMj3H4V 2015-05-29 22:31:35 -04:00
Chris Church 79a8e541cd Revert cleanup_deleted to delete one at a time, instead of batches. 2015-05-29 14:52:16 -04:00
Chris Church 1b1d43dc59 Prevent launching ad hoc commands when license has expired. 2015-05-21 14:13:37 -04:00
Chris Church de850c48c6 Merge pull request #230 from cchurch/ec2_group_rename_fix
Include pk in inventory source name to keep it unique
2015-05-21 13:11:07 -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 Church 529b7a1117 Remove changes to only count unique hostnames. Fixes https://trello.com/c/HN7S4KF3 again. 2015-05-14 15:48:09 -04:00
Chris Church 74cfca2f21 Remove pasted code from cleanup_deleted, consistently use logger for cleanup commands. 2015-05-14 15:42:29 -04:00
Chris Church 8e89e0e829 Show choices in OPTIONS response for ad hoc command module_name even when empty. 2015-05-14 15:03:02 -04:00
Chris Church 55c41252f8 Always return choices even if empty list. 2015-05-13 13:45:03 -04:00
Chris Church b20ba23538 Merge pull request #203 from chrismeyersfsu/fix-cred_openstack
require project field for openstack credential
2015-05-12 17:28:09 -04:00
Chris Church 693b63ef04 Merge pull request #198 from cchurch/options_meta_updates
Update field metadata returned in OPTIONS response
2015-05-12 17:24:31 -04:00
Chris Church 0af15cd13d Unit test fix, job_type is no longer a required field (defaults to 'run'). 2015-05-12 11:11:32 -04:00
Chris Church 1a5823d0b3 Improve speed of cleanup_deleted system job. Fixes https://trello.com/c/2wB7DMdt 2015-05-11 21:51:42 -04:00
Chris Church 79c00dc511 Prevent relaunching an ad hoc command if the module is no longer in the allowed list. Fixes https://trello.com/c/NS3YX2DU 2015-05-11 21:05:46 -04:00
Chris Church 2d1d371582 Return 400 when attempting to relaunch an ad hoc command with deleted inventory. Fixes https://trello.com/c/IbvBelXJ 2015-05-11 20:32:43 -04:00
Chris Church 9e898bf42a Add support for deleting ad hoc commands. Fixes https://trello.com/c/WLnhi28V 2015-05-11 20:14:15 -04:00
Chris Church d730859575 Count only unique hostnames for total/failed values on dashboard. Fixes https://trello.com/c/HN7S4KF3 2015-05-11 19:54:18 -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
Chris Church cffb2f324f Only update name if already present in result, so it won't show up for cancel/relaunch. 2015-05-01 13:40:06 -04:00
Chris Church 2830095b07 Return only module_name for ad hoc command name. 2015-04-27 21:35:40 -04:00
Chris Church d1ea8708ad Make sure credential can only be assigned to a user OR team, but never both. Fixes https://trello.com/c/yzlAEfAN 2015-04-27 12:43:02 -04:00
Chris Church 0d4c1a4245 Add tests for job template launch with invalid/inactive credential, fix bug that allowed an inactive credential to be passed if the job template already had an active credential. 2015-04-26 12:28:39 -04:00
Chris Church 2093b3db7a Merge pull request #154 from chrismeyersfsu/fix-launch_500
created a serializer for job template launch endpoint
2015-04-26 11:59:08 -04:00
Chris Church 7be54d585b Fix RBAC query bug in checking if user can run ad hoc commands. Fixes https://trello.com/c/fl36Hvh3 2015-04-16 15:27:16 -04:00
Chris Church 6dda8e58ad Don't return ids for deleted credential/inventory for ad hoc commands. Fixes https://trello.com/c/ps2bW38Q 2015-04-16 14:31:23 -04:00
Chris Church 3f98b40ed7 Add test for cleaning up activity stream, delete objects in batches to make it quicker. 2015-04-16 13:40:36 -04:00
Chris Church 76132dbab2 Update license check when adding hosts. Fixes https://trello.com/c/Llol9BCJ 2015-04-16 12:28:13 -04:00
Chris Church 883f912969 Allow verbosity level choices to be specified by settings. 2015-04-15 13:09:03 -04:00
Chris Church 1dd45852a6 Merge pull request #132 from cchurch/ui_version_query_string
Add Tower version to query string for minified CSS/JS.
2015-04-13 17:07:18 -04:00
Chris Church fd09cc3726 Return survey_enabled as False for launch endpoint when no survey spec is defined for a job template; allow job template to be launched anyways. Fixes https://trello.com/c/zErQqf1L 2015-04-10 16:20:57 -04:00
Chris Church 3b66dbed03 Fix those flaking warnings. 2015-04-10 15:16:06 -04:00
Chris Church 090456a247 Add grace_period_remaining to allow adding hosts with AWS licenses. Fixes https://trello.com/c/bw6JbrhW 2015-04-10 14:19:33 -04:00
Chris Church 48bbac7f18 Fix flake8 warnings. 2015-04-09 22:55:53 -04:00
Chris Church 0d9d9db1f9 Fix for failing ad hoc command unit tests. 2015-04-09 22:08:33 -04:00
Chris Church aa0c16d726 Add choices for job and ad hoc command verbosity. 2015-04-09 18:55:42 -04:00
Chris Church d1123d145f Add Tower version to query string for minified CSS/JS. 2015-04-09 15:03:20 -04:00
Chris Church 8beed7f409 Disable ControlPersist for ad hoc commands, should avoid any issues with proot or needing to clean up sockets afterwards. 2015-04-09 10:32:24 -04:00
Chris Church 9500e9b63e Change credential to return 'ssh_password' instead of 'password' when value is set to 'ASK'. 2015-04-08 15:32:45 -04:00
Chris Church 96df8a6d37 Add field on inventory detail to indicate if the user has permission to run ad hoc commands. 2015-04-06 14:58:26 -04:00
Chris Church e2a6f100e1 Finish ad hoc command unit tests. 2015-04-05 18:32:04 -04:00
Chris Church 22e0c9449b Update EC2/GCE inventory scripts from core. 2015-04-03 00:30:58 -04:00
Chris Church 0fd2d8bf25 Merge pull request #111 from wenottingham/cert-foo
More AWX -> Tower fixes.
2015-04-03 00:08:48 -04:00
Chris Church 18e38707c2 Add callback methods for v2 support. Closes #115. 2015-04-03 00:06:49 -04:00
Chris Church 269391e15d Merge pull request #107 from tgerla/galaxy-hack
implement basic galaxy integration in the Project Update playbook
2015-04-02 23:25:54 -04:00
Chris Church 12e0ec960c Add support for cleaning up ad hoc commands. 2015-04-02 15:40:12 -04:00
Chris Church 1a54ed5e17 Fix unified_job_template field in serializer to return ID. 2015-04-01 14:12:31 -04:00
Chris Church 639522fc05 Fix job relaunch test to expect 201. 2015-03-31 19:27:54 -04:00
Chris Church 89bcffc9ad Fix flake8 warnings. 2015-03-31 17:48:36 -04:00
Chris Church 88e7f6624c Update relaunch endpoints to use custom serializer, check passwords needed before creating/copying job or ad hoc command. 2015-03-31 17:40:00 -04:00
Chris Church 02eda72bd9 Add name field for ad hoc commands, get relaunch working. 2015-03-31 16:42:35 -04:00
Chris Church 32fafe02fa Merge pull request #100 from cchurch/adhoc_commands
Support for ad hoc commands
2015-03-31 12:52:23 -04:00
Chris Church 904ea61d54 Make sure stdout template is included in build. 2015-03-30 15:55:57 -04:00
Chris Church f7b8d510dc Implement support for ad hoc commands. 2015-03-30 13:04:19 -04:00
Chris Church c1d90e1897 Keep git URLs in SCP format for project updates. Fixes https://trello.com/c/xUL2FZyu 2015-02-26 15:46:55 -05:00
Chris Church 140e3ec49c Merge pull request #87 from cchurch/f-u-ansi2html-and-your-stupid-gpl-license
Replace ansi2html (GPL) with ansiconv (MIT).
2015-02-24 13:13:12 -05:00
Chris Church ab966fb082 Remove docs for scheme parameter. 2015-02-23 16:41:03 -05:00
Chris Church 7f2a029532 Replace ansi2html (GPL) with ansiconv (MIT). 2015-02-23 16:33:36 -05:00
Chris Church 8db3bdb947 Merge pull request #78 from wenottingham/readme-fix
This fixes a couple of the package names in README to match their names in pip.
2015-02-19 09:53:02 -05:00
Chris Church ef96ba05d8 Merge pull request #71 from matburt/logging_rework
Logging rework
2015-02-14 17:03:32 -05:00
Chris Church c903e64ad5 Remove tags, add group for templates to VMware inventory script. 2015-02-11 03:24:17 -05:00
Chris Church 2d6986bb53 Update EC2 inventory to include changes from ansible/devel, add tag_none to tags group, update vpc group naming to match ansible/devel. 2015-02-11 01:46:22 -05:00
Chris Church bfff155d61 Fix dashboard inventory graph to only count unique hostnames and reflect when licensed hosts count drops; API response is slower than before. Fixes https://trello.com/c/Kfw7QlRE 2015-02-10 16:17:53 -05:00
Chris Church 8da5ba60f3 Pass updated kwargs to new unified job instance. Fixes https://trello.com/c/LFsi5Cq5 2015-01-24 17:48:49 -05:00
Chris Church ee42ae8571 Support older versions of psutil that don't implement as_dict(). 2015-01-16 12:30:31 -05:00
Chris Church 4dff25884f Re-enable proot by default, add python-psutil as a dependency, implement support for terminating SSH control master processes so that playbook runs exit cleanly. 2015-01-14 17:17:15 -05:00
Chris Church c72472fba9 Add back VPC grouping for RDS. 2015-01-09 03:00:25 -05:00
Chris Church fd2cdd39b8 Remove group by VPC for RDS instances. 2015-01-09 02:31:41 -05:00
Chris Church d826cf0a0a Add support for changing proot verbosity via settings. 2015-01-07 13:11:24 -05:00
Chris Church 719669f409 Show formatted output instead of raw HTML for job stdout in browsable API. 2015-01-06 17:25:13 -05:00
Chris Church 6996c66619 Wrap commands with proot first, then ssh-agent. Fixes issue from https://trello.com/c/GU6kiuzq where playbook runs to completion but returns a nonzero exit code. 2015-01-06 15:54:08 -05:00
Chris Church 7c7a68dfad Include return code in exception message when task has an error or is canceled. 2015-01-06 11:27:34 -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
Chris Church 4ee092152b Fix intermediate migrations to reflect modifications to 0055_v210_changes. 2014-12-16 18:02:04 -05:00
Chris Church 41ac7c4d96 Allow space in SCM password. Fixes https://trello.com/c/KaqasZPa 2014-12-16 14:38:58 -05:00
Chris Church 688e80d82c One more extra vars fix. 2014-12-04 17:55:27 -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 3668b3c761 Fix callback consumer port to always be a URL, instead of sometimes an int. 2014-12-03 20:49:08 -05:00
Chris Church 36cf1e1e10 Fix callback consumer port used by job event callback. 2014-12-03 20:44:19 -05:00
Chris Church 1faa2be3b4 Fix for active hosts count when running unit tests with SQLite. 2014-12-03 20:13:08 -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 6b91f46082 Log warning and continue on invalid port specification. Fixes traceback from https://trello.com/c/0OgJ3uRb 2014-12-03 19:27:52 -05:00
Chris Church 526e4f2a2c Use unicode project path when searching for playbooks. Fixes https://trello.com/c/yJGDluu1 2014-12-03 19:10:49 -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
Chris Church 987fd4b3e0 Add name as default sort field for portal job templates. Fixes https://trello.com/c/AIZfaLVC 2014-12-03 00:52:01 -05:00
Chris Church ba652b5dd3 Updated blacklist/rules for environment variables that can be set by source_vars for a custom inventory script. Fixes https://trello.com/c/CWbeHJ0L 2014-12-03 00:45:46 -05:00
Chris Church 21385d1315 Added /portal redirect. Fixes https://trello.com/c/E63JCT96 2014-12-03 00:33:25 -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 2f3d9e9f36 Handle/ignore poorly formatted EC2 instance filters. Fixes https://trello.com/c/YMtWTaW9, https://trello.com/c/laUovaOm and https://trello.com/c/Hu11HhC4 2014-12-02 23:56:35 -05:00
Chris Church 564ba7bf68 Work on update/cancel serializers/views to return correct field names in OPTIONS response. 2014-12-02 18:55:54 -05:00
Chris Church 7e94282934 Better handling of foreign key parameters for (re)launching jobs. Fixes https://trello.com/c/Ty5cjHBd 2014-12-02 15:12:45 -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
Chris Church 35c392ab17 Add instance filters and group by options for EC2 inventory sources. Implements https://trello.com/c/QOVhP0mH 2014-11-26 03:20:45 -05:00
Chris Church ad856391f6 Use select_related and other misc fixes to improve performance and reduce queries. 2014-11-24 21:12:21 -05:00