1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00
Commit Graph

204 Commits

Author SHA1 Message Date
Matthew Jones
2ba7b3bdac Update vendored ec2 module 2015-10-29 13:27:34 -04:00
Matthew Jones
b579b76099 Handle playbook_on_include events from v2 ansible 2015-10-20 11:18:07 -04:00
Matthew Jones
484a33f9c6 Update azure module from ansible 2015-10-12 11:46:20 -04:00
Matthew Jones
7a7e1941b1 Update vmware module from ansible 2015-10-12 11:44:58 -04:00
Matthew Jones
e7c274b80c Updating rax module from ansible 2015-10-12 11:41:59 -04:00
Matthew Jones
d382bf6f4f Update to latest GCE inventory module 2015-10-12 11:37:00 -04:00
Matthew Jones
4dc56e5d66 Fix an issue with ansible 2.0 and our fact cacher
This will be dependent on a PR submitted to core for 2.0 also:
https://github.com/ansible/ansible/pull/12695

So will not work right away unless you are pulling from devel.
2015-10-09 12:17:17 -04:00
Bill Nottingham
916391d0b3 Fix base class import on Ansible 2.0. 2015-10-07 13:03:52 -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
Matthew Jones
5de5b0209b Remove unused time import 2015-09-30 16:20:41 -04:00
Matthew Jones
e034c0b326 Fix proot controlpersist cleanup issue
* Also removed psutil version and feature check from tasks.  We now
  include the most recent version of psutil all around
* Old versions of psutil must have had these Process() items as
  properties, they are functions now so we weren't properly evaluating
  them.  With this change we are and things are back to working normally
