-
Notifications
You must be signed in to change notification settings - Fork 112
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
2a7810a
commit 44ad7f2
Showing
9 changed files
with
254 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
- name: "Run ci/playbooks/edpm_baremetal_deployment/run_extracted.yml" | ||
hosts: "{{ cifmw_zuul_target_host | default('all') }}" | ||
gather_facts: true | ||
tasks: | ||
- name: Filter out host if needed | ||
when: | ||
- cifmw_zuul_target_host is defined | ||
- cifmw_zuul_target_host != 'all' | ||
- inventory_hostname != cifmw_zuul_target_host | ||
ansible.builtin.meta: end_host | ||
|
||
- name: Check for edpm-ansible.yml file | ||
ansible.builtin.stat: | ||
path: "{{ ansible_user_dir }}/ci-framework-data/artifacts/edpm-ansible.yml" | ||
register: edpm_file | ||
|
||
- name: Perform Podified and EDPM deployment on compute nodes with virtual baremetal | ||
ansible.builtin.command: | ||
chdir: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/ci-framework" | ||
cmd: >- | ||
ansible-playbook deploy-edpm.yml | ||
-i "{{ ansible_user_dir }}/ci-framework-data/artifacts/zuul_inventory.yml" | ||
-e @scenarios/centos-9/base.yml | ||
-e @scenarios/centos-9/edpm_baremetal_deployment_ci_extracted.yml | ||
{%- if edpm_file.stat.exists %} | ||
-e @{{ ansible_user_dir }}/ci-framework-data/artifacts/edpm-ansible.yml | ||
{%- endif %} | ||
{%- if cifmw_extras is defined %} | ||
{%- for extra_var in cifmw_extras %} | ||
-e "{{ extra_var }}" | ||
{%- endfor %} | ||
{%- endif %} | ||
-e "@{{ ansible_user_dir }}/ci-framework-data/artifacts/parameters/zuul-params.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
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
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
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
98 changes: 98 additions & 0 deletions
98
scenarios/centos-9/edpm_baremetal_deployment_ci_extracted.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,98 @@ | ||
--- | ||
ansible_user_dir: "{{ lookup('env', 'HOME') }}" | ||
cifmw_installyamls_repos: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/install_yamls" | ||
|
||
# edpm_prepare role vars | ||
cifmw_operator_build_meta_name: "openstack-operator" | ||
cifmw_edpm_prepare_skip_crc_storage_creation: true | ||
|
||
|
||
# openshift_login role vars | ||
cifmw_openshift_user: "kubeadmin" | ||
cifmw_openshift_password: "123456789" | ||
cifmw_openshift_api: api.crc.testing:6443 | ||
cifmw_openshift_kubeconfig: "{{ ansible_user_dir }}/.kube/config" | ||
cifmw_openshift_skip_tls_verify: true | ||
cifmw_config_certmanager: true | ||
|
||
pre_infra: | ||
- name: Download needed tools | ||
inventory: 'localhost,' | ||
connection: local | ||
type: playbook | ||
source: "{{ cifmw_installyamls_repos }}/devsetup/download_tools.yaml" | ||
|
||
post_ctlplane_deploy: | ||
- name: Tune rabbitmq resources | ||
type: playbook | ||
source: rabbitmq_tuning.yml | ||
|
||
- name: Validate podified control plane | ||
type: playbook | ||
source: validate_podified_deployment.yml | ||
extra_vars: | ||
podified_validation: "{{ podified_validation | default ('false') | bool }}" | ||
cifmw_openshift_kubeconfig: "{{ cifmw_openshift_kubeconfig }}" | ||
cifmw_path: "{{ cifmw_path }}" | ||
openstack_namespace: "{{ cifmw_install_yamls_defaults['NAMESPACE'] }}" | ||
|
||
cifmw_install_yamls_vars: | ||
DEPLOY_DIR: "{{ cifmw_basedir }}/artifacts/edpm_compute" # used during Baremetal deployment | ||
INFRA_REPO: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/infra-operator" | ||
BMAAS_INSTANCE_MEMORY: 8192 | ||
BMAAS_INSTANCE_VCPUS: 6 | ||
BMAAS_INSTANCE_DISK_SIZE: 40 | ||
DATAPLANE_GROWVOLS_ARGS: "/=8GB /tmp=1GB /home=1GB /var=8GB" | ||
BMO_SETUP: | ||
DATAPLANE_TOTAL_NODES: 2 | ||
INSTALL_CERT_MANAGER: false | ||
|
||
cifmw_use_crc: false | ||
cifmw_use_libvirt: false | ||
|
||
|
||
# Deploy EDPM in multinode scenario | ||
cifmw_deploy_edpm: true | ||
|
||
post_infra: &fetch_nodes_facts | ||
- name: Fetch nodes facts and save them as parameters | ||
type: playbook | ||
inventory: "{{ ansible_user_dir }}/ci-framework-data/artifacts/zuul_inventory.yml" | ||
source: fetch_compute_facts.yml | ||
|
||
pre_update: *fetch_nodes_facts | ||
|
||
cifmw_openshift_setup_skip_internal_registry_tls_verify: true | ||
# openshift_setup role vars | ||
cifmw_openshift_setup_skip_internal_registry: true | ||
|
||
|
||
# edpm_deploy role vars | ||
cifmw_baremetal_hypervisor_target: baremetal-hypervisor # remove | ||
cifmw_sushy_emulator_hypervisor_target: baremetal-hypervisor | ||
cifmw_edpm_deploy_baremetal: true | ||
|
||
cifmw_libvirt_manager_configuration: | ||
vms: | ||
edpm-compute: | ||
amount: 2 | ||
disk_file_name: "blank" | ||
disksize: 50 | ||
memory: 8 | ||
cpus: 4 | ||
bootmenu_enable: "yes" | ||
nets: | ||
- public | ||
networks: | ||
public: |- | ||
<network> | ||
<name>public</name> | ||
<forward mode='nat'/> | ||
<bridge name='public' stp='on' delay='0'/> | ||
<mac address='52:54:00:6a:f2:dc'/> | ||
<ip family='ipv4' address='192.168.100.1' prefix='24'> | ||
<dhcp> | ||
<range start='192.168.100.10' end='192.168.100.100'/> | ||
</dhcp> | ||
</ip> | ||
</network> |
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
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
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