-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
232a1f1
commit 785a709
Showing
2 changed files
with
55 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
50 changes: 50 additions & 0 deletions
50
ci/nova-operator-tempest-multinode/pre_deploy_control_plane_hook.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
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 |