1
0
mirror of https://github.com/ansible/tower-cli.git synced 2026-02-06 09:47:55 +01:00

152 Commits

Author SHA1 Message Date
AlanCoding
fb1772b9d8 Improve error handling for users using the schema command 2020-03-12 12:54:10 -04:00
AlanCoding
33b8ab492f Apply deprecated vault_credential field to JTs 2020-01-02 14:40:42 -05:00
AlanCoding
1f12edf237 Support for multi-vault
*Attempt to use JT credentials endpoint with fallback
*Allow specifying list of credentials on job launch
2019-10-30 15:20:40 -04:00
AlanCoding
761bad184b If old credential field specified, add to JT 2019-10-24 11:11:01 -04:00
AlanCoding
31fd5d8b25 Get send/receive to work with AWX 8.0.0 and JT credentials 2019-10-24 11:00:11 -04:00
Kyle Fattig
d3f53e1094 added support for 'job_slice_count' on JTs 2019-08-08 14:40:15 -05:00
Alan Rominger
8a020e8062 Merge pull request #700 from jainnikhil30/master
enable notifier on org, project and inventory sources
2019-07-09 13:04:28 -04:00
Pierre-Louis Bonicoli
059c1959d5 grant role to user: handle admin roles with space
Fix 'Unable to add user' when granted role contains a space:

    $ awx-cli send <<EOF
    [
      {
        "asset_type": "organization",
        "name": "MyOrg",
        "asset_relation": {
          "roles": [
            {
              "name": "Inventory Admin",
              "user": ["misc"],
              "team": []
            }
          ]
        }
      }
    ]
    EOF

    ORGANIZATION [MyOrg] ***
    Asset up to date
    Unable to add user misc to Inventory Admin role: The requested object could not be found.
2019-06-11 02:55:08 +02:00
root
410edf0698 remove blank space and correct the parameter 2019-04-26 19:47:59 +05:30
root
8068a6e941 enable notifier on org, project and inventory sources 2019-04-26 19:06:52 +05:30
jainnikhil30
b68c7df941 use the correct resolution name for credentials 2019-04-23 18:16:24 +05:30
jainnikhil30
1ab9808b59 change notify to boolean 2019-04-10 18:03:26 +05:30
AlanCoding
5ea8dcdb2a allow managing certain instance properties 2019-04-09 08:58:09 -04:00
jainnikhil30
713eee36ea add ask-inventory-on-launch and ask-variables-on-launch 2019-04-05 13:24:37 +05:30
jainnikhil30
97461b5860 revert the previous commit to workflow for adding ask variables and inventory on launch, accidentaly commited to master 2019-04-05 13:20:38 +05:30
jainnikhil30
6babeb0698 add ask-inventory-on-launch and ask-variables-on-launch to workflow 2019-04-05 13:17:13 +05:30
jainnikhil30
7f3d620ac0 fix for extra recursion in workflow 2019-03-22 09:56:21 +05:30
jainnikhil30
3be404989f add job_template_admin role 2019-03-18 18:56:00 +05:30
Fedor V
536e285af1 fix deep nested recursion 2019-03-11 10:21:53 +03:00
jainnikhil30
75a804eff8 add custom venv to organization 2019-01-23 17:54:59 +05:30
jainnikhil30
c9d7ac1805 add support for custom venv on project 2019-01-22 18:15:11 +05:30
Bill Nottingham
36fb31718d Allow workflows within workflows. 2019-01-18 21:00:11 -05:00
Matthias R. Wiora
d654fa277a take care of schedules on workflow templates 2018-12-03 16:25:37 +01:00
Alan Rominger
a3f9ce54cd Merge pull request #618 from jainnikhil30/master
Checking if the field is read-only before trying to modify it
2018-10-18 08:19:14 -04:00
jainnikhil30
c67f673fdf change the test condition 2018-09-26 11:01:08 +05:30
jainnikhil30
dec991219b checking if the field is read-only before trying to modify it 2018-09-24 11:54:13 +05:30
AlanCoding
5f155e63a4 add JT custom virtualenv field 2018-09-17 11:48:52 -04:00
Alan Rominger
f6263b4fc2 Merge pull request #591 from AlanCoding/add_workflow
Allow creating schedules with workflow
2018-09-17 10:33:07 -04:00
jainnikhil30
626b705f37 fix for null check while coercing a integer value 2018-09-12 14:40:37 +05:30
AlanCoding
733b796819 Allow creating schedules with workflow 2018-08-15 15:08:14 -04:00
AlanCoding
6e5bf0d8f1 fix reported problems associating labels 2018-08-15 14:48:17 -04:00
Alan Rominger
a2d526724b Merge pull request #549 from AlanCoding/actually_json
Parse object-type settings as JSON
2018-06-15 15:22:38 -04:00
Alan Rominger
fb32433daf Merge pull request #546 from AlanCoding/types_galore
Declare some more types
2018-06-15 15:21:58 -04:00
Alan Rominger
0a6ebff386 Merge pull request #547 from willthames/application_organization
Update application resource and documentation
2018-06-13 21:49:32 -04:00
Will Thames
786bed383c Update application resource and documentation
application requires an organization field, and doesn't
use the user field at all.

