Skip to content

Commit 768e006

Browse files
author
Alan Christie
committed
- Adds okd credential type
1 parent b07c73d commit 768e006

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

tasks/add-custom-credential-types.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,56 @@
4242
K8S_AUTH_API_KEY: "{{ '{{' }} api_key {{ '}}' }}"
4343
K8S_AUTH_VERIFY_SSL: "{{ '{{' }} verify_ssl {{ '}}' }}"
4444

45+
# Our OpenShift credential type
46+
47+
- name: Add okd credential type
48+
awx.awx.tower_credential_type:
49+
name: okd
50+
description: Credentials for an OpenShift/OKD server
51+
kind: cloud
52+
inputs:
53+
fields:
54+
- id: name
55+
type: string
56+
label: A symbolic name for the cluster
57+
- id: master_hostname
58+
type: string
59+
label: Master hostname
60+
- id: route_basename
61+
type: string
62+
label: Route basename
63+
- id: admin
64+
type: string
65+
label: Admin username
66+
- id: admin_password
67+
type: string
68+
secret: yes
69+
label: Admin password
70+
- id: user
71+
type: string
72+
label: Basic user username
73+
- id: user_password
74+
type: string
75+
secret: yes
76+
label: Basic user password
77+
required:
78+
- name
79+
- master_hostname
80+
- route_basename
81+
- admin
82+
- admin_password
83+
- user
84+
- user_password
85+
injectors:
86+
extra_vars:
87+
okd_name: "{{ '{{' }} name {{ '}}' }}"
88+
okd_master_hostname: "{{ '{{' }} master_hostname {{ '}}' }}"
89+
okd_route_basename: "{{ '{{' }} route_basename {{ '}}' }}"
90+
okd_admin: "{{ '{{' }} admin {{ '}}' }}"
91+
okd_admin_password: "{{ '{{' }} admin_password {{ '}}' }}"
92+
okd_user: "{{ '{{' }} user {{ '}}' }}"
93+
okd_user_password: "{{ '{{' }} user_password {{ '}}' }}"
94+
4595
# Our Keycloak credential type
4696

4797
- name: Add keycloak credential type

0 commit comments

Comments
 (0)