3339 Commits

Author SHA1 Message Date
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
Jared Tabor
312c76788d Copy JT
Cleared the value of the copy JT form of any stale text
2014-12-15 10:14:51 -05:00
Luke Sneeringer
4e5ebac6a0 Nicer error on bad arguments to user_info. 2014-12-12 13:43:23 -06:00
Matthew Jones
1e1ea4e9ee Some fixes for passing arguments to system/management jobs 2014-12-12 13:40:34 -05:00
Jared Tabor
c0f4f7185b Projects/add
With fixes to the manual scm type, if the local path returns no playbooks then an error message should be shown.
2014-12-12 11:46:07 -05:00
Jared Tabor
696e356fd1 Changed labels for survey maker min/max
For text and textarea questions, i changed the labels from 'Minimum' and 'Maximum' to 'Minimum Length' and 'Maximum Length'
2014-12-12 10:23:04 -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
Jared Tabor
c2c47328df Survey taker float required error field
adding the div for the float required error field
2014-12-11 16:01:26 -05:00
Jared Tabor
7b9a6a4bb8 float's weren't required for survey taker
accidentally goofed up the expression for ng-required for floats on survey maker.
2014-12-11 15:43:50 -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
Jared Tabor
eb51600790 Hiding 'relaunch' icon for system jobs
hiding the relaunch icon for queued jobs, running jobs, and the dashboard view of jobs
2014-12-11 14:56:10 -05:00
Jared Tabor
f41a6f22bf Hide 'relaunch' icon for system jobs
system jobs don't have a relaunch resource, therefore we don't want the user thinking that they can relaunch these jobs.
2014-12-11 14:48:44 -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
Jared Tabor
1c1aa1f807 Add custom inventory script to activity streams
added custom inventory script filtering on the activity stream widget
2014-12-11 13:35:10 -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
Luke Sneeringer
0357bd074e Change user_exists to user_info. 2014-12-11 12:04:13 -06:00
Jared Tabor
acf7e83843 delete Job Template
added the div for styling of the delete job template prompt
2014-12-11 12:04:12 -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
Jared Tabor
2688f2c3cc Survey cancel button
Need to clean up lingering question object if cancel is pressed on the survey maker modal
2014-12-11 11:44:19 -05:00
Jared Tabor
7510714386 ToJSON fix
Expanded the list of things the ToJSON method can accept
2014-12-11 11:24:08 -05:00
Jared Tabor
b70464dfeb Job template form add mode, can_edit = true
had to include can_edit = true for creating a job template so that button would be enabled when form is valid
2014-12-10 16:22:09 -05:00
Jared Tabor
e668280d67 Permissions type text change
On the permissions page for "Job Template" type, the explanation text at the bottom needed to be updated from the 'deploy' verbage to the 'job template' verbage
2014-12-10 16:09:53 -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
Jared Tabor
646bcd407f Job Detail events scrolling defect fix
On the events view of the job detail page, when the list of hosts if very long, and an api call is made to get more host events, the host edit modal was using the hostname instead of the host id number to make a call to the job events endpoint
2014-12-10 15:18:16 -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
Jared Tabor
ec132ae151 Survey maker/taker html tag injection
Fixed a defect in which the user could inject html tags into the survey maker, which could in turn show up in survey taker.
2014-12-10 14:05:29 -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
Jared Tabor
1268fb6191 Permissions form-type label
Changed the label for 'Deploy' from 'Deployment' to 'Job Template'
2014-12-10 12:07:23 -05:00
Jared Tabor
1641122737 Disable survey if 'can_edit' is false
The user should not be able to edit a survey if they do not have permission to edit the job template. I've added a check if the mode is 'edit' to see if the can_edit flag is false.
2014-12-10 11:53:05 -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
Jared Tabor
f7706c3808 Job Template form 'can_edit'
the 'Save' button should be disabled if the user does not have sufficient permissions to edit the job template
2014-12-10 10:37:09 -05:00
Matthew Jones
f62b9ff2c0 Switch to using SIGTERM for canceling a job 2014-12-10 10:34:18 -05:00
Jared Tabor
f121228d1a Project playbooks save issue
Fixed defect with project directory not saving for a manual project. Checked for creating/editing a project
2014-12-10 09:22:19 -05:00
Jared Tabor
b5e521a759 Survey maker
There was a discrepency between save states in the survey maker when creating a new job template. I had to make some changes to how we 'save' survey's when creating job templates. Now survey info is stored in a seperate object and then stored in the scope when the user clicks save. It used to all be stored in teh scope object.
2014-12-09 16:26:04 -05:00
Luke Sneeringer
a8390070c1 Explicitly typecast self.pk. 2014-12-09 13:29:55 -06: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
Luke Sneeringer
9de1dc31f9 Identify the master by hostname. 2014-12-09 09:50:18 -06:00
Matthew Jones
572c1765cd Different strategy on the inventory script serializer, this should work
much better
2014-12-08 16:45:59 -05:00
Jared Tabor
5d6137c8a3 Add new inventory--empty source vars
The source variable parsing was out of date, and wasn't using the updated parser that I fixed to accept empty variables.
2014-12-08 16:41:23 -05:00
Jared Tabor
e10167ee5a Job Detail -- Events Summary
the edit icon for the host events was not receiving the correct host id during the processing of job_event data from the job_event endpoint
2014-12-08 16:16:39 -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
Jared Tabor
5daeed14c7 Inventory source tab fix for vmware inventory
Fixed an error with the vmware sourve variables not properly being instatiated once data is returned from the API
2014-12-08 14:17:28 -05:00