Commit Graph

758 Commits

Author SHA1 Message Date
Luke Sneeringer
fa82ed56e2 Adding Instance/JobOrigin migration 2014-10-20 10:43:08 -05:00
Luke Sneeringer
4045a1e4fa Migration, again! :) 2014-10-20 08:46:39 -05:00
Luke Sneeringer
841d5ab085 Merging migrations sucks. 2014-10-20 08:05:30 -05:00
Luke Sneeringer
1bdd1f4c34 Remove migration...again. 2014-10-20 08:05:30 -05:00
Luke Sneeringer
53234eb1ab Return stub records in testing. 2014-10-20 08:05:29 -05:00
Luke Sneeringer
b18303be20 Readd migration for instances and job origins. 2014-10-20 08:05:29 -05:00
Luke Sneeringer
bc763eab57 Know how to spot an HA environment. 2014-10-20 08:04:17 -05:00
Luke Sneeringer
ac4bde69cc Minor commit to make result_stdout_file become empty string. 2014-10-20 08:04:17 -05:00
Luke Sneeringer
d325cd4d09 Remove file when moving data to database. 2014-10-20 08:04:17 -05:00
Luke Sneeringer
dea41b6126 Record stdout in the database. 2014-10-20 08:04:17 -05:00
Luke Sneeringer
223a2168b8 Commenting up the UnifiedJob.save method. 2014-10-20 08:04:17 -05:00
Luke Sneeringer
ec1c770099 Added job cancelation when switching to secondary. 2014-10-20 08:04:17 -05:00
Luke Sneeringer
e23801313e Do a OneToOne with UnifiedJob. 2014-10-20 08:04:17 -05:00
Luke Sneeringer
f6a501bb28 Register signal against subclasses separately. 2014-10-20 08:04:17 -05:00
Luke Sneeringer
a72e72f20f Adding a post_save receiver. 2014-10-20 08:04:17 -05:00
Luke Sneeringer
ec7aa1867f Adding JobOrigin model and migration. 2014-10-20 08:04:16 -05:00
Luke Sneeringer
1ae333ca1d HA redirection. 2014-10-20 08:04:16 -05:00
Luke Sneeringer
0e623f2337 Start of HA middleware. 2014-10-20 08:04:16 -05:00
Luke Sneeringer
57194c9a89 Addition of IP address to instance records. 2014-10-20 08:04:16 -05:00
Luke Sneeringer
60dae748dc Adding IP Address to the instance.
Needed for redirecting.
2014-10-20 08:04:16 -05:00
Luke Sneeringer
1c11f43ea2 Thinking better of making the manager methods properties. 2014-10-20 08:04:16 -05:00
Luke Sneeringer
a9260db790 Adding an instance manager. 2014-10-20 08:04:16 -05:00
Luke Sneeringer
f77ae6f1bc Fixing a variable error. 2014-10-20 08:04:16 -05:00
Luke Sneeringer
4915ba291e Working instance registration. 2014-10-20 08:04:15 -05:00
Luke Sneeringer
3e2cf3acb3 Beginning work on instance registration, sanity checks. 2014-10-20 08:04:15 -05:00
Luke Sneeringer
35c6c72f2e Add Instance.role property. 2014-10-20 08:04:15 -05:00
Luke Sneeringer
072ab2118f Instance model (for HA) 2014-10-20 08:04:15 -05: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
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
71e87f7a41 Throw away everything but the first line when fetching the ansible version 2014-10-08 13:30:36 -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
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
Matthew Jones
27458667ab Use the normal built-ins for testing inventory sources when testing for
custom scripts
2014-10-02 11:33:27 -04:00
Matthew Jones
449c5026b7 Remove socket and context closure and cleanup from zeromq in the
callback receiver
2014-10-02 09:46:16 -04:00
Matthew Jones
bd0d4463ef Make sure we setup a license file when running the custom script
inventory update test
2014-10-01 16:26:09 -04:00
Matthew Jones
90bf8966b9 Refetch the group in an attempt to re-materialize the host additions 2014-10-01 15:17:17 -04:00
Matthew Jones
25f8034b79 catch -> except 2014-10-01 13:07:40 -04:00
Matthew Jones
786cc3fa85 Silently return if there isn't valid json passed in as extra data fields 2014-10-01 13:00:06 -04:00