Add documentation of the application resource
2018-06-14 10:15:05 +10:00
AlanCoding
286b7c5970 parse object-type settings as JSON 2018-06-13 12:14:45 -04:00
AlanCoding
001548c5e8 declare some more types 2018-06-12 14:01:37 -04:00
AlanCoding
e37681cd94 handle missing POST in options 2018-06-08 16:12:09 -04:00
John Westcott IV
636462b66b Modified send/receive to transfer labels 2018-05-15 09:23:07 -04:00
equail
0d228fcddc fixing missing instance_group plurality 2018-03-28 22:32:57 +00:00
Matthew Jones
344b80b594 Merge pull request #441 from AlanCoding/launch_configs
Updates for saved launch-time configurations
2018-03-26 12:55:06 -07:00
Matthew Jones
95f58d9b4a Merge pull request #486 from AlanCoding/act
Add activity stream resource
2018-03-26 12:54:30 -07:00
Matthew Jones
edd36e22e9 Merge pull request #487 from AlanCoding/job_events
Add job event resource
2018-03-26 12:53:42 -07:00
AlanCoding
20d7855f16 update call pattern for label association 2018-03-22 13:08:31 -04:00
John Westcott IV
c97e3ac6b1 Multiple fixes
Fixed displaying name of credential when saying that its managed by Tower

Added schedule checking

Now looks at custom credential types trying to find required password and applies password rules to them
2018-03-16 09:05:44 -04:00
John Westcott IV
0bd13b8c54 Additional Fixes for PR
Resolved SCM credentials for projects

Export and import extra_credentials in job_templates

Resolve credentials for inventory source

Now checks notification templates before asset import
2018-03-15 09:24:31 -04:00
AlanCoding
43876337ea add job event resource 2018-03-14 17:06:55 -04:00
John Westcott IV
090da3fd3c Send/Receive feature PR
Added dependencies and related to POSSIBLE_TYPES

They are needed for the import functionality

i before e except after c

Fixed typo in receive

Added receive option

Changed classname from Destroyer to Cleaner

Added empty command

Added required=False to scm-type field.

This field is not required by the API to create a project

Removed items from export if managed_by_tower = True

Added credential_type to dependencies for a credential

This allows resoluation of a credential_type when importing a credential

Added send command

Missing __init__.py file

Added type parameter to cleaner

Send and Receive now can do json or yaml

Removed possible types, adding its items into resource objects

Changed how assets are specified for export

Added exception if nothing was passed in to process

Added all option to cleaner method

Fixed issue where properties added in the source were not caught as needed to be updated

Added send/recieve/empty docs

Updated help text for empty

Move removeEncryptedValues to common

Added deepclone of asset when determining if asset needs update

This fixed an issue when removing items in the asset that were later referenced

Fixed some issues when importing credentials

Added workflow nodes import/export

Initial commit of inventory groups/hosts/sources and fix for vault_creds in job_template

Updated API to strip off /api/vX if passed in as url

This allows you send URLs retreived from the API back into TowerCLI

Caught additional exception

If already parsed Java is passed in you could get a TypeError exception which was not caught.

Added notification types

Added workflow name to error message when extracting nodes

When this condition occurs the message is displayed but in a receive no details are present as to what workflow had the error

Added all_pages when requesting workflow_nodes

Allowed for multiple tokens to be saved in ~/.tower_cli_token.json

Added debug log if asset does not have POST options

Removed unused import and debug message

If an object does not have POST options, just return

Changed how errors are logged

Added project updates if asset was created or updated

Removed local_path from SCM based projects

Changed removal of encrypted values from asset to exported_asset

Added workflow inventory and credential resolution

Added inventory group import/export

Added additional credential types for export/import

Added options for passwords for new items

Variablized workdlow node types

Fixed workflow comparison

Spell checking

All post PR fixes for send/receive

Modified print statements for python3

Wrapped TowerCLI class in try

This should give us a better error when performing exports

Don't get source project if its None

Fixed user passwords

Moved projects before inventory

An inventory with a source from a project requires projects to be created first

Added inventory source_script resolution

Another change for comparing workflow nodes

Revert "Merge remote-tracking branch 'upstream/master'"

This reverts commit d8b0d2dbff2713a86aee4c7ca901d789b6e1d470, reversing
changes made to 87ea5d2c6118f797dd908404974e790df8e4059a.

Fixed unintended injection of documentation

Added todo

Removed comments for pull request

Removed commants on dropping format

Fixed bad merge

Updated for flake8

Added all_pages to lists

Better handeling of extra_vars

Multiple changes

Made empty take params like receive

Output of send and empty are now ansible-ish

Changed function name to python standards

Extracted 'work' into method for calling programatically

Fixed missing :

Fixed newline at end of file causing flake8 failure

removed closing #'s

Changed from passing on TypeError to continuing if not a string

Added min_value and max_value to list of known types

Changed from .prefix to .get_prefix()

Moved out touchup_extra_vars so that it applies to all asset_types

Fixed issue where tox was sending back a json_token of 'invalid' causing issues with the dict

Added missing POST endpoint

Use six for string compare
2018-03-14 13:52:04 -04:00
Ryan Petrello
dc1f34a00b add resources for OAuth2 Application and Token
see: https://github.com/ansible/tower-cli/issues/478
2018-03-14 10:36:19 -04:00
AlanCoding
504d976987 add activity stream resource 2018-03-09 15:59:32 -05:00