Skip to content

Commit

Permalink
Revert "Use cifmw_architecture_scenario to set proper automation file"
Browse files Browse the repository at this point in the history
This reverts commit 7557d20.
  • Loading branch information
cjeanner committed Sep 3, 2024
1 parent 7557d20 commit 00e228e
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/source/usage/01_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ are shared among multiple roles:
- `cifmw_ssh_keysize`: (Integer) Size of ssh keys that will be injected into the controller in order to connect to the rest of the nodes. Defaults to 521.
- `cifmw_architecture_repo`: (String) Path of the architecture repository on the controller node.
Defaults to `~/src/github.com/openstack-k8s-operators/architecture`
- `cifmw_arch_automation_file`: (String) Name of the workflow automation file
in the architecture repository. Defaults to `default.yaml`
- `cifmw_architecture_scenario`: (String) The selected VA scenario to deploy.
- `cifmw_architecture_wait_condition`: (Dict) Structure defining custom wait_conditions for the automation.
- `cifmw_architecture_user_kustomize.*`: (Dict) Structures defining user provided kustomization for automation. All these variables are combined together.
Expand Down
2 changes: 1 addition & 1 deletion roles/reproducer/tasks/configure_controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@
(
cifmw_architecture_repo | default(ansible_user_dir+'/src/github.com/openstack-k8s-operators/architecture'),
'automation/vars',
cifmw_architecture_scenario~'.yaml'
cifmw_arch_automation_file | default('default.yaml')
) | ansible.builtin.path_join
}}
{% endraw %}
Expand Down
9 changes: 9 additions & 0 deletions scenarios/reproducers/bgp-4-racks-3-ocps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -377,3 +377,12 @@ cifmw_devscripts_enable_ocp_nodes_host_routing: true
_arch_repo: "/home/zuul/src/github.com/openstack-k8s-operators/architecture"
cifmw_architecture_scenario: bgp
cifmw_kustomize_deploy_architecture_examples_path: "examples/dt/"
cifmw_arch_automation_file: "bgp.yaml"
cifmw_architecture_automation_file: >-
{{
(ansible_user_dir,
'src/github.com/openstack-k8s-operators',
'architecture/automation/vars',
cifmw_arch_automation_file) |
path_join
}}
1 change: 1 addition & 0 deletions scenarios/reproducers/dt-osasinfra.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
cifmw_architecture_scenario: osasinfra
cifmw_arch_automation_file: osasinfra.yaml

# Automation section. Most of those parameters will be passed to the
# controller-0 as-is and be consumed by the `deploy-va.sh` script.
Expand Down
1 change: 1 addition & 0 deletions scenarios/reproducers/va-pidone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# Framework. Please do not edit them!
_arch_repo: "/home/zuul/src/github.com/openstack-k8s-operators/architecture"
cifmw_architecture_scenario: pidone
cifmw_arch_automation_file: pidone.yaml

# HERE if you want to override kustomization, you can uncomment this parameter
# and push the data structure you want to apply.
Expand Down
7 changes: 7 additions & 0 deletions zuul.d/architecture-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@
nodeset: centos-9-medium-3x-centos-9-crc-extracted-2-39-0-3xl-vexxhost
vars:
<<: *architecture_vars
cifmw_architecture_automation_file: >-
{{
(
cifmw_architecture_repo,
'automation/vars/default.yaml'
) | ansible.builtin.path_join
}}
cifmw_controller_name: controller
cifmw_openshift_setup_skip_internal_registry_tls_verify: true
cifmw_networking_env_def_file: "networking-env-definition.yml"
Expand Down

0 comments on commit 00e228e

Please sign in to comment.