Skip to content

Commit

Permalink
Modify job to use metadata per cell
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkisaolamb committed Jul 15, 2024
1 parent 232a1f1 commit c06faad
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci/nova-operator-tempest-multinode/ci_fw_vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ cifmw_cls_pv_count: 20

cifmw_services_swift_enabled: false

pre_deploy:
- name: 62 Kustomize ControlPlane
type: playbook
source: pre_deploy_control_plane_hook.yml

# note by default the source for the playbook specified
# in the hooks is relative to
# https://github.com/openstack-k8s-operators/ci-framework/tree/main/hooks/playbooks
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
- name: Kustomize ControlPlane
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

- name: Create kustomization
ansible.builtin.copy:
dest: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/controlplane/71-controlplane-kustomization.yaml"
content: |-
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
namespace: {{ cifmw_install_yamls_defaults['NAMESPACE'] }}
patches:
- target:
kind: OpenStackControlPlane
patch: |-
- op: add
path: /spec/nova/template/cellTemplates
value:
cell0:
cellDatabaseAccount: nova-cell0
hasAPIAccess: true
metadataServiceTemplate:
enabled: false
cell1:
cellDatabaseAccount: nova-cell1
hasAPIAccess: true
cellMessageBusInstance: rabbitmq-cell1
cellDatabaseInstance: openstack-cell1
metadataServiceTemplate:
enabled: true
override:
service:
metadata:
annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/allow-shared-ip: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.80
spec:
type: LoadBalancer
- op: add
path: /spec/nova/template/metadataServiceTemplate/enabled
value: false

0 comments on commit c06faad

Please sign in to comment.