12607 Commits

Author SHA1 Message Date
AlanCoding
fc590535be update inventory file list on every project update 2017-05-10 15:34:31 -04:00
AlanCoding
04d6fb1f95 SCM inventory cancel propagation
For manually initiated inventory updates, also cancel the source
project of "sync" type, like jobs do

For automatic inventory updates spawned from source project update,
of launch type "scm", handle contigency cases
2017-05-10 10:28:49 -04:00
Shane McDonald
55c2f5a2d6 Install Twilio package from source.
Someone uploaded a broken wheel to pypi...
2017-05-09 08:41:57 -04:00
Ryan Petrello
4cae50f2ab Merge pull request #6201 from ryanpetrello/new_credential_model
Make CredentialType conditionally editable/readonly
2017-05-08 16:27:15 -04:00
Ryan Petrello
1568fddde1 Make CredentialType conditionally editable/readonly.
* CredentialTypes should not be editable *or* deletable if they're
  "managed_by_tower".
* CredentialTypes should not be deletable if they're in use by one or
  more Credentials.
* CredentialType.inputs should not be editable if they're in use by one
  or more Credentials.

see: #6077
2017-05-08 16:13:26 -04:00
Aaron Tan
6728bb2315 Merge pull request #6187 from jangsutsr/6169_prevent_third_party_based_user_to_impose_tower_user
Prevent third-party-based user from imposing tower user
2017-05-08 14:43:32 -04:00
Aaron Tan
3110a9b4b0 Merge pull request #6185 from jangsutsr/6023_add_prompt_for_verbosity
Add prompt for verbosity
2017-05-08 14:42:04 -04:00
Alan Rominger
f954507a8c Merge pull request #6186 from AlanCoding/scm_inv_stability
SCM Inventory task system and variables stability edits
2017-05-08 14:31:58 -04:00
Ryan Petrello
19093d281a Merge pull request #6210 from ryanpetrello/improved_api_v1_credential_compat
properly support `(cloud|network)_credential` for JT update *and* create
2017-05-08 14:10:04 -04:00
Ryan Petrello
b7b9fb531e properly support (cloud|network)_credential for JT update *and* create
fix a bug which caused `POST /api/v1/job_templates/` to not properly set
`JobTemplate.extra_credentials`.

see: #5807
2017-05-08 13:50:28 -04:00
AlanCoding
890b5bba58 SCM Inventory task system and variables stability edits
* Ensure "fresh bits" in dependent jobs
  - run IUs in same context and dependent PU
  - review docs for update-on-launch expectations
* Avoid customer variable precedence upgrade issues
  - only allow SCM types to have overwrite_vars=true
  - do not run other cloud sources through the backported script
* Make extra sure to echo stdout and stderr in event of error
2017-05-08 09:43:11 -04:00
Ryan Petrello
3ed9ebed89 Merge pull request #6191 from ryanpetrello/fix-credential-migration
fix broken credential type migration upgrade
2017-05-05 14:56:35 -04:00
Ryan Petrello
422a62fb34 fix broken credential type migration upgrade 2017-05-05 13:19:59 -04:00
Michael Abashian
0522e27a66 Merge pull request #6157 from mabashian/inventory-ux-bug-fixes
Inventory ux bug fixes
2017-05-05 10:33:56 -04:00
Aaron Tan
7a6364c642 Prevent third-party-based user from imposing tower user. 2017-05-04 17:31:57 -04:00
Ryan Petrello
2eea66e647 Merge pull request #6183 from ryanpetrello/multicredential_job
Various custom credential type/multi-credential selection tidbits
2017-05-04 16:27:37 -04:00
Ryan Petrello
ef09744b75 enforce variable name syntax and uniqueness for Credential Types
see: #6158
2017-05-04 16:18:56 -04:00
Ryan Petrello
f3591b81a7 more multicredential JobTemplate changes
* allow for filtering Jobs and JobTemplates by v1 `cloud_credential` and
 `network_credential` fields
* properly validate uniqueness of `extra_credentials` types

see: #5807
2017-05-04 16:18:48 -04:00
Aaron Tan
18ba56964f Add prompt for verbosity. 2017-05-04 14:32:08 -04:00
Marliana Lara
6c7028f657 Merge pull request #6182 from marshmalien/CTiTUserSessionConfigs
Expose CTiT user-session configurations
2017-05-04 13:08:46 -04:00
Ryan Petrello
385080ebf2 Merge pull request #6168 from ryanpetrello/multicredential_job
Replace Job/JT cloud/network credentials with a single M2M relation.
2017-05-04 12:39:10 -04:00
Alan Rominger
257dc459cf Merge pull request #6179 from AlanCoding/name_changes
SCM Inventory field name changes
2017-05-04 11:17:21 -04:00
Marliana Lara
ecccc7d1b6 Add styles to keep number inputs consistent with form 2017-05-04 11:15:04 -04:00
AlanCoding
35ae13f498 fully link up source_project_update to inventory update 2017-05-04 11:08:05 -04:00
Marliana Lara
78011dd67f Expose CTiT user-session configurations 2017-05-04 09:47:23 -04:00
AlanCoding
d826c45ac6 SCM Inventory field name changes
on InventorySource model
* scm_project -> source_project
on InventorySourceSerializer
* scm_inventories -> scm_inventory_sources

