Skip to content

Commit 49af8cd

Browse files
Clean HEAD
1 parent da32dbd commit 49af8cd

File tree

12 files changed

+64
-52
lines changed

12 files changed

+64
-52
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ test
77
tests/output
88
.vscode
99
ansible.cfg
10+
tests/localtest.yml

roles/eda_rulebook_activations/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ This also speeds up the overall role.
6060
|`awx_token`|""|no|str|The token used to authenticate to controller.|
6161
|`enabled`|"true"|no|str|Whether the rulebook activation is automatically enabled to run.|
6262
|`state`|`present`|no|str|Desired state of the rulebook activation.|
63-
|`organization_name`|""|no|str|The name of the organization.|
63+
|`organization`|""|no|str|The name of the organization.|
6464
|`eda_credentials`|""|no|list|A list of IDs for EDA credentials used by the rulebook activation.|
6565
|`k8s_service_name`|""|no|str|The name of the Kubernetes service associated with this rulebook activation.|
6666
|`swap_single_source`|"true"|no|bool|Allow swapping of single sources in a rulebook without name match.|

roles/gateway_http_ports/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
loop: "{{ __gateway_http_ports_job_async.results }}"
4040
loop_control:
4141
loop_var: __gateway_http_ports_job_async_results_item
42-
label: "{{ __operation.verb }} AAP Platform Http Ports {{ __gateway_http_ports_job_async_result.__gateway_http_ports_item.name }} | Wait for finish the Http Ports {{ __operation.action }}"
42+
label: "{{ __operation.verb }} AAP Platform Http Ports {{ __gateway_http_ports_job_async_results_item.__gateway_http_ports_item.name }} | Wait for finish the Http Ports {{ __operation.action }}"
4343
when: __gateway_http_ports_job_async_results_item.ansible_job_id is defined
4444
no_log: "{{ gateway_http_ports_secure_logging }}"
4545
vars:

roles/gateway_routes/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
loop_control:
2626
loop_var: __gateway_routes_item
2727
label: "{{ __operation.verb }} the Gateway route {{ __gateway_routes_item.name }}"
28-
pause: "{{ controller_configuration_labels_loop_delay }}"
28+
pause: "{{ gateway_routes_loop_delay }}"
2929
no_log: "{{ gateway_routes_secure_logging }}"
3030
async: 1000
3131
poll: 0
@@ -40,8 +40,8 @@
4040
jid: "{{ __gateway_routes_job_async_results_item.ansible_job_id }}"
4141
register: __gateway_routes_job_async_result
4242
until: __gateway_routes_job_async_result.finished
43-
retries: "{{ routes_async_retries }}"
44-
delay: "{{ routes_async_delay }}"
43+
retries: "{{ gateway_routes_async_retries }}"
44+
delay: "{{ gateway_routes_async_delay }}"
4545
loop: "{{ __gateway_routes_job_async.results }}"
4646
loop_control:
4747
loop_var: __gateway_routes_job_async_results_item

roles/gateway_service_nodes/tasks/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
loop_var: __gateway_service_nodes_item
2121
label: "{{ __operation.verb }} the Gateway service node {{ __gateway_service_nodes_item.name }}"
2222
pause: "{{ gateway_service_nodes_loop_delay }}"
23-
no_log: "{{ service_nodes_secure_logging }}"
23+
no_log: "{{ gateway_service_nodes_secure_logging }}"
2424
async: 1000
2525
poll: 0
2626
register: __gateway_service_nodes_job_async
@@ -34,14 +34,14 @@
3434
jid: "{{ __gateway_service_nodes_job_async_results_item.ansible_job_id }}"
3535
register: __gateway_service_nodes_job_async_result
3636
until: __gateway_service_nodes_job_async_result.finished
37-
retries: "{{ service_nodes_async_retries }}"
38-
delay: "{{ service_nodes_async_delay }}"
37+
retries: "{{ gateway_service_nodes_async_retries }}"
38+
delay: "{{ gateway_service_nodes_async_delay }}"
3939
loop: "{{ __gateway_service_nodes_job_async.results }}"
4040
loop_control:
4141
loop_var: __gateway_service_nodes_job_async_results_item
4242
label: "{{ __operation.verb }} Label {{ __gateway_service_nodes_job_async_results_item.__gateway_service_nodes_item.name }} | Wait for finish the Label {{ __operation.action }}"
4343
when: __gateway_service_nodes_job_async_results_item.ansible_job_id is defined
44-
no_log: "{{ service_nodes_secure_logging }}"
44+
no_log: "{{ gateway_service_nodes_secure_logging }}"
4545
vars:
4646
__operation: "{{ operation_translate[__gateway_service_nodes_job_async_results_item.state | default(platform_state) | default('present')] }}"
4747
ansible_async_dir: "{{ aap_configuration_async_dir }}"

