Commit Graph

168 Commits

Author SHA1 Message Date
Matthew Jones
dc0d732ad4 Fix merge issues on stdout branch
The act of committing a PR that including part of these changes and then
reverting it meant that some of the changes from the original branch
didn't land in this new PR.   This commit adds the missing bits.

Lesson learned:  Create a new branch when submitting a PR on a
previously reverted PR
2015-08-05 21:53:46 -04:00
Matthew Jones
4d84a603ad Add missing fact receiver logfile in production settings 2015-06-24 11:05:19 -04:00
Chris Meyers
31b9304165 register a logger for fact receiver 2015-06-23 11:39:44 -04:00
Chris Church
8df9c40435 Add example settings for unit test, remove invalid private argument. 2015-06-12 00:59:10 -04:00
Chris Church
4607972135 Included openstack inventory script from core + changes from some open PRs, fixes to be able to use without custom changes for tower. 2015-06-12 00:58:33 -04:00
Chris Church
dfe4e0c694 Add unit test for azure inventory. 2015-06-12 00:52:57 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Matthew Jones
f945719794 Fix a few more copyright statements 2015-06-11 14:53:25 -04:00
Luke Sneeringer
b0b5e3a726 Do not accept enterprise licenses in some cases.
This commit makes it so that enterprise licenses are rejected in HA
environments if there is no active MongoDB server.

Additionally, it suppresses trying to connect to MongoDB in cases where
it is not present or meaningful.
2015-06-04 14:42:14 -05:00
Matthew Jones
b3da3b34a3 Changing some legal headers for python source files 2015-05-29 12:10:39 -04:00
James Laska
98306350c0 Merge pull request #233 from jlaska/flake8_cleanup
Additional flake8 cleanup
2015-05-20 20:39:46 -04:00
James Laska
7064c9bed4 Additional flake8 cleanup
The flake8 command was identifying several warnings and errors. This change
addresses the flake8 warnings and updates the setup.cfg with additional
exclusions. If accepted, jenkins will be updated to use the flake8 command,
rather than using the django_jenkins plugin. This will expedite jenkins
testing.
2015-05-20 20:33:22 -04:00
Chris Meyers
7ce9f3f38d cache templates 2015-05-17 16:24:08 -04:00
Luke Sneeringer
7d65b439fa Support PBKDF2 passwords in dev. 2015-05-14 11:29:00 -05:00
Chris Meyers
9dfce90987 Merge pull request #194 from chrismeyersfsu/feature-unit_test_speedup
speedup each test case by .3 seconds
2015-05-11 10:27:46 -04:00
Chris Meyers
7d7206c7b0 use md5 pass hasher when dev or testing 2015-05-09 08:13:14 -04:00
Matthew Jones
b07803d2b8 Switch tower_warnings.log to tower.log 2015-05-05 16:53:06 -04:00
Matthew Jones
19901ba7cf Turns out "hostId" is not a good unique host identifier in openstack.
Switching to use "id" instead.
2015-04-23 16:02:44 -04:00
Matthew Jones
405be7edd8 Merge branch 'openstack_inventory_support' into upstream_master
* openstack_inventory_support:
  Use inventory_source source_vars to control what address we use for ansible_ssh_host
  Some small changes to tower openstack work
2015-04-23 11:09:41 -04:00
Chris Meyers
13aa8fce82 Merge pull request #147 from chrismeyersfsu/fix-azuer
handle shutdown azure instances
2015-04-23 10:06:26 -04:00
Chris Meyers
bbd1f41471 track azure vm by unique identifier 2015-04-22 07:05:36 -04:00
Chris Meyers
754b004c24 add instance state 2015-04-21 17:43:54 -04:00
Matthew Jones
f45d75c06c Some small changes to tower openstack work
1) Favor private addresses in the openstack inventory sync
2) Force refresh
3) use hostId and promote it to the top level vars object so we can
track individual host changes
2015-04-20 15:11:06 -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 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
Matthew Jones
6525120c15 model and task support for launching openstack inventory updates 2015-04-13 15:05:58 -04:00
James Laska
c197f90e45 Comment out jshint+csslint from django_jenkins 2015-04-10 09:54:41 -04:00
Chris Church
d1123d145f Add Tower version to query string for minified CSS/JS. 2015-04-09 15:03:20 -04:00
Chris Meyers
2a039bb31f moved new fact implementation to fact app 2015-04-07 09:50:35 -04:00
Chris Meyers
35e1c19fc2 do not run tests if mongodb connect fails 2015-04-07 09:50:35 -04:00
Chris Meyers
c03cef022d Implemented fact scan storage logic.
* added mongo connection logic
* added mongo dbtransform logic to allow keys with . and $
* altered tower fact scanner CacheModule to emit a message for each fact module facts (including ansible facts). Previously, seperate facts module facts were getting concatenated to each subsequent emi
* tower fact scanner CacheModule timeout set as to not hang for forever
* broke apart commands.py test
* added unit test for run_fact_cache_receiver, facts, and dbtransform
2015-04-07 09:50:35 -04:00
Chris Church
f7b8d510dc Implement support for ad hoc commands. 2015-03-30 13:04:19 -04:00
Matthew Jones
0f5beca9ae Major fixes for job callback receiver processing
* Add logic to ansible callback plugin to prevent it from waiting
  forever to submit events to Tower
