Skip to content

Commit

Permalink
Add EDA deployment on OCP (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
derekwaters authored Jun 18, 2024
1 parent 3a8d26c commit 713d91f
Show file tree
Hide file tree
Showing 9 changed files with 182 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/add_eda_install_on_ocp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- Added ability to install EDA Controller on OCP
12 changes: 11 additions & 1 deletion roles/aap_ocp_install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,20 @@ If the variable is omitted the corresponding component will not be installed (e.
| projects_storage_size | | 8Gi | Size of /var/lib/projects persistent volume claim (PVC) |
| link_text | | Automation Controller (<INSTANCE_NAME>) | Text used for creating the OCP application link |

| ### aap_ocp_install_hub keys |### aap_ocp_install_hub keys
### aap_ocp_install_hub keys

| Key Name | Required | Default Value | Description |
|---------------|:--------:|----------------------------------|-------------------------------------------------|
| instance_name | Yes | None | Name of the hub instance to create |
| link_text | | Automation Hub (<INSTANCE_NAME>) | Text used for creating the OCP application link |

### aap_ocp_install_eda keys

| Key Name | Required | Default Value | Description |
|---------------|:--------:|----------------------------------|-------------------------------------------------|
| instance_name | Yes | None | Name of the EDA instance to create |
| link_text | | EDA Controller (<INSTANCE_NAME>) | Text used for creating the OCP application link |

## Dependencies

This role depends on the redhat.openshift and kubernetes.core collections.
Expand Down Expand Up @@ -94,6 +101,8 @@ Including an example of how to use your role (for instance, with variables passe
instance_name: automationcontroller
aap_ocp_install_hub:
instance_name: automationhub
aap_ocp_install_eda:
instance_name: edacontroller

roles:
- infra.aap_utilities.aap_ocp_install
Expand All @@ -107,3 +116,4 @@ Including an example of how to use your role (for instance, with variables passe
## Author Information

Brant Evans
Derek Waters
7 changes: 7 additions & 0 deletions roles/aap_ocp_install/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,11 @@
# aap_ocp_install_hub:
# instance_name:
# link_text:

# Variable applicable to the EDA installation
# aap_ocp_install_eda:
# namespace:
# instance_name:
# replicas:
# link_text:
...
63 changes: 63 additions & 0 deletions roles/aap_ocp_install/tasks/install-eda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
- name: Create EDA controller namespace
kubernetes.core.k8s:
host: "{{ __aap_ocp_install_auth_results['openshift_auth']['host'] }}"
api_key: "{{ __aap_ocp_install_auth_results['openshift_auth']['api_key'] }}"
validate_certs: "{{ aap_ocp_install_connection['validate_certs'] | default(omit) }}"
state: present
resource_definition: "{{ lookup('ansible.builtin.template', 'namespace.yaml.j2', template_vars=ns_vars) | from_yaml }}"
apply: true
vars:
ns_vars:
ns_name: "{{ aap_ocp_install_eda['namespace'] }}"
when:
- aap_ocp_install_eda['namespace'] is defined

- name: Create EDA instance
kubernetes.core.k8s:
host: "{{ __aap_ocp_install_auth_results['openshift_auth']['host'] }}"
api_key: "{{ __aap_ocp_install_auth_results['openshift_auth']['api_key'] }}"
validate_certs: "{{ aap_ocp_install_connection['validate_certs'] | default(omit) }}"
state: present
resource_definition: "{{ lookup('template', 'eda/instance.yaml.j2') | from_yaml }}"
apply: true

- name: Wait for operator to create the EDA route
kubernetes.core.k8s_info:
host: "{{ __aap_ocp_install_auth_results['openshift_auth']['host'] }}"
api_key: "{{ __aap_ocp_install_auth_results['openshift_auth']['api_key'] }}"
validate_certs: "{{ aap_ocp_install_connection['validate_certs'] | default(omit) }}"
kind: Route
name: "{{ aap_ocp_install_eda['instance_name'] | mandatory }}"
api_version: route.openshift.io/v1
namespace: "{{ aap_ocp_install_eda['namespace'] | default(aap_ocp_install_namespace) }}"
register: __aap_ocp_install_eda_route_result
until: __aap_ocp_install_eda_route_result['resources']
retries: 60 # Wait for 15 minutes (60*15/60)
delay: 15

- name: Store EDA route
ansible.builtin.set_fact:
__aap_ocp_install_eda_route: "{{ __aap_ocp_install_eda_route_result['resources'][0]['status']['ingress'][0]['host'] }}"

- name: Ensure EDA login is available
ansible.builtin.uri:
url: "https://{{ __aap_ocp_install_eda_route }}"
validate_certs: "{{ aap_ocp_install_connection['validate_certs'] | default(omit) }}"
method: GET
status_code:
- 200
register: __aap_ocp_install_eda_available
until: __aap_ocp_install_eda_available['status'] == 200
retries: 120 # Wait for 30 minutes (120*15/60)
delay: 15

- name: Create EDA console link
kubernetes.core.k8s:
host: "{{ __aap_ocp_install_auth_results['openshift_auth']['host'] }}"
api_key: "{{ __aap_ocp_install_auth_results['openshift_auth']['api_key'] }}"
validate_certs: "{{ aap_ocp_install_connection['validate_certs'] | default(omit) }}"
state: present
resource_definition: "{{ lookup('template', 'eda/consolelink.yaml.j2') | from_yaml }}"
apply: true
...
10 changes: 10 additions & 0 deletions roles/aap_ocp_install/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@
tags:
- hub

- name: Include Ansible Automation Platform EDA install tasks
ansible.builtin.include_tasks:
file: install-eda.yml
apply:
tags:
- eda
when: aap_ocp_install_eda is defined
tags:
- eda

always:

- name: Include OpenShift finalization tasks
Expand Down
56 changes: 56 additions & 0 deletions roles/aap_ocp_install/tasks/pre-validate-eda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
- name: Ensure eda instance name variable is set (block)
block:
- name: Ensure eda instance name variable is set
ansible.builtin.assert:
that:
- aap_ocp_install_eda['instance_name'] | default('', true) | length > 0
quiet: true
rescue:
- name: Update validation errors fact - eda instance_name
ansible.builtin.set_fact:
__aap_ocp_install_prevalidate_errors: >
{{ __aap_ocp_install_prevalidate_errors + ["aap_ocp_install_eda['instance_name'] must be set"] }}
- name: Ensure EDA namespace variable is set (block)
when: aap_ocp_install_eda['namespace'] is defined
block:
- name: Ensure EDA namespace variable is set
ansible.builtin.assert:
that:
- aap_ocp_install_eda['namespace'] | default("", true) | regex_search('^[a-z0-9]([-a-z0-9]*[a-z0-9])?$')
quiet: true
rescue:
- name: Update validation errors fact - namespace
ansible.builtin.set_fact:
__aap_ocp_install_prevalidate_errors: >
{{ __aap_ocp_install_prevalidate_errors + ["aap_ocp_install_eda['namespace'] must be a lowercase RFC 1123 label consisting of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc'"] }}
- name: Ensure EDA link text variable is set (block)
when: aap_ocp_install_eda['link_text'] is defined
block:
- name: Ensure EDA link text variable is set
ansible.builtin.assert:
that:
- aap_ocp_install_eda['link_text'] | default('', true) | length > 0
quiet: true
rescue:
- name: Update validation errors fact - EDA link_text
ansible.builtin.set_fact:
__aap_ocp_install_prevalidate_errors: >
{{ __aap_ocp_install_prevalidate_errors + ["aap_ocp_install_eda['link_text'] must be a non-empty string"] }}
- name: Ensure EDA replicas is valid (block)
when: aap_ocp_install_eda['replicas'] is defined
block:
- name: Ensure EDA replicas is valid
ansible.builtin.assert:
that:
- (aap_ocp_install_eda['replicas'] | int) > 0
quiet: true
rescue:
- name: Update validation errors fact - EDA replicas
ansible.builtin.set_fact:
__aap_ocp_install_prevalidate_errors: >
{{ __aap_ocp_install_prevalidate_errors + ["aap_ocp_install_eda['replicas'] must be a number greater than 0"] }}
...
6 changes: 6 additions & 0 deletions roles/aap_ocp_install/tasks/pre-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@
when:
- ( 'hub' in ansible_run_tags ) or ( 'all' in ansible_run_tags and aap_ocp_install_hub is defined )

- name: Ensure eda variables are set
ansible.builtin.include_tasks:
file: pre-validate-eda.yml
when:
- ( 'eda' in ansible_run_tags ) or ( 'all' in ansible_run_tags and aap_ocp_install_eda is defined )

- name: Ensure no validation errors found
ansible.builtin.debug:
msg:
Expand Down
17 changes: 17 additions & 0 deletions roles/aap_ocp_install/templates/eda/consolelink.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
apiVersion: console.openshift.io/v1
kind: ConsoleLink
metadata:
name: {{ aap_ocp_install_eda['instance_name'] }}
spec:
applicationMenu:
section: Red Hat applications
imageURL: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMg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AgsJgYWEwEJCQmAhIbCQEFhISAgsJAQWEgILCQmBhYTAQkJgISEhsJAQWEgDTP8PYtUOifNZCQcAAAAASUVORK5CYII=
href: 'https://{{ __aap_ocp_install_eda_route }}/'
location: ApplicationMenu
{% if aap_ocp_install_eda['link_text'] is defined %}
text: {{ aap_ocp_install_eda['link_text'] }}
{% else %}
text: EDA Controller ({{ aap_ocp_install_eda['instance_name'] }})
{% endif%}
...
10 changes: 10 additions & 0 deletions roles/aap_ocp_install/templates/eda/instance.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: eda.ansible.com/v1alpha1
kind: EDA
metadata:
name: {{ aap_ocp_install_eda['instance_name'] }}
namespace: {{ aap_ocp_install_eda['namespace'] | default(aap_ocp_install_namespace) }}
spec:
replicas: {{ aap_ocp_install_eda['replicas'] | default(1) | int }}
automation_server_url: 'https://{{ __aap_ocp_install_controller_route }}/'
...

0 comments on commit 713d91f

Please sign in to comment.