2015-09-30 15:56:31 -04:00
Matthew Jones
5ee3c78e7f Update ec2 module to latest ansible version 2015-09-30 13:40:06 -04:00
Chris Church
6c409404ba Incorporate OpenStack inventory changes from https://github.com/ansible/ansible/pull/11447 back into Tower. 2015-08-10 15:49:25 -04:00
Chris Church
0633d4c672 Don't create a group that is its own parent when an EC2 tag has an empty value. Fixes https://trello.com/c/2zc0odvX 2015-08-06 15:03:54 -04:00
Chris Church
5b16934459 Set azure inventory cache defaults before reading settings. 2015-06-30 16:41:22 -04:00
Chris Church
e217ab00c0 Fix azure inventory to set ['_meta']['hostvars'] instead of just ['meta']. 2015-06-30 16:35:07 -04:00
Chris Church
b7b5293fed Include vmware inventory updates from https://github.com/ansible/ansible/pull/11300 2015-06-30 14:00:06 -04:00
Chris Church
356d1b7134 Include gce inventory changes from https://github.com/ansible/ansible/pull/11299 2015-06-30 12:46:34 -04:00
Chris Church
0c6459cd07 Include ec2 inventory changes from https://github.com/ansible/ansible/pull/11293.
Include ec2.ini doc changes from https://github.com/ansible/ansible/pull/11236 and https://github.com/ansible/ansible/pull/11409.
2015-06-30 12:41:45 -04:00
Chris Meyers
d076835051 for scan_services against RH machines. Do not depend on US language 2015-06-29 11:26:58 -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 Meyers
d5b7be3f4f Merge pull request #276 from chrismeyersfsu/fix-fact_inventory_relationship
associate scan runs with a particular inventory host
2015-06-11 20:55:13 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Chris Meyers
0c7638bdd7 associate scan runs with a particular inventory host 2015-06-11 15:14:00 -04:00
Chris Church
58207b4a04 Update ec2 inventory from core. 2015-06-09 14:53:31 -04:00
Matthew Jones
d76ee309c6 Allo the file fact scanner to take a list of paths instead of just one path 2015-06-03 11:36:50 -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
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
6e0dd0dc59 fixed fact cache sender to work when gather_facts: false 2015-05-14 17:08:49 -04:00
Matthew Jones
2e040e9de3 Update scan facts to include the service scanner which was inexplicably
missing, update scan_packages to match the footprint of
scan_services (makes searching easier)
2015-05-05 14:46:28 -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
Chris Meyers
f2b58af125 prefer port with name SSH but don't require it 2015-04-20 15:39:21 -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
James Laska
86cb23117f Resolve pycrypto gce failure on EL6 systems
Tracking upstream change https://github.com/ansible/ansible/pull/10787
2015-04-20 13:19:49 -04:00
Chris Meyers
48c194f2a9 handle shutdown azure instances 2015-04-16 18:06:55 -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
Matthew Jones
6525120c15 model and task support for launching openstack inventory updates 2015-04-13 15:05:58 -04:00
Matthew Jones
c1dc55fceb Merging chrismeyers's openstack work branch changes to the core
openstack module.  Adding python-netifaces dependency for setup packaging
2015-04-13 11:47:18 -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
Matthew Jones
2163ce14b6 Import openclient module, example config and vendored dependent modules,
updated vendored modules readme
2015-04-07 14:24:39 -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
Matthew Jones
39d0f91fdb Merge pull request #117 from matburt/scan_files_implementation
Scan files implementation
2015-04-03 15:37:34 -04:00
Chris Church
22e0c9449b Update EC2/GCE inventory scripts from core. 2015-04-03 00:30:58 -04:00
Chris Church
18e38707c2 Add callback methods for v2 support. Closes #115. 2015-04-03 00:06:49 -04:00
Chris Church
f7b8d510dc Implement support for ad hoc commands. 2015-03-30 13:04:19 -04:00
Matthew Jones
c0364b5bd1 Support recursive mode on the file scanner 2015-03-27 16:51:03 -04:00
Matthew Jones
e282a2045c Add some documentation to the header for the file scanner 2015-03-26 11:37:20 -04:00
Matthew Jones
cb8b5f3025 Add some header documentation for the service scanning module 2015-03-26 10:51:46 -04:00
Matthew Jones
b3c24279ad Initial file scanning module 2015-03-25 16:25:32 -04:00
Matthew Jones
4252845b0d Make the service scanner more closely match the package scanner output 2015-03-25 13:23:55 -04:00
Matthew Jones
5f66fbb7c4 Include some more systemd information in the data structure 2015-03-23 12:08:42 -04:00
Matthew Jones
dd44c0a0f2 Initial implementation of the service scanner module 2015-03-19 13:21:45 -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
Matthew Jones
987a898380 Small adjustment for flake8 passage 2015-03-05 15:44:50 -05:00
Matthew Jones
4d271bef35 Initial Scan Job Template type implementation 2015-03-03 14:48:22 -05:00
Matthew Jones
b179517564 "source" for apt 2015-02-25 13:44:54 -05:00
Matthew Jones
3615f8a634 Update package fact format after discussions with core team 2015-02-25 13:31:14 -05:00
Matthew Jones
0db749ea19 Fix up date formatting when emitting facts to the fact service 2015-02-23 10:11:10 -05:00
Matthew Jones
70f2e5ea1d Handle unifying the datetime value as a key that we can update on the
tower side
2015-02-20 17:19:19 -05:00
Matthew Jones
fd1668dfd8 Implement fact caching service and mongo reference handler 2015-02-20 16:56:35 -05:00
Matthew Jones
fed4262ee2 Some light implimentation details for basic fact caching and collection 2015-02-19 11:27:40 -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
Matthew Jones
a8c7b0dc41 Emit an error message if the host doesn't exist in azure 2015-01-19 12:04:58 -05:00
Matthew Jones
a7e6d62e2c Rename 'primaries' in windows azure to 'Cloud_services' per recommendation 2015-01-19 11:48:34 -05:00
Matthew Jones
a80c5196ad Modify the windows azure inventory script to import all of the instances
and create a new group to identify primary hosts
2015-01-19 10:27:56 -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 Meyers
a6fdd9534e added ec2 tags_none grouping for hosts without tags 2015-01-16 10:15:23 -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
Matthew Jones
a5bc796518 Fix an issue where host could be None during an instance bootup process
thus causing an error in the inventory import
2015-01-12 13:56:31 -05:00
Matthew Jones
f01289642c Fix an issue where azure inventory plugin would throw an error if there
were no instances available
2015-01-12 13:54:20 -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
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
Matthew Jones
fcc7d3d7b1 Rework the callback emitter a little more, purge tower internals from
the module and fallback to the older codebase's mechanism.   Make sure
we are passing the callback port as a string otherwise it seems to
corrupt the shell
2014-12-03 11:27:37 -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
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
52aca5a081 Theoretically working Socket implementation. 2014-11-21 09:24:49 -06:00
Chris Church
bb5dc1b9f9 Include core ec2 inventory changes from 4755bde28d 2014-11-20 10:11:29 -05:00
Matthew Jones
c85f4fbac0 Import rax module from ansible core 2014-11-17 15:20:46 -05:00
Luke Sneeringer
122bf9fcd3 Merge branch 'master' into expunge-zeromq-unstable 2014-11-11 07:52:11 -06:00
Chris Church
73636ef1a0 Update ec2 inventory to include instance_filters support (https://github.com/ansible/ansible/pull/8822). 2014-11-10 14:27:14 -05:00
Luke Sneeringer
0e8121f7f1 Merge branch 'master' into expunge-zeromq-unstable
Conflicts:
	setup/roles/awx_install/handlers/main.yml
2014-11-10 08:47:08 -06:00
Luke Sneeringer
ec55603e3f Fixing various small issues to improve tests. 2014-11-05 16:07:57 -06:00
Chris Church
43f46f830f Update VMware inventory to better handle AttributeErrors. 2014-11-04 12:06:09 -05:00
Luke Sneeringer
fd9647ce94 Use closing consistently. 2014-11-04 10:46:17 -06:00
Luke Sneeringer
f000e71371 Merge branch 'master' into expunge-zeromq-unstable 2014-10-30 15:30:39 -05:00
Chris Church
b1f1cfa633 Update docstring for VMware inventory script. 2014-10-30 14:10:14 -04:00
Chris Church
f5a174f991 Fixes https://trello.com/c/8KGzMa75 - Updates to VMware inventory script to include additional host variables, groups and ansible_ssh_host. 2014-10-30 13:47:49 -04:00
Luke Sneeringer
8d90650134 Shifting job callbacks to ZeroMQ. 2014-10-29 13:51:47 -05:00
Matthew Jones
046561ecaa add counter to jobevent object sourced from callback ansible plugin 2014-08-19 15:50:41 -04:00
Luke Sneeringer
c4825dbf6c Fix VMware capitalization 2014-08-14 14:59:37 -04:00