Commit Graph

1383 Commits

Author SHA1 Message Date
Matthew Jones
bb7af4e916 Merge pull request #277 from matburt/fix_inventory_read_jt_rbac
Check inventory access for normal users when deciding what job templates show up in the queryset
2015-06-12 16:04:34 -04:00
Matthew Jones
5d1b27e520 Adding some job template listing unit tests and permissions to actually
make those work
2015-06-12 14:43:24 -04:00
Chris Church
4607972135 Included openstack inventory script from core + changes from some open PRs, fixes to be able to use without custom changes for tower. 2015-06-12 00:58:33 -04:00
Chris Church
dfe4e0c694 Add unit test for azure inventory. 2015-06-12 00:52:57 -04:00
Chris Meyers
d5b7be3f4f Merge pull request #276 from chrismeyersfsu/fix-fact_inventory_relationship
associate scan runs with a particular inventory host
2015-06-11 20:55:13 -04:00
Matthew Jones
df61fd6ab8 Check inventory access for normal users when deciding what job templates
show up in the job template queryset
2015-06-11 16:24:54 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Chris Meyers
0c7638bdd7 associate scan runs with a particular inventory host 2015-06-11 15:14:00 -04:00
Matthew Jones
bcc18aa689 Make using named pipe for adding passwords conditional on the version
of ssh used.
2015-06-11 14:48:10 -04:00
Matthew Jones
322fdc37a4 Remove some spurious print statements I left previously 2015-06-11 14:48:09 -04:00
Matthew Jones
f9ca5159e7 Fix up more copyright headers 2015-06-10 16:11:26 -04:00
Chris Meyers
f06c7e17f5 Merge pull request #273 from chrismeyersfsu/fix-job_launch_credential_permissions
restrict the set of valid, explicitly supplied credentials to be ones readable by the user
2015-06-10 08:37:25 -04:00
Matthew Jones
3c2f3f323a Fix some flake8 2015-06-09 16:07:06 -04:00
Matthew Jones
ab5c4b5f20 Check connection for scan jobs before actually running the job, fail
early if the system tracking database isn't available
2015-06-09 15:31:23 -04:00
Chris Meyers
df57f45baa Merge branch 'master' into fix-job_launch_credential_permissions 2015-06-08 14:40:50 -04:00
Chris Meyers
3b537c953f restrict the set of valid, explicitly supplied credentials to be ones readable by the user 2015-06-08 14:07:04 -04:00
Chris Meyers
0e866178d7 create license file that allows system tracking when running system tracking functional tests 2015-06-08 13:46:04 -04:00
Chris Meyers
f3430783c8 flake8 2015-06-08 10:10:18 -04:00
Chris Meyers
16682ba830 Correctly delete facts when module isn't specified. Also made deletion algorithm more simple and memory efficient by not loading in records into memory. 2015-06-05 17:05:20 -04:00
Chris Church
6679afe190 Merge pull request #259 from cchurch/ssh_key_data_fifo
Write SSH key data to named pipe
2015-06-03 23:33:16 -04:00
Luke Sneeringer
cdc7f03c58 Move MongoDB control to tasks. 2015-06-03 10:49:41 -05:00
Chris Church
7770b813ea Write SSH key data to a named pipe and remove immediately after reading to avoid leaving private key data on disk. 2015-06-02 20:23:12 -04:00
Chris Church
c24e51f515 Fix flake8 warning. 2015-06-02 20:09:26 -04:00
Chris Church
77ab83eb0d Fix inventory source name to exclude replacement text, fix inventory update name to be based only on inventory and group name. Fixes https://trello.com/c/zYrHMz9S 2015-06-02 19:46:18 -04:00
Matthew Jones
7d8edd9617 Check survey license enabled when creating, updating, and starting job
templates with surveys enabled
2015-06-01 17:01:49 -04:00
Matthew Jones
e392add46f Catch exceptions if there are issues communicating with mongo 2015-06-01 16:00:11 -04:00
Matthew Jones
06464333a6 Check license before launching job template and disallow scan job
template launch if license is unsupported
2015-06-01 14:15:42 -04:00
Matthew Jones
8006066609 Disable cleanup_facts if the user does not have system tracking enabled
in their license file
2015-06-01 10:30:41 -04:00
Chris Meyers
9c7943039c Merge pull request #255 from chrismeyersfsu/fix-update_instance
fixed calling of method that never existed
2015-06-01 09:51:58 -04:00
Matthew Jones
35fd2addc6 Remove runas from the list of become method choices since it's not
implemented in ansible yet (although it is listed in their help docs)
2015-06-01 09:48:16 -04:00
Chris Meyers
f8fc424ee5 fixed calling of method that never existed
When setting an instance as the primary instance project directory
creation may be necessary. Do not perform this action if instance is
secondary.
2015-06-01 08:20:15 -04:00
Chris Church
e23539e69b Fix flake8 warning. 2015-05-30 16:42:56 -04:00
Chris Church
8eb69b96d1 Set created_by and modified_by on default org to superuser (if found). Fixes https://trello.com/c/gERRKtXa 2015-05-30 16:23:12 -04:00
Chris Church
07205bcb88 Disable LDAP support when not allowed by license. 2015-05-30 16:08:19 -04:00
Chris Church
a72dbe4428 Update license data to include subscription_name. Implements API part of https://trello.com/c/4IMj3H4V 2015-05-29 22:31:35 -04:00
Matthew Jones
22ecb62179 Perform type checking on module_name and args for ad-hoc commands to
satisfy qa.
2015-05-29 14:55:42 -04:00
Chris Church
79a8e541cd Revert cleanup_deleted to delete one at a time, instead of batches. 2015-05-29 14:52:16 -04:00
Matthew Jones
31d0342d41 More copyright headers for api side stuff 2015-05-29 12:10:40 -04:00
Matthew Jones
b3da3b34a3 Changing some legal headers for python source files 2015-05-29 12:10:39 -04:00
Matthew Jones
20e85a6d34 Unit test for disallowing scan job with survey 2015-05-29 10:43:54 -04:00
Matthew Jones
10da862ab1 Lower the cleanup_deleted batch size to 50 to reduce overall memory
usage during the cleanup operation
2015-05-28 16:37:34 -04:00
Matthew Jones
5b3b4b48c0 Fix an issue when creating scan job templates where we weren't obeying
the license flag, so folks could still create scan jobs even if they
weren't enabled by the license.  Plus Unit Tests
2015-05-28 15:59:49 -04:00
Luke Sneeringer
6709654e04 Create a default organization. 2015-05-28 14:04:07 -05:00
Chris Meyers
092732550d Merge pull request #239 from chrismeyersfsu/fix-ha
equate unix socket file to localhost for ha
2015-05-23 15:28:47 -05:00
Chris Meyers
d47247460b Merge pull request #240 from chrismeyersfsu/fix-user_creation_password_required
user password required on creation
2015-05-23 08:55:36 -04:00
Chris Meyers
25ae938763 Merge branch 'master' into fix-ha 2015-05-23 07:58:11 -04:00
Chris Meyers
81d14bdde3 include password when creating new user 2015-05-23 07:56:55 -04:00
Chris Meyers
338a504314 flake8 2015-05-22 18:08:33 -04:00
Chris Meyers
17500859f4 add license creation to tests 2015-05-22 16:48:32 -04:00
Chris Meyers
d35259c807 create enterprise license in tests 2015-05-22 15:39:40 -04:00