Skip to content

Commit

Permalink
Add hook to enable horizon
Browse files Browse the repository at this point in the history
This PR adds hooks to enable horizon
service
  • Loading branch information
ashu-011 committed Nov 21, 2024
1 parent f31aef1 commit afdc156
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
28 changes: 28 additions & 0 deletions hooks/playbooks/control_plane_horizon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
- name: Kustomize ControlPlane for horizon service
hosts: "{{ cifmw_target_hook_host | default('localhost') }}"
gather_facts: false
tasks:
- name: Ensure the kustomizations dir exists
ansible.builtin.file:
path: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/controlplane"
state: directory
mode: "0755"

- name: Create kustomize yaml to enable Horizon
ansible.builtin.copy:
dest: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/controlplane/66-horizon-kustomization.yaml"
content: |-
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: {{ namespace }}
patches:
- target:
kind: OpenStackControlPlane
patch: |-
- op: add
path: /spec/horizon/enabled
value: true
- op: add
path: /spec/horizon/template/memcachedInstance
value: memcached
5 changes: 5 additions & 0 deletions scenarios/centos-9/horizon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
pre_deploy:
- name: Kustomize OpenStack CR
type: playbook
source: control_plane_horizon.yml
1 change: 1 addition & 0 deletions zuul.d/edpm_multinode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@
vars:
cifmw_extras:
- '@scenarios/centos-9/multinode-ci.yml'
- '@scenarios/centos-9/horizon.yml'
run:
- ci/playbooks/edpm/run.yml

Expand Down

0 comments on commit afdc156

Please sign in to comment.