--- # Copyright Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. # All variables intended for modification should be placed in this file. # All variables within this role should have a prefix of "cifmw_kustomize_deploy" # default resources cifmw_kustomize_deploy_basedir: "{{ cifmw_basedir }}" cifmw_kustomize_deploy_architecture_repo_url: "{{ cifmw_architecture_repo_url }}" cifmw_kustomize_deploy_architecture_repo_dest_dir: >- {{ cifmw_architecture_repo | default( [ ansible_user_dir, 'src', 'github.com', 'openstack-k8s-operators', 'architecture' ] | path_join ) }} cifmw_kustomize_deploy_architecture_repo_version: "{{ cifmw_architecture_repo_version_pin | default('HEAD') }}" cifmw_kustomize_deploy_architecture_examples_common_path: "examples/common/" cifmw_kustomize_deploy_architecture_examples_path: "examples/va/" cifmw_kustomize_deploy_kustomizations_dest_dir: >- {{ [ cifmw_kustomize_deploy_basedir, 'artifacts', 'kustomize_deploy' ] | path_join }} cifmw_kustomize_deploy_generate_crs_only: false cifmw_kustomize_deploy_keep_generated_crs: true # operators resources cifmw_kustomize_deploy_olm_source_files: >- {{ [ cifmw_kustomize_deploy_architecture_repo_dest_dir, cifmw_kustomize_deploy_architecture_examples_common_path, 'olm' ] | path_join }} cifmw_kustomize_deploy_olm_dest_file: >- {{ [ cifmw_kustomize_deploy_kustomizations_dest_dir, 'olm.yaml' ] | path_join }} cifmw_kustomize_deploy_metallb_source_files: >- {{ [ cifmw_kustomize_deploy_architecture_repo_dest_dir, cifmw_kustomize_deploy_architecture_examples_common_path, 'metallb' ] | path_join }} cifmw_kustomize_deploy_metallb_dest_file: >- {{ [ cifmw_kustomize_deploy_kustomizations_dest_dir, 'metallb.yaml' ] | path_join }} cifmw_kustomize_deploy_nmstate_source_files: >- {{ [ cifmw_kustomize_deploy_architecture_repo_dest_dir, cifmw_kustomize_deploy_architecture_examples_common_path, 'nmstate' ] | path_join }} cifmw_kustomize_deploy_nmstate_dest_file: >- {{ [ cifmw_kustomize_deploy_kustomizations_dest_dir, 'nmstate.yaml' ] | path_join }} # openstack init resource cifmw_kustomize_deploy_openstack_source_files: >- {{ [ cifmw_kustomize_deploy_architecture_repo_dest_dir, cifmw_kustomize_deploy_architecture_examples_common_path, 'openstack' ] | path_join }} cifmw_kustomize_deploy_openstack_dest_file: >- {{ [ cifmw_kustomize_deploy_kustomizations_dest_dir, 'openstack.yaml' ] | path_join }} # controlsplane resources cifmw_kustomize_deploy_nncp_source_files: >- {{ [ cifmw_kustomize_deploy_cp_source_files, 'nncp' ] | path_join }} cifmw_kustomize_deploy_nncp_values_dest_file: >- {{ [ cifmw_kustomize_deploy_nncp_source_files, 'values.yaml' ] | path_join }} cifmw_kustomize_deploy_nncp_dest_file: >- {{ [ cifmw_kustomize_deploy_kustomizations_dest_dir, 'nncp.yaml' ] | path_join }} cifmw_kustomize_deploy_cp_source_files: >- {{ [ cifmw_kustomize_deploy_architecture_repo_dest_dir, cifmw_kustomize_deploy_architecture_examples_path, cifmw_architecture_scenario, 'control-plane' ] | path_join }} cifmw_kustomize_deploy_nncp_values_src_file: >- {{ [ cifmw_kustomize_deploy_basedir, 'artifacts', 'ci_gen_kustomize_values', 'network-values', 'values.yaml' ] | path_join }} cifmw_kustomize_deploy_cp_dest_file: >- {{ [ cifmw_kustomize_deploy_kustomizations_dest_dir, 'control-plane.yaml' ] | path_join }} # dataplane resources cifmw_kustomize_deploy_dp_source_files: >- {{ [ cifmw_kustomize_deploy_architecture_repo_dest_dir, cifmw_kustomize_deploy_architecture_examples_path, cifmw_architecture_scenario ] | path_join }} cifmw_kustomize_deploy_dp_values_src_file: >- {{ [ cifmw_kustomize_deploy_basedir, 'artifacts', 'ci_gen_kustomize_values', 'edpm-values', 'values.yaml' ] | path_join }} cifmw_kustomize_deploy_dp_values_dest_file: >- {{ [ cifmw_kustomize_deploy_dp_source_files, 'values.yaml' ] | path_join }} cifmw_kustomize_deploy_dp_dest_file: >- {{ [ cifmw_kustomize_deploy_kustomizations_dest_dir, 'dataplane.yaml' ] | path_join }} # timeouts and retry configuration # Suffix appended to OpenStackDataPlaneDeployment resource names when applying # a deployment stage. Each run produces a uniquely named OSDPD, preventing the # "Already deployed" deadlock that occurs when an existing OSDPD with # Status.Deployed=true is re-applied on subsequent runs. # When empty (the default), a timestamp is auto-generated once at the start of # the first deployment stage and reused for all subsequent stages in the same # run, so all OSDPDs in a given run share the same suffix. # Set explicitly to pin a known value (e.g. for idempotent re-runs). cifmw_kustomize_deploy_osdpd_suffix: "" # Generate deployment suffix if set to true cifmw_kustomize_deploy_osdpd_suffix_generate: false cifmw_kustomize_deploy_delay: 10 cifmw_kustomize_deploy_retries_subscription: 90 cifmw_kustomize_deploy_retries_install_plan: 60 # Default retry settings for k8s_info operations to handle transient auth failures cifmw_kustomize_deploy_k8s_retries: 5 cifmw_kustomize_deploy_k8s_delay: 30