-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Horizon is not enabled by default in crc based deployment. This PR adds hooks to enable horizon service
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
pre_deploy: | ||
- name: 80 80 80 80 80 80 80 80 Kustomize OpenStack CR | ||
type: playbook | ||
source: control_plane_horizon.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters