Skip to content

Commit

Permalink
update aap credential injectors
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-m-sullivan committed Nov 10, 2024
1 parent 678ea69 commit 6156e93
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/awx_plugins/credentials/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,10 +688,30 @@
'type': 'boolean',
'secret': False,
},
{
'id': 'ah_path_prefix',
'label': gettext_noop('Verify SSL'),

Check warning on line 693 in src/awx_plugins/credentials/plugins.py

View check run for this annotation

Codecov / codecov/patch

src/awx_plugins/credentials/plugins.py#L693

Added line #L693 was not covered by tests
'type': 'string',
'secret': False,
'default': 'galaxy',
'help_text': gettext_noop(

Check warning on line 697 in src/awx_plugins/credentials/plugins.py

View check run for this annotation

Codecov / codecov/patch

src/awx_plugins/credentials/plugins.py#L697

Added line #L697 was not covered by tests
'API path used to access the Hub api. Either galaxy, '
'or custom. By default it should be galaxy',
),
},
],
'required': ['host'],
},
injectors={
'extra_vars': {
'aap_hostname': '{{host}}',
'aap_username': '{{password}}',
'aap_password': '{{password}}',
'aap_token': '{{oauth_token}}',
'aap_request_timeout': '{{request_timeout}}',
'aap_validate_certs': '{{verify_ssl}}',
'ah_path_prefix': '{{ah_path_prefix}}',
},
'env': {
'TOWER_HOST': '{{host}}',
'TOWER_USERNAME': '{{username}}',
Expand All @@ -703,6 +723,14 @@
'CONTROLLER_PASSWORD': '{{password}}',
'CONTROLLER_VERIFY_SSL': '{{verify_ssl}}',
'CONTROLLER_OAUTH_TOKEN': '{{oauth_token}}',
'CONTROLLER_REQUEST_TIMEOUT': '{{request_timeout}}',
'AAP_HOSTNAME': '{{host}}',
'AAP_USERNAME': '{{username}}',
'AAP_PASSWORD': '{{password}}',
'AAP_VALIDATE_CERTS': '{{verify_ssl}}',
'AAP_TOKEN': '{{oauth_token}}',
'AAP_REQUEST_TIMEOUT': '{{request_timeout}}',
'GALAXY_API_PATH_PREFIX': '{{ah_path_prefix}}',
},
},
)
Expand Down

0 comments on commit 6156e93

Please sign in to comment.