Matthew Jones
16a9af0803
Fix an issue where non-org-admin users with appropriate job template
...
permissions were not able to view or edit schedule details
2015-01-21 13:49:24 -05:00
Matthew Jones
556d7a8ac6
Merge pull request #33 from chrismeyersfsu/improvement-cleanup_jobs_error_handling
...
output number of deleted items when running cleanup_deleted
2015-01-21 12:12:30 -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
76bcb12d9f
Merge pull request #32 from matburt/fix_jtlaunch_without_proj
...
Make Inventory and Project required when initially launching.
2015-01-21 11:26:22 -05:00
Matthew Jones
873afd64d2
Make Inventory and Project required when initially launching.
...
This prevents the scenario where an inactive-but-present project or
inventory on a job template would carry on even when we wouldn't want
it to
2015-01-21 11:05:14 -05:00
Matthew Jones
bb5f3243e3
Merge pull request #31 from chrismeyersfsu/improvement-cleanup_jobs_error_handling
...
added graceful fail and meaningful error message when --days specified is too large
2015-01-21 09:53:53 -05:00
Matthew Jones
34aafb2db9
Fix an issue where we couldn't schedule custom inventory sources
2015-01-20 14:55:05 -05:00
Matthew Jones
92f4bef948
Merge pull request #28 from matburt/master
...
Revert "Make credential required when using a cloud inventory source"
2015-01-20 11:05:27 -05:00
Matthew Jones
9b80d25a24
Revert "Make credential required when using a cloud inventory source"
...
This reverts commit 9dab26eb0a66a910e41452e40e74480ed4639588.
2015-01-20 10:46:53 -05:00
Matthew Jones
73890a0eee
Merge pull request #26 from matburt/atomic_computed_fields
...
Wrap computed fields in transaction atomic to prevent deadlocks and weird rollbacks
2015-01-20 09:58:56 -05:00
Matthew Jones
be2a0614cf
Merge pull request #25 from matburt/remove_crazy_decorators
...
Purge old super user check decorator in favor of using RBAC. Update unit tests
2015-01-20 09:58:48 -05:00
Matthew Jones
3beab0a22e
Merge pull request #24 from matburt/make_credential_required
...
Make credential required when using a cloud inventory source
2015-01-20 09:58:39 -05:00
Matthew Jones
dba5a66fbc
Merge pull request #22 from matburt/master
...
Modify the windows azure inventory script to import all of the instances
2015-01-20 09:58:23 -05:00
Matthew Jones
70d6e38f57
Wrap computed fields in transaction atomic to prevent deadlocks and
...
weird rollbacks
2015-01-19 15:37:29 -05:00
Matthew Jones
4ce0fc4eb4
Purge old super user check decorator in favor of using RBAC. Update
...
unit tests
2015-01-19 13:54:49 -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
43d26d9993
Make credential required when using a cloud inventory source
2015-01-19 11:52:10 -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
df68e45e16
Merge pull request #23 from wenottingham/rest-branch
...
Fix assorted UI error messages to reference the correct REST requests.
2015-01-19 11:21:46 -05:00
Matthew Jones
73954b7c7d
Merge pull request #16 from wenottingham/firewalld-branch
...
This adds support for firewalld on RHEL 7/CentOS 7.
2015-01-19 11:21:20 -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
Matthew Jones
6cb7f911b7
Merge pull request #21 from chrismeyersfsu/improvement-inventory_script_organization_relationship
...
added 'organization' to list of related fields for inventory_scripts
2015-01-19 10:24:51 -05:00
Matthew Jones
4b14fa9e6b
Merge pull request #19 from chrismeyersfsu/documentation-register_instance
...
added documentation to command: tower-manage register_instance --help
2015-01-16 11:47:56 -05:00
Matthew Jones
ad84fb4259
Merge pull request #18 from chrismeyersfsu/improvement-tagless
...
added ec2 tags_none grouping for hosts without tags
2015-01-16 10:17:21 -05:00
Matthew Jones
bb2d82cdd9
Merge pull request #17 from chrismeyersfsu/fix-schedule-user-input
...
Misspelling in save field
2015-01-15 10:05:25 -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
Matthew Jones
d70d5a5c99
Update Dockerfile to properly set shell encoding
2015-01-09 10:58:44 -05:00
Matthew Jones
2db98a9461
Add an HA list_instances management command
2015-01-08 15:03:53 -05:00
Matthew Jones
0eaf2dc00c
Protect the system from when one attempts to start a job without an inventory
2015-01-08 14:55:58 -05:00
Matthew Jones
80b2b36bf3
Reapply fix for can_edit and can_copy when an inventory or project
...
associated with the job template have been deleted
2015-01-08 13:30:27 -05:00
Matthew Jones
9900b13953
Revert "Handle the situation where a Job Template's inventory has been removed"
...
This reverts commit 12201de3cb344b6caafeb112f7db7135b049821d.
2015-01-07 20:03:04 -05:00
Matthew Jones
932c276829
Handle the situation where a Job Template's inventory has been removed
...
and we are trying to determine if a user has the ability to edit or copy it.
2015-01-07 15:13:14 -05:00
Matthew Jones
ba06fc0f69
Allow recv_connect on the base socket namespace
2015-01-06 11:14:28 -05:00
Matthew Jones
a53071ff07
Only consider 50 tasks when managing the task graph
2015-01-06 10:12:24 -05:00
Matthew Jones
21d45b828f
Fix up an issue where we wouldn't properly show can_edit or can_copy
2015-01-05 16:28:31 -05:00
Matthew Jones
526e488e78
Incorrect assumption that we needed to merge extra vars manually... now
...
passing extra vars to the job template launchc will override what is
coming from the job template
2014-12-19 10:51:55 -05:00
Matthew Jones
da658ee524
Fix an issue with relaunching jobs
2014-12-18 16:39:04 -05:00
Matthew Jones
58ef1df906
Remove foob :embarassed:
2014-12-18 14:23:09 -05:00
Matthew Jones
9ce6101cd4
Do not display inventory scripts for which the organization is inactive
2014-12-18 10:04:40 -05:00
Matthew Jones
45a7c1647f
Fix error message returned based on variables_needed_to_start
2014-12-18 08:07:51 -05:00
Matthew Jones
a130ac88dd
Fix an bug where I wouldn't properly error out when survey validation
...
would fail
2014-12-17 22:39:11 -05:00
Matthew Jones
6f5d450e8d
Fix an issue that would not allow credential to be posted when launching
...
a job
2014-12-17 21:09:51 -05:00
Matthew Jones
41cabb0899
Add the ability to cleanup management jobs in the cleanup_jobs
...
management command
2014-12-17 16:54:13 -05:00
Matthew Jones
d4879506c2
Switch to using extra_vars for survey variables, fix up some unit tests
...
related to that and some issues with system jobs
2014-12-17 16:04:55 -05:00
Matthew Jones
7d9f4aac47
Working smart_str in projects unit tests
2014-12-17 14:13:59 -05:00
Matthew Jones
0ffa7588e1
Fix up a unit test for project paths
2014-12-17 13:04:33 -05:00
Matthew Jones
f4e67f789f
More making sure we are using smart_str
2014-12-17 12:59:52 -05:00
Matthew Jones
1f723e9404
More work on unicode for project dirs
2014-12-17 12:52:29 -05:00
Matthew Jones
edb646fdf9
Use smart_str more widely with project paths... hopefully this takes
...
care of the remaining issues
2014-12-17 11:06:56 -05:00
Matthew Jones
b2e1f04ecf
Include all cleanup tasks when the cleanup management job is run
2014-12-16 15:38:07 -05:00
Matthew Jones
c014399d6e
Try smart_str for this particular encoding
2014-12-16 13:59:06 -05:00
Matthew Jones
cf5cd3fcdc
Make sure we are decoding the project path
2014-12-16 13:16:07 -05:00
Matthew Jones
76a7d25131
Force custom inventory script organization to match the organization of
...
an inventory source's inventory when creating/updating the inventory source
2014-12-16 13:01:11 -05:00
Matthew Jones
b0d6628d46
Add some stdout to the activity stream cleanup command
2014-12-16 10:06:07 -05:00
Matthew Jones
8f4cd58a5e
Bulk make_projects seems to have path concat issues when forcing unicode
2014-12-15 16:22:41 -05:00
Matthew Jones
d03fe93927
Try to clean up how we invoke make_project in the unit tests
2014-12-15 15:24:45 -05:00
Matthew Jones
cc7edc770e
Small fix for inventory source unit tests if the source is custom during check_inventory_source
2014-12-15 15:13:27 -05:00
Matthew Jones
901af011a1
Verify that we are passed a source script if a 'custom' source is provided
2014-12-15 14:56:09 -05:00
Matthew Jones
9e962d4d5b
Fix up unicode project directory issue, with unit tests
2014-12-15 14:17:21 -05:00
Matthew Jones
d2a4f2a190
Limit the graph builder to processing just the first few hundred jobs
...
when building the dependency graph
2014-12-15 12:46:35 -05:00
Matthew Jones
a487257789
Cascade remove inventory source links when a custom script is removed
2014-12-15 11:10:39 -05:00
Matthew Jones
eaee8d76c4
Fix a bug launching a custom inventory script under proot where we would
...
never actually launch the job under proot
2014-12-15 10:42:22 -05:00
Matthew Jones
1e1ea4e9ee
Some fixes for passing arguments to system/management jobs
2014-12-12 13:40:34 -05:00
Matthew Jones
f52cf37200
All job template launches now require a credential, so we'll pass this along
2014-12-11 16:30:23 -05:00
Matthew Jones
1bfab5ad5c
Make credential required when launching job template if it isn't
...
provided on the job template
2014-12-11 15:31:12 -05:00
Matthew Jones
96433b07d4
Incorrect object reference in Custom Inventory Script read acl for non-super-users
2014-12-11 13:47:33 -05:00
Matthew Jones
2ef4ee0987
Change up older custom inventory script migration to not set unique on
...
the name field
2014-12-11 13:26:41 -05:00
Matthew Jones
6f2a354b6e
Wrong base class for Custom Inventory Scripts
2014-12-11 13:25:31 -05:00
Matthew Jones
60d8505fd3
Disallow creating callback jobs for the same host under the same job
...
template while another one is pending/waiting. Update unit tests to
check for this scenario
2014-12-11 11:50:49 -05:00
Matthew Jones
c719149b86
Make sure we can DELETE system jobs if we have the right permissions
2014-12-10 15:51:27 -05:00
Matthew Jones
bc78587c60
Remove an unneeded acl processor for job events in the socketio daemon
2014-12-10 15:00:15 -05:00
Matthew Jones
6a162c2a3b
Ansible folks say SIGINT works.... doesn't seem to stop the playbook to
...
me, but whatever
2014-12-10 13:44:30 -05:00
Matthew Jones
ff2c82ce72
Include the migration for the custom inventory script change to support
...
activity stream
2014-12-10 11:34:08 -05:00
Matthew Jones
017d42364b
Add Custom Inventory Script to the activity stream from the api side
2014-12-10 11:33:22 -05:00
Matthew Jones
7df9ca8ae1
Force custom inventory scripts to start with a hashbang
2014-12-10 10:59:20 -05:00
Matthew Jones
b1b9fdede5
Fix a bug where, when launching a job without a credential and
...
subsequently supplying the credential we weren't able to pick up any ASK
fields that we needed credentials for
2014-12-10 10:42:20 -05:00
Matthew Jones
f62b9ff2c0
Switch to using SIGTERM for canceling a job
2014-12-10 10:34:18 -05:00
Matthew Jones
8afe8517fd
Rename System Task to Management Job for UI consistency
2014-12-09 11:46:03 -05:00
Matthew Jones
d0498de00c
Update job template deployment permission help text
2014-12-09 11:17:34 -05:00
Matthew Jones
3af2c181b8
Add can_edit field on job templates
2014-12-09 11:08:25 -05:00
Matthew Jones
572c1765cd
Different strategy on the inventory script serializer, this should work
...
much better
2014-12-08 16:45:59 -05:00
Matthew Jones
c04ac45296
Add a unique constraint on 'name' and 'organization' for the custom scripts
2014-12-08 15:49:45 -05:00
Matthew Jones
9b61956c9e
Hide script contents if the user is not a super user
2014-12-08 15:10:16 -05:00
Matthew Jones
9a44f8eca8
Further tighten down socketio service
2014-12-08 14:41:48 -05:00
Matthew Jones
3d3cf2bb9e
Make sure we include schedules as things that can be included when
...
creatinga concrete job(any) from a job template, project update, or
inventory update
2014-12-08 14:03:16 -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
Matthew Jones
91527228db
Demote settings imports in main utils
2014-12-05 15:47:25 -05:00
Matthew Jones
ec887f877f
Support running custom inventory scripts (only) from within proot if enabled
2014-12-05 15:25:06 -05:00
Matthew Jones
680e382a40
Comment out an old vars test representation
2014-12-04 14:58:16 -05:00
Matthew Jones
d8c619554e
Fix up some more issues with extra vars and unit tests
2014-12-04 14:25:36 -05:00
Matthew Jones
3164c6d356
Fix an issue where we weren't properly dealing with extra data passed as
...
survey answers when launching a job template
2014-12-04 11:17:24 -05:00
Matthew Jones
e05f9e081c
Throw an error when running an inventory update against an inventory
...
script that has been deleted
2014-12-03 16:09:55 -05:00
Matthew Jones
706b770814
Fix up unit test referencing the custom inventory script
2014-12-03 15:35:08 -05:00
Matthew Jones
19c0d04885
Adding organization reference to the custom inventory script
2014-12-03 15:05:44 -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
Matthew Jones
13ee4e6048
Fix up an issue passing the callback port, which isn't strictly
...
necessary... if provided it causes a crash that corrupts the shell
2014-12-02 15:46:18 -05:00
Matthew Jones
fc5eb09e2a
Fix up some rbac issues that were blocking survey taker incidentally and
...
otherwise preventing normal users with the right permissions from
starting jobs
2014-12-01 14:01:03 -05:00
Matthew Jones
bab3bfb70a
Remove a vestige of the old zeromq implementation where we specified a
...
callback port as a decorated parameter to the overall test case
2014-12-01 11:35:20 -05:00
Matthew Jones
683e44f30e
Check for attributes on the job template before attempting to use that
2014-12-01 10:50:49 -05:00