Commit Graph

317 Commits

Author SHA1 Message Date
Akita Noek
712ec98f54 Fixed Credential creation in generate_dummy_data command 2016-03-26 09:08:17 -04:00
Akita Noek
5baa784ce2 Merge branch 'devel' of github.com:ansible/ansible-tower into merge-devel 2016-03-24 13:51:00 -04:00
Akita Noek
dde2e66a2f Fix missing .all() from active flag filter nuke 2016-03-22 15:36:07 -04:00
Matthew Jones
0e2184902e Handle runner items from ansible v2
Also denote whether the trailing runner_on_ was a loop event
2016-03-22 12:31:05 -04:00
Akita Noek
5741b47c54 Merge remote-tracking branch 'ansible/devel' into merge-devel 2016-03-18 15:40:13 -04:00
Akita Noek
ce669b03ad Switched to a nicer contextmanager implemenation for role hierarchy rebuild batching
#1206
2016-03-15 15:30:43 -04:00
Akita Noek
f55d5d90f2 Merge branch 'rbac' of github.com:ansible/ansible-tower into rbac 2016-03-15 11:53:07 -04:00
Akita Noek
721b95cf99 Dummy data generation script
Usage: ./manage.py generate_dummy_data --help
2016-03-15 11:45:56 -04:00
Akita Noek
6ea99583da Mass active flag code removal 2016-03-15 09:29:55 -04:00
Akita Noek
ba833d683e Active flag removal: switched from using mark_inactive to delete calls 2016-03-15 09:29:28 -04:00
Akita Noek
4825b2a6fc Do cleanup_deleted on migrate. Re-ordered active flag removal to be before system job template creation.
Also removed active flag deletes from remaining cleanup_deleted
management command as they will no longer be needed - but the
deletes of the authentication tokens as well as potentially disabled
users are still necessary, so the cleanup_deleted command will continue
to exist.

Reordering of the active flag removal to happen before the system job
template creation is necessary since the system job template creation
hits the license checker which at some point runs queries that depend on
the active flag, and with that code changing to not use the active flag,
we need to do the removal before we run this code.
2016-03-15 09:26:31 -04:00
Matthew Jones
eab223d229 Make sure we are covering system jobs and template on notifications 2016-03-11 15:11:08 -05:00
Chris Meyers
220d4c635e fix fact cache receiver 2016-03-09 14:41:54 -05:00
Chris Meyers
5759db1229 flake8 fix 2016-03-04 14:14:10 -05:00
Chris Meyers
7494b13704 find correct fact to update
* The fact cache receiver needs to look for an exact match, rather than
* a relative, most recent fact.
2016-03-04 11:41:08 -05:00
Chris Meyers
4b56ea3d07 postgres fact cleanup 2016-03-01 16:57:22 -05:00
Chris Meyers
356b9c99b3 Merge branch 'mongoectomy_implementation' into devel 2016-03-01 08:22:40 -05:00
Chris Meyers
7ffe46fc74 add postgres Fact model, update views, tests
* awx.main.models Fact added
* view host fact and timeline updated to use new Postgres Fact model instead of Mongo
* Removed license set start Mongo logic
* added View tests
* added Model tests
* Removed mongo fact unit tests
* point at modified jsonbfield that supports sqlite storage driver
* postgresify fact cache receiver
* test OPTIONS endpoint
* Note: single fact view not implemented yet.
2016-02-24 14:38:54 -05:00
Matthew Jones
805514990b Changes to celery tasks to support success signals
Linking in a success callback that will be invoked by our UnifiedJobs in
the case they terminate normally.  This is where we'll hook in the
success notification type.
2016-02-04 15:52:23 -05:00
Chris Church
60224cdbe4 Update Django to 1.8 and DRF to 3.3, add new Django migrations, update serializers/pagination/metadata, update browsable API styling. 2016-02-02 17:48:04 -05:00
Joshua "jag" Ginsberg
f25b76aee9 Integrate statsd metrics into ansible playbook execution.
* Add dependencies for pystatsd and django-statsd-mozilla
* Default turned off except for development environment
* Modify docker-compose to install statsd/graphite host
2016-01-26 16:54:24 -05:00
Matthew Jones
769fe18724 Wrap up other places where the old license access method is used 2016-01-25 20:59:18 -05:00
Chris Meyers
fe91c73fd2 testable playbook w/ state wanted pattern
* remove complicated redis config assembly
* backup and restore discover credentials rather than requiring
* backup strategy no longer drops the db. This allows awx user to
restore without creatdb persmission.
* removed mongo from backup/restore

* added password change support for redis, pg, munin
* added update_password command and respective tests

