You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating custom credential types (and custom credentials) using the Ansible awx.awx collection's awx.awx.tower_credential_type and awx.awx.tower_credential modules. I can create credentials using the tower-cli but not using the AWX console.
You cannot edit existing or create new custom credentials in the console because the SAVE button is never enabled. When I click the checkbox for the boolean field that's presented for a boolean property the text Please enter a value is printed.
Custom credential types that do not contain booleans can be edited and created.
ENVIRONMENT
AWX version: 11.2.0
AWX install method: kubernetes
Ansible version: 2.9.7
Operating System: kubernetes
Web Browser: Safari or Chrome
STEPS TO REPRODUCE
Create a custom credential type (using the Ansible awx.awx.tower_credential module). Here's a snippet from my playbook that creates my own kubernetes type. The field that causes the problem is verify_ssl: -
- name: Add kubernetes credential type
awx.awx.tower_credential_type:
name: kubernetes
description: Credentials for a Kubernetes/OpenShift cluster
kind: cloud
inputs:
fields:
- id: name
type: string
label: A symbolic name for the cluster
- id: host
type: string
label: API host
- id: api_key
type: string
label: API Key (Token)
secret: true
- id: verify_ssl
type: boolean
label: Verify SSL
required:
- name
- host
- api_key
- verify_ssl
injectors:
env:
K8S_AUTH_NAME: "{{ '{{' }} name {{ '}}' }}"
K8S_AUTH_HOST: "{{ '{{' }} host {{ '}}' }}"
K8S_AUTH_API_KEY: "{{ '{{' }} api_key {{ '}}' }}"
K8S_AUTH_VERIFY_SSL: "{{ '{{' }} verify_ssl {{ '}}' }}"
You can create credentials of this type using the awx.awx.tower_credential module. Here's a snippet that successfully creates instances of the credential that can be used in templates: -
Even if you had created the credential type by other means, I would expect the same results, because this is due to the combination of inputs definition.
ISSUE TYPE
SUMMARY
I am creating custom credential types (and custom credentials) using the Ansible awx.awx collection's
awx.awx.tower_credential_type
andawx.awx.tower_credential
modules. I can create credentials using thetower-cli
but not using the AWX console.You cannot edit existing or create new custom credentials in the console because the SAVE button is never enabled. When I click the checkbox for the boolean field that's presented for a boolean property the text Please enter a value is printed.
Custom credential types that do not contain booleans can be edited and created.
ENVIRONMENT
STEPS TO REPRODUCE
Create a custom credential type (using the Ansible
awx.awx.tower_credential
module). Here's a snippet from my playbook that creates my ownkubernetes
type. The field that causes the problem isverify_ssl
: -You can create credentials of this type using the
awx.awx.tower_credential
module. Here's a snippet that successfully creates instances of the credential that can be used in templates: -...but you will find that you cannot edit existing ones or create new ones using the AWX console.
EXPECTED RESULTS
I expect to be able to edit and create custom credentials that contain booleans using the AWX console.
ACTUAL RESULTS
The SAVE button is never enabled for custom credentials that contain booleans - so they cannot be created or existing ones changed.
ADDITIONAL INFORMATION
n/a
The text was updated successfully, but these errors were encountered: