Matthew Jones
d01e93535d
Fixing flake8 issue
2015-06-15 09:36:04 -04:00
Matthew Jones
bb7af4e916
Merge pull request #277 from matburt/fix_inventory_read_jt_rbac
...
Check inventory access for normal users when deciding what job templates show up in the queryset
2015-06-12 16:04:34 -04:00
Matthew Jones
5d1b27e520
Adding some job template listing unit tests and permissions to actually
...
make those work
2015-06-12 14:43:24 -04:00
Matthew Jones
df61fd6ab8
Check inventory access for normal users when deciding what job templates
...
show up in the job template queryset
2015-06-11 16:24:54 -04:00
Matthew Jones
d011a87bb0
Support cancel on system jobs
2015-06-11 15:19:27 -04:00
Matthew Jones
f945719794
Fix a few more copyright statements
2015-06-11 14:53:25 -04:00
Matthew Jones
bcc18aa689
Make using named pipe for adding passwords conditional on the version
...
of ssh used.
2015-06-11 14:48:10 -04:00
Matthew Jones
322fdc37a4
Remove some spurious print statements I left previously
2015-06-11 14:48:09 -04:00
Matthew Jones
f9ca5159e7
Fix up more copyright headers
2015-06-10 16:11:26 -04:00
Matthew Jones
3c2f3f323a
Fix some flake8
2015-06-09 16:07:06 -04:00
Matthew Jones
ab5c4b5f20
Check connection for scan jobs before actually running the job, fail
...
early if the system tracking database isn't available
2015-06-09 15:31:23 -04:00
Matthew Jones
c6c80447a6
Fix a spelling error in the setup script that's causing rpm build failures
2015-06-09 10:57:38 -04:00
Matthew Jones
62e16929d0
Merge pull request #274 from matburt/add_mongo_munin_stats
...
Add munin monitors for mongo
2015-06-08 20:35:54 -04:00
Matthew Jones
712861b829
Remove mongo_{btree,lock} as worthless monitoring points (and broken at that)
2015-06-08 16:24:33 -04:00
Matthew Jones
848bff4220
Add munin monitors for mongo
2015-06-08 16:23:37 -04:00
Matthew Jones
074e66219d
Add a docker development container build make target
2015-06-08 16:00:35 -04:00
Matthew Jones
e471798918
Merge pull request #268 from matburt/support_DELETE_license
...
Support DELETE of the license on the config endpoint
2015-06-05 16:52:23 -04:00
Matthew Jones
23eaf9ae42
Support DELETE of the license on the config endpoint
2015-06-05 15:53:35 -04:00
Matthew Jones
fbe82d9348
Allow AWS ami license type to support the new license type scheme. Also
...
allows new ami licenses to be created at different license type levels
while defaulting to legacy
2015-06-05 12:39:36 -04:00
Matthew Jones
a8d75783a3
Some launch changes and configuration changes to the Dockerfile
2015-06-05 11:18:27 -04:00
Matthew Jones
4d2fba15ab
Some minor fixes for the dockerfile container image build process
2015-06-05 11:12:23 -04:00
Matthew Jones
715e12ba98
Merge pull request #264 from matburt/system_job_template_wording
...
Update doc template for system job launching
2015-06-05 09:56:35 -04:00
Matthew Jones
80dddfddc5
Update doc template for system job launching
2015-06-04 14:16:08 -04:00
Matthew Jones
01fc6ff8c6
Merge pull request #263 from matburt/check_low_var_space
...
Add a task to the preflight check to verify a minimum amount of space on
2015-06-04 13:44:51 -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
7d8edd9617
Check survey license enabled when creating, updating, and starting job
...
templates with surveys enabled
2015-06-01 17:01:49 -04:00
Matthew Jones
5bd25d408a
Generate sane errors if the mongo database is down when a request for
...
fact versions is made
2015-06-01 16:22:11 -04:00
Matthew Jones
e392add46f
Catch exceptions if there are issues communicating with mongo
2015-06-01 16:00:11 -04:00
Matthew Jones
db5af80daa
Conditionals on official builds for rpm-build
2015-06-01 16:00:11 -04:00
Matthew Jones
742a2fd265
Adding documentation templates for endpoints
2015-06-01 16:00:11 -04:00
Matthew Jones
06464333a6
Check license before launching job template and disallow scan job
...
template launch if license is unsupported
2015-06-01 14:15:42 -04:00
Matthew Jones
82ac560cf2
Remove related single fact link on the group view
2015-06-01 14:12:39 -04:00
Matthew Jones
9d419820d5
Remove the single fact view link from the inventory serializer
2015-06-01 14:11:36 -04:00
Matthew Jones
22bbf21c09
Documenting new system tracking endpoints
2015-06-01 13:39:24 -04:00
Matthew Jones
3375460a94
Unwire the single_fact endpoints from the api for this release since
...
they aren't implemented on the front end and we still need to do some
work on them
2015-06-01 13:39:24 -04:00
Matthew Jones
8006066609
Disable cleanup_facts if the user does not have system tracking enabled
...
in their license file
2015-06-01 10:30:41 -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
Matthew Jones
609ded80e2
Check system tracking enabled before trying to fetch fact versions
2015-05-29 10:53:34 -04:00
Matthew Jones
8795f06801
Capitalize the first letters of the scan modules for the UI
2015-05-29 10:47:43 -04:00
Matthew Jones
20e85a6d34
Unit test for disallowing scan job with survey
2015-05-29 10:43:54 -04:00
Matthew Jones
c644934afc
Disallow creating a survey with a scan job template
2015-05-29 10:43:54 -04:00
Matthew Jones
10da862ab1
Lower the cleanup_deleted batch size to 50 to reduce overall memory
...
usage during the cleanup operation
2015-05-28 16:37:34 -04:00
Matthew Jones
094072f9dc
Fix an issue where the single_fact view could still generate a 500 error
...
if mongo wasn't running and system tracking was disabled by the license
2015-05-28 16:19:55 -04:00
Matthew Jones
5b3b4b48c0
Fix an issue when creating scan job templates where we weren't obeying
...
the license flag, so folks could still create scan jobs even if they
weren't enabled by the license. Plus Unit Tests
2015-05-28 15:59:49 -04:00
Matthew Jones
f5391cab11
Fix an issue where passing an empty yaml file (or ---) would cause an
...
error if including a port specifier on a hostname
2015-05-28 09:42:41 -04:00
Matthew Jones
6d3bd2500a
Remove spuriously added keystone client package info file
2015-05-26 13:46:07 -04:00
Matthew Jones
c930b7759a
Add 'finished' property to recent jobs
2015-05-26 13:08:26 -04:00
Matthew Jones
b2b05d9212
Import dist-info directories for various openstack libs, otherwise pbr
...
can't find the versions and that causes errors
2015-05-26 10:42:51 -04:00
Matthew Jones
fdaf9bcd52
Add psutil to the package deps for the dockerfile
2015-05-26 09:59:53 -04:00
Matthew Jones
f9291940dd
Implement the api side system job template migration for the fact
...
cleanup job
2015-05-22 11:12:27 -04:00
Matthew Jones
54c9a13f33
Merge pull request #238 from matburt/fix_centos7_service_script
...
Fix an issue with centos 7 after adding mongo as a service dependency
2015-05-22 10:44:53 -04:00
Matthew Jones
eb42214d90
Fix an issue with centos 7 after adding mongo as a service dependency
...
* Move the ansible-tower service script to a normal bin utility
* Modify the playbook to not call the old meta init script but to use
the specific services that are needed
2015-05-22 10:15:16 -04:00
Matthew Jones
f09ef53a6c
Merge pull request #226 from matburt/add_extra_vars_to_callback_jobs
...
Add the ability to pass extra_vars when launching callback jobs.
2015-05-20 13:18:28 -04:00
Matthew Jones
582842f54f
Add the ability to pass extra_vars when launching callback jobs.
...
Update the docs to reflect passing json for extra_vars and the host
config key
2015-05-19 15:48:45 -04:00
Matthew Jones
e4936e4b80
Fix supervisor restart behavior for ubuntu, and adjust timeouts *way*
...
down on when supervisor can harikiri it's child processes
2015-05-18 12:06:29 -04:00
Matthew Jones
472f086862
Fix an issue where a well timed cancel could try to cancel a job right
...
after it has finished causing an error.
2015-05-18 10:19:03 -04:00
Matthew Jones
b07803d2b8
Switch tower_warnings.log to tower.log
2015-05-05 16:53:06 -04:00
Matthew Jones
cdf6905bca
Update Tools Dockerfile to install and configure the mongodb dependencies
2015-05-05 16:52:42 -04:00
Matthew Jones
e784595119
Initial implementation of fact api endpoints
2015-05-05 14:47:58 -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
1bd2c99171
Import mongoengine rest framework module, document this and mongoengine
...
in the readme
2015-05-05 14:45:44 -04:00
Matthew Jones
a081614c9a
Merge branch 'mongo_ancillary_services' into upstream_master
...
* mongo_ancillary_services:
Adding the fact cache receiver to the supervisor config
Implementing tower cleanup task for cleaning up facts
2015-04-27 09:49:35 -04:00
Matthew Jones
22acd51650
Implementing tower cleanup task for cleaning up facts
2015-04-24 14:15:25 -04:00
Matthew Jones
3f4aafa501
Merge remote-tracking branch 'refs/remotes/chrismeyers/fix-cloud_credentials2' into upstream_master
...
* refs/remotes/chrismeyers/fix-cloud_credentials2:
multiple credentials implementation style more inline with existing code
allow machine and cloud credentials to co-exist.
2015-04-23 16:09:14 -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
c45a422590
Update "make server" endpoint and Makefile to include the new fact cache
...
receiver. Upgrade docker tool to install mongo and pymongo
2015-04-23 13:34:56 -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
Matthew Jones
abdfb26b3d
Use inventory_source source_vars to control what address we use for ansible_ssh_host
2015-04-23 11:07:31 -04:00
Matthew Jones
5a401c31aa
Handle any exception that could come from sending a packet to a client
2015-04-22 16:50:37 -04:00
Matthew Jones
36512d74c2
Unused variable to make pyflakes happy
2015-04-21 16:13:37 -04:00
Matthew Jones
0fc753046d
This fixes an issue where various parts of the system could get stuck
...
waiting to emit a socketio event if there was a problem with the
websocket service. Instead of crashing and hanging the system it will
now emit an error and continue.
2015-04-21 15:29:37 -04:00
Matthew Jones
93ecf739be
This could be the source of the connection memory leaks, over 1000
...
connections and only 12 bytes of non-gc-tracked allocations. Kudos to
cmeyers for finding this.
2015-04-21 14:25:01 -04:00
Matthew Jones
fb3bbea027
Add recv_disconnect to acl allowed methods
2015-04-21 14:13:53 -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
Matthew Jones
e87f90b39b
add netifaces to the jenkins requirements to make automated unit test
...
runs happy
2015-04-14 11:33:47 -04:00
Matthew Jones
c350fafe22
Rev pyrax to 1.9.3 and lower python-novaclient to 2.20.0 due to a
...
strange deprecation warning message that is not suppressable.
2015-04-13 21:57:13 -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
Matthew Jones
768d9d65b9
Upgrading some novaclient specific vendored modules
2015-04-13 11:35:24 -04:00
Matthew Jones
3d8955b298
Adding necessary dist-info for keystoneclient so plugin entrypoints can
...
be located
2015-04-07 16:57:07 -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
Matthew Jones
037c7342c0
Merge branch 'credential_becomes_refactor' into upstream_master
...
* credential_becomes_refactor:
Move 'become_enabled' to JobOptions to allow a toplevel field to exist on the Job model also. Update tasks and migrations to reflect this
Last of the ad-hoc priv escalation unit test fixes
Fixing up some unit tests for "become" refactor
Changing up ad-hoc based unit tests to follow the new "become" refactor
Migrate ad-hoc feature to use the new ansible become method if provided
Refactor pbexpect string matches to submit become password
Updates and fixes for unit tests on supporting ansible "become"
Refactor credential to use ansible become if using a new enough ansible version. Add become flag to job template
Conflicts:
awx/main/tests/ad_hoc.py
2015-04-06 13:37:36 -04:00
Matthew Jones
55f266d323
Move 'become_enabled' to JobOptions to allow a toplevel field to exist
...
on the Job model also. Update tasks and migrations to reflect this
2015-04-06 12:34:47 -04:00
Matthew Jones
736f86fc72
Last of the ad-hoc priv escalation unit test fixes
2015-04-03 16:51:34 -04:00
Matthew Jones
e8d010533f
Fixing up some unit tests for "become" refactor
2015-04-03 16:26:52 -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
Matthew Jones
beac5c30d2
Changing up ad-hoc based unit tests to follow the new "become" refactor
2015-04-03 15:35:04 -04:00
Matthew Jones
2e58f5fd00
Migrate ad-hoc feature to use the new ansible become method if provided
2015-04-03 15:17:52 -04:00
Matthew Jones
b6e9382273
Refactor pbexpect string matches to submit become password
2015-04-03 13:57:33 -04:00
Matthew Jones
5ff7558cd3
Updates and fixes for unit tests on supporting ansible "become"
2015-04-02 13:38:38 -04:00
Matthew Jones
d5c9e37499
Refactor credential to use ansible become if using a new enough ansible
...
version. Add become flag to job template
2015-04-02 10:05:56 -04:00
Matthew Jones
f6aa11eb67
Update playbook to pass conditional constraints for file scanning
2015-03-30 10:15:36 -04:00
Matthew Jones
c0364b5bd1
Support recursive mode on the file scanner
2015-03-27 16:51:03 -04:00
Matthew Jones
8204f42972
Merge pull request #108 from matburt/scan_services_implementation
...
Scan services implementation
2015-03-27 13:29:38 -04:00
Matthew Jones
f4d960b127
Fix an issue where going from having 1 or more hosts to having 0 hosts
...
could trigger an inventory sync failure
2015-03-27 13:25:16 -04:00
Matthew Jones
fe82b54158
Remove the old version checks from our job runners used to test features
...
of old Ansible versions:
* INVENTORY_HOSTVARS from pre-1.3
* Vault password prompting from pre-1.5
* Git hostkey acceptance from pre-1.5
2015-03-26 13:42:42 -04:00