Skip to content

[DNM] enable redis in controlplane #2981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions hooks/playbooks/control_plane_redis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
- name: Kustomize ControlPlane for redis 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/60-redis-kustomization.yaml"
content: |-
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: {{ namespace }}
patches:
- target:
kind: OpenStackControlPlane
patch: |-
- op: add
path: /spec/redis/enabled
value: true
- op: replace
path: /spec/redis/templates/redis/replicas
value: 1
- op: replace
path: /spec/redis/templates/redis/tls
value: {}
mode: "0644"
5 changes: 5 additions & 0 deletions scenarios/centos-9/redis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
pre_deploy:
- name: 60 Kustomize OpenStack CR
type: playbook
source: control_plane_redis.yml
Loading