Alan Rominger
b3e15f70cb
Merge pull request #1612 from AlanCoding/token_no
...
Make user_capabilities False for read tokens
2018-03-21 14:45:19 -04:00
AlanCoding
4f1f578fde
make user_capabilities False for read tokens
2018-03-21 13:14:14 -04:00
Alan Rominger
8056ac5393
Delay import of freeze to make tests run ( #1617 )
...
* Delay import of freeze to make tests run
* fix flake8 error
2018-03-20 11:58:11 -04:00
Alan Rominger
30fb4076df
Merge pull request #1569 from AlanCoding/relaunch_survey
...
Allow normal users to relaunch jobs with survey answers
2018-03-20 07:14:09 -04:00
Alan Rominger
1413659f5f
Merge pull request #1593 from AlanCoding/fix_processed
...
Fix bug with non-event model
2018-03-16 14:53:05 -04:00
AlanCoding
bbbb7def0a
fix bug with non-event model
2018-03-16 14:27:36 -04:00
Alan Rominger
75dd8d7d30
Merge pull request #1587 from AlanCoding/more_event_blocking
...
Block deletion of resources with unprocessed events
2018-03-16 11:26:33 -04:00
AlanCoding
66108164b9
remove unnecessary mock
2018-03-16 10:55:48 -04:00
AlanCoding
69eccd3130
move ACTIVE_STATES to constants
2018-03-16 10:31:41 -04:00
AlanCoding
7881c921ac
block deletion of resources w unprocessed events
2018-03-16 10:14:28 -04:00
AlanCoding
43aef6c630
allow normal users to relaunch jobs w survey answers
2018-03-15 07:43:03 -04:00
Alan Rominger
5c0a52df16
Merge pull request #1533 from AlanCoding/count_events
...
Track emitted events on model
2018-03-14 10:30:43 -04:00
Alan Rominger
92b8fc7e73
Merge pull request #1554 from AlanCoding/poly_who
...
fix bugs with UJT optimizations
2018-03-14 09:11:57 -04:00
AlanCoding
5170fb80dc
fix bugs with UJT optimizations
2018-03-14 08:19:53 -04:00
AlanCoding
04a27d5b4d
Namechange events_processed -> event_processing_finished
...
from PR review, also adding tests to assert that the
value is passed from the stdout_handle to the UnifiedJob
object on finalization of job run in tasks.py
2018-03-14 07:53:04 -04:00
AlanCoding
b803a6e557
Track emitted events on model
2018-03-14 07:53:02 -04:00
Alan Rominger
0db584e23e
Merge pull request #1530 from AlanCoding/inv_env_vars
...
More restrictive inventory env vars management
2018-03-14 07:23:42 -04:00
Alan Rominger
dcae4f65b5
Merge pull request #1330 from AlanCoding/capable_of_anything
...
New copy fields, clean up user_capabilities logic
2018-03-13 12:05:45 -04:00
AlanCoding
3566140ecc
more restrictive inventory env vars management
2018-03-12 13:35:22 -04:00
Alan Rominger
b41d9c4620
Merge pull request #1470 from AlanCoding/mo_exceptions
...
Include stack trace for delete_inventory logs
2018-03-08 17:18:40 -05:00
Alan Rominger
3605dbfd73
Merge pull request #1472 from AlanCoding/more_deps
...
Add shade back into AWX requirements
2018-03-08 11:04:20 -05:00
AlanCoding
4a01805a19
add shade back into AWX requirements
...
Last round of dependency updates showed that AWX
depended on packages which came implicitly from shade
decorator is added as an explicit dependency
and all of the rest of shade requirements are
added back in here.
2018-03-08 10:32:19 -05:00
AlanCoding
54a68da088
include stack trace for delete_inventory logs
2018-03-08 08:30:59 -05:00
Alan Rominger
044b85ce7a
Merge pull request #1415 from AlanCoding/depgrades
...
Dependency Upgrades
2018-03-08 08:29:46 -05:00
AlanCoding
556e6c4a11
Dependency Updates
...
Upgrades of minor dependency upgrades
Inventory scripts were upgraded in separate commit
Major exclusions from this update
- celery was already downgraded for other reasons
- Django / DRF major update already done, minor bumps here
- asgi-amqp has fixes coming independently, not touched
- TACACS plus added features not needed
Removals of note
- remove shade from AWX requirements
- remove kombu from Ansible requirements
Other notes
Add note about pinning setuptools and pip,
done but not mentioned previously
Stop pinning gevent-websocket and twisted
upgrade Azure to Ansible core requirements
more detailed notes
https://gist.github.com/AlanCoding/9442a512ab6977940bc7b5b346d4f70b
upgrade version of Django for Exception
2018-03-06 16:04:01 -05:00
Alan Rominger
cc33109412
Merge pull request #1445 from AlanCoding/platform
...
Add platform to ec2 group by options
2018-03-06 07:23:22 -05:00
AlanCoding
341e2c0fe2
add platform to ec2 group by options
2018-03-05 15:43:28 -05:00
Alan Rominger
8d57b84251
Merge pull request #1353 from AlanCoding/dep_scripts
...
Update inventory scripts
2018-03-01 10:56:11 -05:00
Alan Rominger
4fba2d61e6
Merge pull request #1394 from AlanCoding/text_type2
...
Prevent unicode bug in job_explanation
2018-02-28 12:42:11 -05:00
AlanCoding
54c0436959
prevent unicode bug in job_explanation
2018-02-28 11:01:20 -05:00
Alan Rominger
ee0e239a9e
Merge pull request #1374 from AlanCoding/your_name
...
More consistent representations of model objects
2018-02-28 09:08:29 -05:00
AlanCoding
bacd895705
more consistent representations of model objects
2018-02-27 12:18:57 -05:00
Alan Rominger
6d7f60ea61
Merge pull request #1368 from AlanCoding/none_client
...
Fix server error with absent client_secret
2018-02-27 10:39:50 -05:00
AlanCoding
c900027f82
fix server error with absent client_secret
2018-02-27 09:23:36 -05:00
AlanCoding
b878a844d0
Update inventory scripts
...
ec2
- added support for tags and instance attributes
- allow filtering RDS instances by tags
- add option to group by platform
- set missing defaults
- make cache unique to script ran
- bug fixes
- implement AND'd filters
azure_rm
- minor python 3 upgrades
cloudforms
- minor regex fix
foreman
- several new configurables
- changes to caching
gce
- python 3 upgrades
- added gce_subnetwork param
openstack
- added `--cloud` parameter
ovirt4
- obtain defaults from env vars
vmware_inventory
- changed imports
- allow for custom filters
- changed host_filters
- error handling
- python 3 upgrades
2018-02-26 13:46:21 -05:00
AlanCoding
7b78a2ebcc
update tests for new call pattern for capabilities prefetch
2018-02-26 12:13:41 -05:00
AlanCoding
ce9234df0f
Revamp user_capabilities with new copy fields
...
Add copy fields corresponding to new server-side copying
Refactor the way user_capabilities are delivered
- move the prefetch definition from views to serializer
- store temporary mapping in serializer context
- use serializer backlinks to denote polymorphic prefetch model exclusions
2018-02-26 12:13:41 -05:00
Alan Rominger
ad8822bcfc
Merge pull request #1314 from AlanCoding/fix_rescheduling
...
Correct permission check for job rescheduling
2018-02-22 16:04:04 -05:00
Alan Rominger
db39ab1b0c
Merge pull request #1322 from AlanCoding/check_version
...
Loosen overwrite_vars constraint for new feature
2018-02-22 14:26:30 -05:00
AlanCoding
4727cda336
Loosen overwrite_vars constraint for new feature
2018-02-22 07:47:28 -05:00
Alan Rominger
2ebee58727
Merge pull request #1321 from AlanCoding/magic_credential
...
Alias filters by credential to credentials
2018-02-21 15:51:42 -05:00
AlanCoding
91e59ebd29
alias filters by credential to credentials
2018-02-21 14:57:26 -05:00
AlanCoding
992d7831b1
add test for ScheduleAccess prompts
2018-02-21 14:11:55 -05:00
AlanCoding
de4e95f396
correct permission check for job rescheduling
2018-02-21 09:25:43 -05:00
Alan Rominger
1582fcbb50
Merge pull request #1277 from AlanCoding/inv_multicred
...
Use the m2m field for inventory source credentials
2018-02-20 14:08:22 -05:00
AlanCoding
bb6032cff6
docs and review change for IS multivault
...
Mention inventory sources /credentials/ endpoint in docs
Also change means of identifying projects for the purose
of injecting custom credentials
2018-02-20 12:34:58 -05:00
AlanCoding
9c4d89f512
use the m2m field for inventory source creds
2018-02-20 12:34:56 -05:00
Alan Rominger
1a6819cdea
Merge pull request #630 from AlanCoding/text_type
...
Fix unicode bugs with log statements
2018-02-15 15:52:29 -05:00
AlanCoding
465e605464
fix unicode bugs with log statements
2018-02-15 15:26:58 -05:00
Alan Rominger
22f1a53266
Merge pull request #1233 from AlanCoding/no_turning_back
...
Raise 400 error on removal of credential on launch
2018-02-15 14:11:57 -05:00
AlanCoding
3d433350d3
raise 400 error on removal of credential on launch
...
Definition of removal is providing a `credentials` list on launch
that lacks a type of credential that the job template has.
This assures that every category of credential the job template
has will also exist on jobs ran from that job template.
This restriction already existed, but this makes the endpoint
fail instead of re-adding the credentials.
This change makes manual launch congruent with saved launch
configurations.
2018-02-15 08:16:03 -05:00
Alan Rominger
5935c410e4
Merge pull request #629 from AlanCoding/export
...
Use --export option for ansible-inventory
2018-02-14 15:56:05 -05:00
Alan Rominger
c90cf7c5e2
Merge pull request #1253 from AlanCoding/group_vars
...
Use --export option for ansible-inventory
2018-02-14 15:52:00 -05:00
AlanCoding
b01deb393e
use --export option for ansible-inventory
2018-02-14 14:48:13 -05:00
AlanCoding
05e6eda453
use --export option for ansible-inventory
2018-02-14 12:34:41 -05:00
Alan Rominger
39362aab4b
Merge pull request #1204 from AlanCoding/default_omission
...
Omit placeholder vars with survey password defaults
2018-02-13 12:58:11 -05:00
Alan Rominger
6cb3267ebe
Merge pull request #1214 from AlanCoding/fix_schedule_qs
...
Change schedule queryset logic to avoid server error
2018-02-13 12:54:05 -05:00
AlanCoding
58a94be428
Omit placeholder vars with survey password defaults
...
WFJT nodes & schedules (launch configs) will accept POST/PATCH/PUT
with variables in extra_data that have $encrypted$ for their value
if a valid survey default exists.
In this case, the variable is simply removed from the extra_data.
This is done so that it does not affect pre-existing value
substitution for $encrypted$ values from the config itself
2018-02-13 09:07:59 -05:00
AlanCoding
960845883d
change schedule qs logic, avoid server error
2018-02-13 08:32:00 -05:00
Alan Rominger
0268d575f8
Merge pull request #1193 from AlanCoding/no_sneaking_credential_in
...
Validation clause for WFJT node to follow credential prompt rule
2018-02-12 12:46:12 -05:00
AlanCoding
02ac139d5c
validation clause for WFJT node to follow cred prompt rule
2018-02-09 16:17:21 -05:00
Alan Rominger
b3dcfc8c18
Merge pull request #903 from ansible/item_copy
...
Implement item copy feature
2018-02-08 15:51:16 -05:00
Alan Rominger
01c6463b1b
Merge pull request #1162 from AlanCoding/remove_cred_sf
...
Remove credential from node and schedule summary fields
2018-02-08 10:37:46 -05:00
Alan Rominger
181399df7a
Merge pull request #1159 from AlanCoding/reschedule_msg
...
Verbose error messages for failure to re-schedule
2018-02-08 10:28:11 -05:00
AlanCoding
0f66892d06
remove credential from node and schedule summary fields
2018-02-08 09:22:55 -05:00
AlanCoding
87b59903a5
verbose error messages for failure to re-schedule
2018-02-08 08:46:56 -05:00
Alan Rominger
b38aa3dfb6
Merge pull request #1153 from AlanCoding/fix_wfjt_scheduling
...
fix bug scheduling WFJT without prompts
2018-02-07 15:49:13 -05:00
AlanCoding
fe69a23a4e
fix bug scheduling WFJT without prompts
2018-02-07 14:34:25 -05:00
AlanCoding
80a2d10742
fix bug when creating system job schedule
2017-12-20 15:30:57 -05:00
AlanCoding
08570fe785
make inventory update name combination of inventory and source
2017-12-18 16:21:39 -05:00
Alan Rominger
6e27294e2b
Merge pull request #846 from AlanCoding/encrypt_on_save
...
Encrypt password answers on config save
2017-12-18 16:20:08 -05:00
AlanCoding
3439ba5f3b
allow WFJT nodes without required variables
2017-12-18 12:03:40 -05:00
AlanCoding
c8e10adc96
fix bug saving extra_data and follow prompts rules
...
display_extra_vars was not taking a copy of the data before
acting on it - this causes a bug where the activity stream will
modify the existing object on the model. That leads to new data
not being accepted.
Also moved the processing of extra_data to prior to the accept
or ignore kwargs logic so that we pass the right (post-encryption)
form of the variables.
2017-12-18 10:50:22 -05:00
AlanCoding
1e1839915d
validate against unencrypted values at spawn point
2017-12-15 10:47:23 -05:00
AlanCoding
74bf058d62
encrypt password answers on config save
2017-12-15 07:48:55 -05:00
AlanCoding
0bb9c58e25
cache the global settings list, cProfile speedup
2017-12-14 11:29:30 -05:00
Alan Rominger
9c783aa0ce
Merge pull request #804 from AlanCoding/active_count
...
simplify query for active_count
2017-12-14 10:47:12 -05:00
Alan Rominger
526391a072
Merge pull request #838 from AlanCoding/no_unicode_loop_2
...
Avoid slowdown generating smart_filter (alternative 2)
2017-12-14 10:23:31 -05:00
AlanCoding
98f8faa349
simplify query for active_count
2017-12-14 09:53:26 -05:00
AlanCoding
8a2a5b0fb1
avoid slowdown generating smart_filter
2017-12-14 09:39:39 -05:00
AlanCoding
e188692acf
use Options models to consolidate field_names list
2017-12-13 22:39:38 -05:00
AlanCoding
9fb24f1a4c
add hack to TimingMiddlWare for Shippable tests
2017-12-13 18:49:26 -05:00
Alan Rominger
7eb2d86890
Merge pull request #749 from AlanCoding/detail_opt
...
Apply list view optimizations to detail view
2017-12-13 18:19:00 -05:00
AlanCoding
e3a731bb9e
apply listview optimizations to detail view
2017-12-13 16:09:37 -05:00
AlanCoding
77a1c405a6
flake8 fixes from removal of reencrypt test
2017-12-13 14:32:34 -05:00
AlanCoding
1b0bca8229
add back in support of towervars lost in merge
2017-12-13 14:30:11 -05:00
Alan Rominger
6c1c850c5f
Merge pull request #816 from AlanCoding/ints
...
use credential property that returns integers
2017-12-13 12:56:07 -05:00
AlanCoding
f4f1e0fd3c
use credential property that returns integers
2017-12-13 12:54:32 -05:00
AlanCoding
7243f871b4
fix bug creating inventory source schedules
2017-12-12 17:49:51 -05:00
Alan Rominger
8d348f916b
Merge pull request #794 from AlanCoding/hide_config_pass
...
Hide survey passwords in saved launch configs
2017-12-12 10:37:41 -05:00
AlanCoding
659d31324d
hide survey passwords in saved launch configs
2017-12-12 09:35:46 -05:00
Alan Rominger
1be3c77ac6
Merge pull request #787 from AlanCoding/workflow_system_jobs
...
allow using SystemJobTemplates in workflows
2017-12-11 13:21:33 -05:00
AlanCoding
4adfb9804e
allow using SystemJobTemplates in workflows
2017-12-11 08:58:45 -05:00
Alan Rominger
64ac1ee238
Merge pull request #746 from AlanCoding/i_forgot
...
Intentionally forget start_args when job is done
2017-12-11 08:08:27 -05:00
AlanCoding
0bf06479d5
add migration to remove old start_args
2017-12-10 12:08:59 -05:00
AlanCoding
1f8cab4171
intentionally forget start_args when job is done
2017-12-10 12:08:54 -05:00
Alan Rominger
2135291f35
Merge pull request #740 from AlanCoding/configs_rebased5
...
Feature: saved launchtime configurations
2017-12-08 16:55:00 -05:00
AlanCoding
a9aae91634
generalize schedule prompts validation
...
This makes ScheduleSerializer behave same as WFJT nodes
Prevents providing job_type for workflow jobs, as example
2017-12-08 16:23:56 -05:00
AlanCoding
905ff7dad7
fix bugs where ask_ var was checked on node
2017-12-08 13:57:33 -05:00
AlanCoding
e59a724efa
fix bug that broke combining WFJT and node vars
2017-12-08 13:48:45 -05:00