Skip to content

Commit 607e0e6

Browse files
ashu-011openshift-merge-bot[bot]
authored andcommitted
Add hook to enable horizon
Horizon is not enabled by default in crc based deployment. This PR adds hooks to enable horizon service
1 parent fc30400 commit 607e0e6

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
- name: Kustomize ControlPlane for horizon service
3+
hosts: "{{ cifmw_target_hook_host | default('localhost') }}"
4+
gather_facts: false
5+
tasks:
6+
- name: Ensure the kustomizations dir exists
7+
ansible.builtin.file:
8+
path: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/controlplane"
9+
state: directory
10+
mode: "0755"
11+
12+
- name: Create kustomize yaml to enable Horizon
13+
ansible.builtin.copy:
14+
dest: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/controlplane/80-horizon-kustomization.yaml"
15+
content: |-
16+
apiVersion: kustomize.config.k8s.io/v1beta1
17+
kind: Kustomization
18+
namespace: {{ namespace }}
19+
patches:
20+
- target:
21+
kind: OpenStackControlPlane
22+
patch: |-
23+
- op: add
24+
path: /spec/horizon/enabled
25+
value: true
26+
- op: add
27+
path: /spec/horizon/template/memcachedInstance
28+
value: memcached

scenarios/centos-9/horizon.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
pre_deploy:
3+
- name: 80 Kustomize OpenStack CR
4+
type: playbook
5+
source: control_plane_horizon.yml

zuul.d/edpm_multinode.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@
316316
vars:
317317
cifmw_extras:
318318
- '@scenarios/centos-9/multinode-ci.yml'
319+
- '@scenarios/centos-9/horizon.yml'
319320
run:
320321
- ci/playbooks/edpm/run.yml
321322

0 commit comments

Comments
 (0)