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
Matthew Jones
6578c4ed26
Merge branch 'reintroduce-zeromq-unstable'
...
* reintroduce-zeromq-unstable:
Fix up some zeromq dependencies per platform
Fix a bug where a socket would re-emit its message 3 extra times
Make CALLBACK_CONSUMER_PORT falsy values be dummified.
Fix ZeroMQ port mismatch.
ZeroMQ changes.
Put files in the right place!
Error message correction.
Put socket.py in the wrong folder.
Theoretically working Socket implementation.
Beginning work on reintroducing ZeroMQ.
2014-12-01 10:24:51 -05:00
Matthew Jones
decd9da058
Merge branch 'master' into reintroduce-zeromq-unstable
...
* master:
Fix a bug where listing the unified job fields did not include the 'launch_type' parameter, causing failing unit tests
Inventory Scripts
Extra var parsing
Clean up jobs
Cleanup jobs redirect to jobs page
Custom inventory : Edit
Portal credential modal needed
Fix a bug in how I'm handling ids when creating a unified job as part of the launch process
Survey Maker
JS Hint errors
2014-12-01 10:24:18 -05:00
Matthew Jones
91a1d8f761
Fix a bug where listing the unified job fields did not include the
...
'launch_type' parameter, causing failing unit tests
2014-12-01 10:23:08 -05:00
Matthew Jones
bf04a56b68
Fix a bug where a socket would re-emit its message 3 extra times
2014-11-26 15:51:46 -05:00
Matthew Jones
875cef12e3
Fix a bug in how I'm handling ids when creating a unified job as part of
...
the launch process
2014-11-26 15:20:39 -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
Matthew Jones
e1f25a0949
Fix up unified job creation parameter passing
2014-11-26 11:54:49 -05:00
Matthew Jones
f8c6aa6fca
Roll this back, it doesn't do what I expect
2014-11-26 11:37:36 -05:00
Matthew Jones
15e6aa29a7
Make sure we propogate source_script into the related fields it needs to
...
be in
2014-11-26 11:14:26 -05:00
Matthew Jones
fb8c33b973
Update job template launch docs with credential_needed_to_start documentation
2014-11-26 10:17:40 -05:00
Matthew Jones
9756487edf
Make sure when we call create_unified_job we can pass important fields
...
as _id or without
2014-11-25 16:57:17 -05:00
Matthew Jones
8718688cf8
Make sure we pass extra parameters down to the unified job create method
...
so we can pick up credential if given
2014-11-25 16:47:53 -05:00
Matthew Jones
08ea3bef25
Add system job template launch documentation
2014-11-25 16:22:48 -05:00
Matthew Jones
7e109cb95d
Track source_script in summary and related fields for relevant inventory sources
2014-11-25 15:28:52 -05:00
Matthew Jones
cfb4361eb4
Temporarily remove ask_variables for job relaunch
2014-11-24 15:24:43 -05:00
Matthew Jones
2916ebf0c0
Improve query time by removing a check from the order by filter handler
2014-11-21 15:57:01 -05:00
Matthew Jones
ca5689c8ad
Fix a bug where checking cache timeout blackout could fail on projects
2014-11-20 11:28:09 -05:00
Matthew Jones
e2a56f2d65
add cache_timeout_blocked to systemjobtemplate
2014-11-19 12:09:18 -05:00
Matthew Jones
ece3bc5e64
Move cache_timeout_blocked to the job template where it belong from the
...
job model
2014-11-19 11:48:51 -05:00
Matthew Jones
3764bd2303
Reword errors when version metadata does not match or is absent
2014-11-18 12:06:43 -05:00
Matthew Jones
8b46bc3829
Fix up OPTIONS requests relative to system jobs on some endpoints
2014-11-18 12:02:48 -05:00
Matthew Jones
fb8d7e5d9c
Fix up direct launching of system jobs
2014-11-18 11:38:24 -05:00
Matthew Jones
c85f4fbac0
Import rax module from ansible core
2014-11-17 15:20:46 -05:00
Matthew Jones
8ba4d4c091
More on system uuid
2014-11-17 15:15:42 -05:00
Matthew Jones
c48dde9753
More unit test fixups for system uuid
2014-11-17 14:50:57 -05:00
Matthew Jones
eae8c48faa
Fix up unit tests for tracking system_uuid in the settings and database
2014-11-17 14:14:07 -05:00
Matthew Jones
e99466efc2
Fix a bug in the callback receiver where we weren't properly
...
initializing the parent signal handler
2014-11-17 13:28:09 -05:00
Matthew Jones
2d4efc1aa9
Don't strictly require a max or min when the other is included and
...
parsing surveys
2014-11-13 14:05:05 -05:00
Matthew Jones
300396c7ce
Extend cache timeout to schedule runner also, block running a schedule
...
of an inventory update or a project update if its schedule places
it within that time also
2014-11-13 13:47:23 -05:00
Matthew Jones
04ec19023f
Only consider active schedules for excluding multiple system job schedules
2014-11-13 13:03:47 -05:00
Matthew Jones
fa702a7a59
Remove registration of instance from develop makefile target... on new
...
installations the database isn't available at this point
2014-11-11 15:51:13 -05:00
Matthew Jones
8bf66f01c4
Add System Job to OPTIONS get for job types under unified jobs
2014-11-11 15:51:13 -05:00
Matthew Jones
ba1b9b9136
Add timestamp to logs for prints in management commands so we pick them
...
up the supervisor logs
2014-11-11 11:47:12 -05:00
Matthew Jones
c4e2463db1
Sanity check for tower version metadata file in wsgi bootstrap
2014-11-10 15:12:14 -05:00
Matthew Jones
0de53886da
Disallow multiple schedules for System Job Templates
2014-11-10 14:44:34 -05:00
Matthew Jones
309dba9693
Wording changes for the system job descriptions as proposed by @mpdehaan
2014-11-10 13:58:29 -05:00
Matthew Jones
4e494469c9
Use the normal version checker from tower manage
2014-11-10 12:22:20 -05:00
Matthew Jones
ce9434314f
Add a metadata file to the tower home directory that lists the version
...
of Tower
2014-11-10 12:17:11 -05:00
Matthew Jones
8916863cd3
Tweaks for Job Template based permissions covering delete and read
...
operations when the license has expired. Fix an issue where users
without the appropriate permissions could still delete job templates
2014-11-10 10:58:08 -05:00
Matthew Jones
db6a068c4a
Make the credential requirement information more consistent
2014-11-09 19:42:21 -05:00
Matthew Jones
902ef1a7ab
Read and run permission tweaks for new deployment permission type
2014-11-07 13:18:01 -05:00
Matthew Jones
2258425710
Denote whether a credential is required on the launch endpoint if it was
...
not provided on the job template
2014-11-07 11:37:37 -05:00
Matthew Jones
9873bd2bc2
Add created_by and modified_by to some serializers
2014-11-07 10:45:53 -05:00
Matthew Jones
27fd173e72
Custom inventory script environment variable blacklist
2014-11-06 11:17:44 -05:00
Matthew Jones
ede6142cea
New permission for users and teams that allow creating job templates,
...
this makes Deployment permissions more granular. Includes unit tests
and a migration to promote existing "run" permissions to "create".
Also some slight doc updates to denote that this implies "run" and "check"
2014-10-31 15:04:46 -04:00
Matthew Jones
202b511f55
Change returned job start id to system_job in the system job template
...
launch return data
2014-10-30 10:51:22 -04:00
Matthew Jones
7699faae28
Mo' stringent permissions on the system job and system job template endpoints
2014-10-30 10:24:47 -04:00
Matthew Jones
df4366bdba
Finish up the job template copying -> job_template/n/launch switch since
...
the UI implements this correctly now
2014-10-29 15:17:18 -04:00
Matthew Jones
1fae7e6764
Add more customization with data passed to the system job when run
2014-10-28 15:44:14 -04:00
Matthew Jones
08fc24c9e5
Create data migration for new system job templates and revise endpoints
2014-10-28 15:34:47 -04:00
Matthew Jones
098d4dc02e
Force stringify shell environment variables
2014-10-28 14:35:09 -04:00
Matthew Jones
010e55289f
Include system job details in root api browser
2014-10-28 14:35:09 -04:00
Matthew Jones
43ecfc0a87
Fix a small bug related to return state when determining valid user on
...
the socket io service
2014-10-27 14:52:21 -04:00
Matthew Jones
c6180d3928
Access control on websocket service
2014-10-27 11:40:33 -04:00
Matthew Jones
c106ba7bee
enable autoescaping of content in the DRF template
2014-10-24 13:55:13 -04:00
Matthew Jones
66f8f88898
Remove the form and multipart parser from the the list of DRF parser classes
2014-10-23 14:52:29 -04:00
Matthew Jones
3918e39723
Make utf-8 encoding conditional based on the type coming into the
...
license generator function
2014-10-20 15:11:46 -04:00
Matthew Jones
0f068f6127
Fix some encoding issues for custom inventory scripts
2014-10-20 13:04:45 -04:00
Matthew Jones
ce50376c7f
Updating job list api endpoints to be able to display system jobs if you
...
can see them and any have run
2014-10-17 14:56:40 -04:00
Matthew Jones
103929c9ee
Allow passing variables with schedules to support extra data on system jobs
2014-10-17 14:41:00 -04:00
Matthew Jones
21e4afca14
Relax type checking requirements for floats since javascript passively
...
converts whole number floats to ints
2014-10-14 15:41:22 -04:00
Matthew Jones
c43a7be99e
Make it so that we take source_vars with the custom inventory script
...
when defining the inventory source. Slight modification to the UI to
make that possible
2014-10-14 15:38:42 -04:00
Matthew Jones
8b8fb2403c
Fix some bugs with missing elements in the run system job task
2014-10-14 14:21:18 -04:00
Matthew Jones
6ed9705d91
Small fix for system job serializer
2014-10-14 13:56:58 -04:00
Matthew Jones
b3ea148f53
Label the SystemJob Access class with the proper model
2014-10-14 13:54:12 -04:00
Matthew Jones
fa0879f15b
Add basic access for system jobs (super user only)
2014-10-14 13:47:44 -04:00
Matthew Jones
434144d276
Make min and max optional in the fields they are used in
2014-10-14 13:37:52 -04:00
Matthew Jones
fbf9a4957e
Initial system job implementation
2014-10-14 11:11:17 -04:00
Matthew Jones
983eb43aec
Add new to the list of statuses that will be canceled if a job's parent
...
is removed
2014-10-14 10:12:01 -04:00
Matthew Jones
a7f1202316
Fix spelling error in validation error message
2014-10-10 12:47:54 -04:00
Matthew Jones
62e3b6ad08
Add DELETE to the job template survey spec endpoint
2014-10-09 13:46:03 -04:00
Matthew Jones
681954ab99
Make question_description optional in the survey spec
2014-10-09 09:56:28 -04:00
Matthew Jones
71e87f7a41
Throw away everything but the first line when fetching the ansible version
2014-10-08 13:30:36 -04:00
Matthew Jones
9c81144533
More documentation and validation for job relaunching/template launching
2014-10-07 17:01:12 -04:00
Matthew Jones
6e24131070
Change filtering priority to prevent building a queryset with null
...
values when examining project activity stream
2014-10-07 16:49:27 -04:00
Matthew Jones
ea36e30190
Cancel any running or pending actions when one of the unified job types
...
is deleted/marked inactive
2014-10-07 16:34:10 -04:00
Matthew Jones
d3e5db52cb
Adding job template survey documentation
2014-10-07 13:44:33 -04:00
Matthew Jones
7430973234
Add validation for survey elements on the api side
2014-10-07 10:56:45 -04:00
Matthew Jones
d6adb1d398
Add a settings that disallows org admins from seeing users outside of
...
their organization. See: https://trello.com/c/M74W11hQ
2014-10-06 15:59:05 -04:00
Matthew Jones
d55569ed51
Reworded invalide private key data to be more generic
2014-10-06 15:09:21 -04:00
Matthew Jones
2b61048651
Revert "Remove the Amazon AMI license handler from tower proper"
...
This reverts commit 22c2f0513d5e08d810ea6b14bc9595642def9462.
2014-10-06 09:59:54 -04:00
Matthew Jones
be7819e3d7
Make sure that if you have variables being required to start that we
...
return false when determining if the job can start without input
2014-10-03 14:16:50 -04:00
Matthew Jones
d3416336ed
Handle the case where the existing extra vars is None
2014-10-03 10:26:24 -04:00
Matthew Jones
c609f7a81d
Refactor callback receiver
...
* Move callback socket listener into its own method spawned as a
seperate process
* launch and manage worker processes from a parent process and isolate
them such that a fork doesn't inherit the zeromq socket
2014-10-03 00:37:08 -04:00
Matthew Jones
b37925149b
Fix the custom script update to use the normal mechanism for trigger an
...
inventory update
2014-10-02 12:53:24 -04:00
Matthew Jones
52fc81244d
Revert "Use the normal built-ins for testing inventory sources when testing for"
...
This reverts commit d989b3e438022f565fb17ae7e4ec02b10239d577.
2014-10-02 12:53:23 -04:00