Commit Graph

33 Commits

Author SHA1 Message Date
Matthew Jones
2b1bcc23be Merge branch 'purge_ansible_name' into release_3.2.0
* purge_ansible_name:
  Remove ansible reference from dev PKG-INFO
  Add back in PRIVILEGE_ESCALATION_METHODS inadvertantly removed
  Add awx_ and AWX_ environment vars and extra_vars alongside Tower
  Refactor some tower periodic tasks to label as awx
  Refactor Notification backend for tower -> awx
  Refactor fact cache plugin from tower -> awx
  Rename tower display plugins to awx display
  Mass rename from ansible_(awx|tower) -> (awx|tower)
2017-07-26 23:06:55 -04:00
Matthew Jones
cc0802c87e Refactor fact cache plugin from tower -> awx 2017-07-26 13:33:30 -04:00
Chris Meyers
ef055110f5 handle unicode host names in fact cache 2017-07-26 12:41:13 -04:00
Chris Meyers
1331865749 take into account memcached key restrictions
* Keys can't contain spaces or control characters
2017-07-05 15:39:04 -04:00
Chris Meyers
3d4f8b0074 support clear_facts 2017-07-05 10:33:36 -04:00
Chris Meyers
eda0679eb3 Revert "support clear_facts"
This reverts commit e5432c231d1ab38807c8be10133d35ede237a519.
2017-07-05 10:32:13 -04:00
Chris Meyers
06edb6774a support clear_facts 2017-07-05 10:26:49 -04:00
Chris Meyers
12cdbcf8b5 adds per-host timeout 2017-06-21 13:45:27 -04:00
Chris Meyers
817dbe8d33 add fact modified time 2017-06-21 13:45:27 -04:00
Chris Meyers
626e2d1c9b tower fact cache implementation
* Tower now injects facts into jobs via memcached for use by Ansible
playbooks. On the Ansible side, this is accomplished by the existing
mechanism, an Ansible Fact Cache Plugin + memcached. On the Tower side,
memcached is leveraged heavily.
2017-06-21 13:44:08 -04:00
Chris Meyers
4795fd28bf always gather facts
* bolt on the fact scan gather to all jobs
2017-05-01 16:03:16 -04:00
Matthew Jones
35b9786e06 Fixing up fact cachine related unit tests 2016-11-18 10:23:07 -05:00
Matthew Jones
3b07d9745d Port fact caching system to rabbitmq
* Purge all references to zmq also
* New setting to control the queue it works on
2016-11-18 09:44:17 -05:00
Aaron Tan
9e4655419e Fix flake8 E302 errors. 2016-11-15 20:59:39 -05:00
Matthew Jones
200ffaf7ca Fixes a small flake8 issue 2016-05-04 15:26:37 -04:00
Matthew Jones
0e7767c6a6 Fix fact gathering module being absent
Somewhere recently we broke the ability to gather multiple modules in
one scan job pass.   This fixes that, it also further improves the scan
job performance.
2016-05-04 14:00:15 -04:00
Matthew Jones
9cc9ef6b33 Use shallow copy in fact cache plugin
This deep copy would cause ansible-playbook to get hung up and fail to
spawn new subprocesses thus forcing extremely large scan jobs to
serialize their connections through one process.    This had the effect
of forcing `forks=1` behavior.

This change was for citco, a customer who is running scan jobs against
600 hosts with a forks value of 200.
2016-05-02 13:34:47 -04:00
Chris Meyers
e7d68409f7 fix scan job timestamp 2016-04-12 17:07:11 -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
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
Matthew Jones
31d0342d41 More copyright headers for api side stuff 2015-05-29 12:10:40 -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
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
4d271bef35 Initial Scan Job Template type implementation 2015-03-03 14:48:22 -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