-
Notifications
You must be signed in to change notification settings - Fork 7
/
configure_controller_no_survey.yaml
153 lines (153 loc) · 5.5 KB
/
configure_controller_no_survey.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
---
- name: Using role create job template
hosts: localhost
connection: local
gather_facts: false
vars:
controller_hostname: https://controller.nas/
controller_username: admin
controller_password: secret123
controller_validate_certs: false
controller_configuration_async_delay: 3
controller_projects:
- name: EE build project
scm_type: git
scm_url: https://github.com/sean-m-sullivan/ee_definition_config.git
scm_branch: main
scm_update_on_launch: false
description: EE build project
organization: Default
wait: true
update: false
controller_inventories:
- name: AAP Hosts
organization: Default
- name: Blank (localhost only)
organization: Default
controller_hosts:
- name: 10.242.42.108
inventory: AAP Hosts
variables:
ansible_connection: ssh
ansible_ssh_user: awx
ansible_ssh_pass: password
- name: localhost
inventory: Blank (localhost only)
variables:
ansible_connection: local
controller_credential_types:
- name: Registry Credentials
description: REST API Credential
kind: cloud
inputs:
fields:
- id: base_registery_username
type: string
label: RH Registery Username
- id: base_registery_password
type: string
label: RH Registery Password
secret: true
- id: ee_registry_username
type: string
label: AH Registery Username
- id: ee_registry_password
type: string
label: AH Registery Password
secret: true
- id: ah_host
type: string
label: AH Hostname
- id: ah_token
type: string
label: AH Token
secret: true
- id: ee_validate_certs
type: boolean
default: false
label: Validate certs
required:
- base_registery_username
- base_registery_password
injectors:
extra_vars:
ee_base_registry_username: !unsafe "{{ base_registery_username }}"
ee_base_registry_password: !unsafe "{{ base_registery_password }}"
ee_registry_username: !unsafe "{{ ee_registry_username }}"
ee_registry_password: !unsafe "{{ ee_registry_password }}"
ee_validate_certs: !unsafe "{{ ee_validate_certs }}"
ah_host: !unsafe "{{ ah_host }}"
ah_token: !unsafe "{{ ah_token }}"
controller_credentials:
- credential_type: Registry Credentials
name: Execution Build Credentials
organization: Default
inputs:
base_registery_username: rhn-username
base_registery_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
38343138643736376337626664646137363764393037396162643730346234663035646562646338
6531323731363538353063383661326334626234363834660a623463396433653034343934336466
32363431646462313966323633343837656666643935353561323663616266323962643435303034
6239363439666330350a653062306361363966336236363332326265653366386334316533323763
3238
ee_registry_username: admin
ee_registry_password: secret123
ee_validate_certs: false
ah_host: hub.nas
ah_token: 98d2f2b53c2fc9d8df66ab2d04917037e613f379
- credential_type: Red Hat Ansible Automation Platform
name: Controller Credential
organization: Default
inputs:
host: 10.242.42.150
username: admin
password: secret123
verify_ssl: false
controller_templates:
- name: Execution Environment Builder
job_type: run
inventory: AAP Hosts
credentials:
- Execution Build Credentials
project: EE build project
execution_environment: Automation Hub Minimal execution environment
playbook: ee_builder_controller.yaml
extra_vars:
ee_registry_dest: hub.nas
ee_builder_dir_clean: true
- name: Push Execution Environments to Controller
job_type: run
inventory: Blank (localhost only)
credentials:
- Controller Credential
project: EE build project
execution_environment: Automation Hub Minimal execution environment
playbook: push_to_controller.yaml
controller_workflows:
- name: Update Execution Environments
workflow_nodes:
- identifier: Build EE's
unified_job_template:
name: Execution Environment Builder
type: job_template
organization:
name: Default
related:
success_nodes:
- identifier: Push EE's to controller
- identifier: Push EE's to controller
unified_job_template:
name: Push Execution Environments to Controller
type: job_template
organization:
name: Default
roles:
- infra.controller_configuration.credential_types
- infra.controller_configuration.credentials
- infra.controller_configuration.inventories
- infra.controller_configuration.hosts
- infra.controller_configuration.projects
- infra.controller_configuration.job_templates
- infra.controller_configuration.workflow_job_templates
...