Jeff Bradberry
|
e8d93c99a6
|
Add the ksu, machinectl, and sesu methods to the builtin list of become methods
|
2019-03-08 11:14:18 -05:00 |
|
Jeff Bradberry
|
2a8e6ecba1
|
Update the error message when exceeding the organization hosts limit
|
2019-03-07 14:13:54 -05:00 |
|
Jeff Bradberry
|
046385d72e
|
Make the inventory_import command log an error message on exception
when it happens in the big try/except block in the middle of handle().
Previously it wasn't doing anything with it, except exiting with a
code of 1.
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
7eba55fbde
|
Change the wording of the error when adding a host
to "Organization host limit of %s would be exceeded...", since the
host will probably not actually be made active.
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
6ac51b7b13
|
Update the permission error to include max_hosts and the current host count
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
97cc467ae1
|
Restrict edit permissions on the Organization.max_hosts field to superusers
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
3312ebcb05
|
Remove the hosts count from related_field_counts in the org api endpoints
It is probably not needed, and adds an additional db query.
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
4d06ae48d3
|
Deal with the (erroneous) case where a job is missing the inventory
by bailing out of check_org_host_limit early. Validation catches this
situation later on.
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
cf75ea91a1
|
Properly use the inventory in the can_start permissions checks
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
5e34f6582b
|
Tests for start permissions for JobTemplate and WorkflowJob
when max_hosts is set.
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
60008dbd74
|
Add a test that AWX doesn't care about max_hosts when editing hosts
on an inventory.
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
4afd0672a1
|
Add test that AWX doesn't care about the limit when creating new hosts
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
875a1c0b5f
|
Remove the mention of the max_hosts value from the limit check messages
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
f5d7ca6913
|
Update the Organization API list and detail tests to check the host counts
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
df8a66e504
|
Correct the org limit check for changing hosts to use the host's org
instead of an inventory passed in from the user data, which is not allowed.
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
43a0a15f6f
|
Expose the new InventoryUpdate.org_host_limit_error field in the API
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
36ed890c14
|
Add permissions checks for the organization host limit
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
0e8e5f65e1
|
Update to fix tests
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
6399ec59c9
|
Include in the API the count of hosts used by an organization
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
e44c73883e
|
Expose Organization.max_hosts in the API
|
2019-02-28 15:54:09 -05:00 |
|
Jeff Bradberry
|
c3406748de
|
Add the new fields to the database
|
2019-02-28 15:54:03 -05:00 |
|
Jeff Bradberry
|
6d70651611
|
Update the inventory_import management command
to respect the new Organization.max_hosts limit.
|
2019-02-28 15:51:50 -05:00 |
|
Jeff Bradberry
|
5e13da62a4
|
Added a max_hosts field to Organization
in order to optionally set a limit to the number of hosts an
organization that is sharing a license is allowed to manage.
related #1542
|
2019-02-28 15:51:50 -05:00 |
|
Jeff Bradberry
|
46020379aa
|
Expose the known privilege escalation methods in the API config view
so that the UI can obtain them and make use of them for an autocomplete widget.
|
2019-02-04 11:45:27 -05:00 |
|
Jeff Bradberry
|
6560ab0fab
|
Migrated the inputs schema on existing CredentialTypes
to convert the custom become_method into a plain string.
related #2630
Signed-off-by: Jeff Bradberry <jeff.bradberry@gmail.com>
|
2019-01-29 15:04:35 -05:00 |
|
Jeff Bradberry
|
6e1deed79e
|
Removed the special-case logic for maintaining the schema of the become_method field
related #2630
Signed-off-by: Jeff Bradberry <jeff.bradberry@gmail.com>
|
2019-01-29 14:06:26 -05:00 |
|
Jeff Bradberry
|
0ecd6542bf
|
Changed the become_method field into one that takes arbitrary input
related #2630
Signed-off-by: Jeff Bradberry <jeff.bradberry@gmail.com>
|
2019-01-28 16:53:54 -05:00 |
|