* Lower process recycle threshold for tower callback receiver
* Make recycle threshold configurable
* Properly exit the main callback receiver management process if
  the event receiver process is dead so we don't leave dead worker
  processes
* Set a configurable maximum number of messages that can be waiting
  in a worker process queue before it is skipped instead of filling
  up memory on a dead worker process
* Skip over a dead worker process if it's queue is full
* Force restart callback receiver if all queues are dead
* Roll back transaction.atomic with the thought that it is causing
  deadlocks in the worker process.  Use the old commit_on_success
  mechanism with retry logic
* Seperate queue nonblocking expected exception from any other type
  of exception that could be encountered on the queue fetch operation
2015-03-13 11:18:18 -04:00
Joe Fiorini
f2b4590545 Allow all static files to be loaded from dist 2015-03-02 16:47:42 -05:00
Matthew Jones
323226aefd Merge pull request #85 from matburt/fact_scans_and_caching
Fact scans and caching
2015-02-25 13:50:48 -05:00
Matthew Jones
fd1668dfd8 Implement fact caching service and mongo reference handler 2015-02-20 16:56:35 -05:00
James Laska
40fdbc01e3 Pyflakes and pep8 are replaced by flake8 2015-02-18 13:00:49 -05:00
Matthew Jones
207a319349 Update packaging and production configuration for new logging 2015-02-13 13:50:36 -05:00
Matthew Jones
0b8b39f951 Refactor logging to work primarily with rotating files instead of syslog 2015-02-13 10:30:01 -05:00
Matthew Jones
e9e4c6856d Implement job template job history statuses, configurable 2015-02-09 14:19:18 -05:00
Chris Meyers
981eeb3c88 towards tower-qa running against dev ansible-tower 2015-02-03 11:58:56 -05:00
Chris Meyers
f1674df788 towards an easier to setup development environment 2015-02-03 09:22:31 -05:00
James Laska
ea0b39859b Enable django_jenkins flake8 reporting
Also exclude awx/ui from pep8 runs.
2015-01-29 13:56:04 -05:00
Matthew Jones
97f59a0b04 Filter TERM from variables pushed into the launch shell environment 2015-01-21 11:42:38 -05:00
Matthew Jones
e8a837ea11 Add a default maximum of 10 jobs waiting from a job template if launched
by a schedule
2014-12-08 10:51:43 -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
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
Matthew Jones
8c4aee35d1 Merge remote-tracking branch 'origin/master' into reintroduce-zeromq-unstable
* origin/master:
  Add tests for inventory_filters and group_by, fix to convert None to empty string.
  Job submission
  Fix up unified job creation parameter passing
  Roll this back, it doesn't do what I expect
  Make sure we propogate source_script into the related fields it needs to be in
  Update job template launch docs with credential_needed_to_start documentation
  Custom Inventory Scripts
  forms/Sources.js
  Add instance filters and group by options for EC2 inventory sources.  Implements https://trello.com/c/QOVhP0mH
  Make sure when we call create_unified_job we can pass important fields as _id or without
  Make sure we pass extra parameters down to the unified job create method so we can pick up credential if given
  Add system job template launch documentation
  Track source_script in summary and related fields for relevant inventory sources
  Host events
  Simplify include_vars based on mpd feedback
  Update the apt-cache when installing python-pip
  Only the primary should syncdb and migrate
  Update package changelogs
  Update release history and process docs
  Update ansible-tower service config in playbook
2014-11-26 13:40:37 -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
Luke Sneeringer
1efff8267d ZeroMQ changes. 2014-11-21 16:21:15 -06:00