* tests for munin, pg, redis password change
* unit tests for munin, redis password change
* tests for postgres host (ip and socket) change
* tests for postgres backup/restore on remote db
2016-01-22 08:17:18 -05:00
Matthew Jones
35b19bf220 Update settings references
* PROOT
* Pendo tracking state
* ad hoc commands
* activity stream
* org admin visibility
2015-12-15 16:44:08 -05:00
Chris Meyers
3f4913f5ab adds socket tests 2015-11-06 10:30:56 -05:00
Chris Meyers
dbbfde0d25 fixes remove_instance error
* Initialize object attribute to None so a later if check that depends
on that attributes succeeds. The attribute is related to unifying the
command line args to the *_instance command set.
* Added regression test case
2015-11-06 07:19:09 -05:00
Matthew Jones
b579b76099 Handle playbook_on_include events from v2 ansible 2015-10-20 11:18:07 -04:00
Matthew Jones
98c1301e23 Clean up some flake8 issues 2015-10-12 14:18:02 -04:00
Matthew Jones
6cd39efb85 Add a cleanup_authtokens management command
We also will now clean these up during cleanup_deleted
2015-10-12 13:44:22 -04:00
Matthew Jones
6e2efd3f8a Overwrite should not imply overwrite-vars 2015-10-12 13:07:50 -04:00
Chris Meyers
4434d336a3 notify all socket session of a token 2015-10-01 16:27:49 -04:00
Chris Meyers
b350eef3f0 session limit invalidation events via socket.io 2015-09-29 14:10:26 -04:00
Chris Meyers
000d26d7e3 session limit enforcement
* upon creating a new session, invalidate oldest sessions
2015-09-28 14:17:28 -04:00
Matthew Jones
5727d722b6 Merge remote-tracking branch 'upstream/release_2.3' into devel
* upstream/release_2.3: (91 commits)
  Include python-{paramiko,ecdsa} dependencies
  Remove extra epel testing stanzas
  Unit test for ec2 credentialless inventory
  Fix issue with ec2 iam sync with no credential.
  Use the htpasswd command instead the ansible module
  Pip is no longer needed
  check local user root or not in ./configure
  Remove unneeded when check for super user addition
  Improve distro detection in setup.sh
  Fix superuser check on upgrade
  Minor improvements to setup.sh
  Remove ansible prerequisite check from configure
  Attempt to install ansible within setup.sh
  Allow munin processes to access postgres
  Move up base package dependency install
  fixes jenkins failures
  Proper flake8 fix
  fixes executing processes with correct PYTHONPATH will pickup .pth files
  Show the repo for bundled package file dump
  Proper flake8 fix
  ...
2015-09-03 15:46:10 -04:00
Matthew Jones
2f39393cf3 Implement fact receiver thread worker
Optionally allow processing of fact receiver messages in a worker
thread.  This works around an issue where data could take a while to
page into Mongo and cross the zmq socket timeout.
2015-08-28 10:59:52 -04:00
Chris Meyers
c038bdb1d5 flake8 fixes 2015-08-24 08:48:53 -04:00
Matthew Jones
64c3b1ec69 Merge pull request #345 from chrismeyersfsu/fix-centos_6.5
unittest works on centos 6.5
2015-08-05 19:43:57 -04:00
Chris Meyers
f64a48a98f python 2.6 safe total_seconds 2015-07-30 13:40:31 -04:00
Chris Meyers
8a453d51b2 change update_instance to only take --primary role flag
* removed --secondary option
2015-07-24 08:46:34 -04:00
Chris Meyers
2dc22042ee flake8 fixes 2015-07-20 11:21:03 -04:00
Chris Meyers
3a07c85898 use file fact scan data for file fact scan module scans 2015-07-13 15:27:23 -04:00
Chris Meyers
8f804cf9fa python 2.6 compatible total_seconds 2015-06-29 16:55:56 -04:00
Matthew Jones
414394afa0 can not -> cannot (even though they are both correct) 2015-06-26 15:35:33 -04:00
Matthew Jones
05f56c805a Logic should check for the condition where HA is NOT enabled 2015-06-26 15:28:41 -04:00
Matthew Jones
80a6f22c0c Move HA license check logic to the promotion step and allow registering
HA instances.   Registration is allowed but promotion/demotion is not
allowed without the HA feature
2015-06-26 15:23:07 -04:00
Matthew Jones
237a661912 Fix verbage around why we are disallowing removing a primary 2015-06-26 15:22:35 -04:00
Chris Meyers
713f18438c added more logging for fact cache receiver 2015-06-24 14:07:18 -04:00
Chris Meyers
41de9c9f9f flake8 2015-06-23 07:58:01 -04:00
Chris Meyers
bd61261454 when aging, use a more compact age to stay within username 30 char restriction 2015-06-22 13:06:50 -04:00
James Laska
6d6d9de379 Use the proper attr when saving instance name
Fixes: https://trello.com/c/24OoIyyf
2015-06-20 13:47:09 -04:00