roles/hub_ee_image/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
loop: "{{ ah_ee_images }}"
1818
loop_control:
1919
loop_var: __ee_image_item
20-
label: "{{ __operation.verb }} the EE image {{ __ah_configuration_ee_image__item.name }} in Hub"
20+
label: "{{ __operation.verb }} the EE image {{ __ee_image_item.name }} in Hub"
2121
pause: "{{ ah_configuration_ee_image_loop_delay }}"
2222
no_log: "{{ ah_configuration_ee_image_secure_logging }}"
2323
async: "{{ ah_configuration_ee_image_async_timeout }}"

tests/configs/gateway/service_cluster.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
22
# Cannot add more than one, cannot add existing type.
3-
# gateway_service_clusters:
4-
# - name: Automation Controller
5-
# service_type: controller
6-
# - name: Automation Hub
7-
# service_type: hub
8-
# - name: Event Driven Automation
9-
# service_type: eda
3+
gateway_service_clusters:
4+
- name: "gateway"
5+
service_type: "gateway"
6+
- name: "hub"
7+
service_type: "hub"
8+
- name: "controller"
9+
service_type: "controller"
10+
1011
gateway_service_keys:
1112
- name: Test-Key 1
1213
is_active: true

tests/configs/gateway/services.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
https_port_lookup: "{{ lookup('ansible.platform.gateway_api', 'http_ports', query_params={ 'is_api_port': true }, host=aap_hostname, username=aap_username, password=aap_password, verify_ssl=false, expect_one=true) }}"
3+
gateway_services_lookup: "{{ lookup('ansible.platform.gateway_api', 'services', query_params={ 'name': 'gateway api' }, host=aap_hostname, username=aap_username, password=aap_password, verify_ssl=false, expect_one=true) }}"
4+
service_node_name: "Node gateway - {{ aap_hostname | urlsplit('hostname') }}"
5+
gateway_service_node_lookup: "{{ lookup('ansible.platform.gateway_api', 'service_nodes', query_params={ 'name': service_node_name }, host=aap_hostname, username=aap_username, password=aap_password, verify_ssl=false, expect_one=true) }}"
6+
gateway_routes_lookup: "{{ lookup('ansible.platform.gateway_api', 'routes', query_params={ 'name': 'hub container registry' }, host=aap_hostname, username=aap_username, password=aap_password, verify_ssl=false, expect_one=true) }}"
7+
8+
http_ports:
9+
- name: "{{ https_port_lookup.name }}"
10+
number: "{{ https_port_lookup.number | int }}"
11+
use_https: true
12+
is_api_port: true
13+
14+
gateway_services:
15+
- name: Controller API
16+
state: exists
17+
- name: gateway api
18+
http_port: port-443
19+
service_cluster: gateway
20+
service_path: "/"
21+
service_port: "{{ gateway_services_lookup.service_port | int }}"
22+
23+
gateway_service_nodes:
24+
- name: "{{ service_node_name }}"
25+
address: "{{ aap_hostname | urlsplit('hostname') }}"
26+
service_cluster: "{{ gateway_service_node_lookup.service_cluster }}"
27+
28+
gateway_routes:
29+
- name: "{{ gateway_routes_lookup.name }}"
30+
description: "{{ gateway_routes_lookup.description }}"
31+
http_port: "{{ gateway_routes_lookup.http_port }}"
32+
enable_gateway_auth: "{{ gateway_routes_lookup.enable_gateway_auth }}"
33+
service_cluster: "{{ gateway_routes_lookup.service_cluster }}"
34+
...

tests/configs/hub/ah_collections.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
ah_collections:
33
- namespace: infra
44
name: galaxy
5-
path: "/home/runner/work/{{ git_repo_name }}/{{ git_repo_name }}/galaxy-galaxy-1.0.0.tar.gz"
5+
path: "/home/runner/work/{{ git_repo_name }}/{{ git_repo_name }}/infra-aap_configuration-1.0.0.tar.gz"
66
wait: true
77
interaval: 5
88
auto_approve: true
@@ -18,7 +18,7 @@ ah_collections:
1818
ah_collections_overwrite:
1919
- namespace: infra
2020
name: galaxy
21-
path: "/home/runner/work/{{ git_repo_name }}/{{ git_repo_name }}/galaxy-galaxy-1.0.0.tar.gz"
21+
path: "/home/runner/work/{{ git_repo_name }}/{{ git_repo_name }}/infra-aap_configuration-1.0.0.tar.gz"
2222
wait: true
2323
interaval: 5
2424
auto_approve: true

tests/configs/hub/ah_ee_images.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ah_ee_images:
2+
- name: config_as_code_ee
3+
state: present
4+
append: false
5+
tags:
6+
- v2
7+
- "2.0"
8+
- prod1

0 commit comments

Comments
 (0)