on InventoryUpdate model
* scm_project_update -> source_project_update
2017-05-04 09:15:29 -04:00
Jared Tabor
6a5102d51d Merge pull request #6174 from jaredevantabor/source-notifications
Source notifications
2017-05-03 21:18:33 -04:00
Jared Tabor
394c7ed341 adding notifications to the inventory source 2017-05-03 21:18:06 -04:00
Jared Tabor
1f4c6edced Merge pull request #6165 from jaredevantabor/inventory-cleanup
removing old inv manage files
2017-05-03 20:51:39 -04:00
Wayne Witzel III
dfd65441b1 Merge pull request #6177 from wwitzel3/devel
add organization_id to Inventory summary fields
2017-05-03 17:13:20 -04:00
Wayne Witzel III
397f24f160 add organization_id to Inventory summary fields 2017-05-03 17:01:51 -04:00
Alan Rominger
a9c7822a4d Merge pull request #6176 from AlanCoding/inv_src_as
link inventory source activity stream to right place
2017-05-03 17:00:26 -04:00
AlanCoding
4735358857 link inventory source activity stream to right place 2017-05-03 16:31:21 -04:00
Alan Rominger
24a04d56f1 Merge pull request #6135 from AlanCoding/scm_bifurcation
Allow management of 2 types of SCM inventory sources
2017-05-03 16:03:11 -04:00
Wayne Witzel III
17b18f3d85 Merge pull request #6173 from wwitzel3/devel
Add organization to the InventorySource fields
2017-05-03 15:35:26 -04:00
Wayne Witzel III
0134b7e0bd Add organization to the InventorySource fields 2017-05-03 15:29:21 -04:00
Ryan Petrello
4a438e044e acceptance docs for [AUDIC] Arbitrary User-Defined Inventory & Credential 2017-05-03 14:09:46 -04:00
AlanCoding
3243110496 connect CredentialType to activity stream 2017-05-03 13:53:11 -04:00
AlanCoding
12ab3a0ae9 managed_by_tower restriction now in validation, not access 2017-05-03 13:53:06 -04:00
Marliana Lara
17a65bd67b Merge pull request #6156 from marshmalien/fix/stdOutPanesFillHeight
Stretch standard out panes to page height
2017-05-03 13:40:00 -04:00
Ryan Petrello
d0a848d49a Add a new extra_credentials endpoint for Jobs and JobTemplates
additionally, add backwards compatible support for `cloud_credential`
and `network_credential` in /api/v1/job_templates/ and /api/v1/jobs/.

see: #5807
2017-05-03 13:38:10 -04:00
Ryan Petrello
accf7cdea2 Replace Job/JT cloud/network credentials with a single M2M relation.
The following fields:

    * (Job | JobTemplate).cloud_credential
    * (Job | JobTemplate).network_credential

...are replaced by M2M relationships:

    * Job.extra_credentials
    * JobTemplate.extra_credentials

Includes support for task execution with multiple cloud credentials.

see: #5807
2017-05-03 13:36:59 -04:00
Marliana Lara
82d37d3fec Change left panel height to 100% for consistency 2017-05-03 13:24:55 -04:00
Marliana Lara
c49f7dddec Fix height responsiveness 2017-05-03 13:18:20 -04:00
AlanCoding
8d2598beee allow management of 2 types of SCM inventory sources 2017-05-03 12:18:08 -04:00
Marliana Lara
fae6573ae2 Stretch left panel to height of browser 2017-05-03 11:55:09 -04:00
Jared Tabor
f1c39cf5c2 removing old inv manage files
somehow they snuck in our giant rebase w/ devel
2017-05-03 11:33:36 -04:00
Wayne Witzel III
465d620629 Merge pull request #6163 from wwitzel3/issue-5922
Remove deprecated fields / old migration tests.
2017-05-03 10:42:13 -04:00
Wayne Witzel III
9f28c57521 Remove all CONSTANTS 2017-05-03 10:27:32 -04:00
Bill Nottingham
1b9bd8d9fb Merge pull request #6136 from wenottingham/warning
Fix deprecation warning.
2017-05-03 09:38:03 -04:00