Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/environments/devstack/ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[defaults]
inventory = ../../../environments/base/inventory,../../../environments/singlenode/inventory,../../../environments/demo/inventory,../common/inventory,./inventory
roles_path = ../../../.ansible/roles
collections_path = ../../../.ansible/collections
stdout_callback = yaml
bin_ansible_callbacks = True
callbacks_enabled = ansible.posix.profile_tasks

# Disable host key checking as hosts are dynamically replaced
host_key_checking = False

[ssh_connection]
pipelining = True
ssh_extra_args = -o ControlPersist=1h
retries = 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Use the external-facing network
infra_external_network_id: "{{ lookup('pipe', 'openstack network show public -f value -c id') }}"

# Use the pre-existing portal-internal network so that we don't need to steal a router
infra_network_id: "{{ lookup('pipe', 'openstack network show private -f value -c id') }}"

# The ingress IP comes from an environment variable
# infra_fixed_floatingip: "{{ lookup('env', 'INGRESS_IP') }}"

# The flavors only have 20GB root disks, which is not enough to unpack images for uploading
# So we need to use a Cinder root volume
# We also don't need the encypted volume type
# infra_root_volume_enabled: yes
# infra_root_volume_size: 40
# infra_root_volume_type: unencrypted
# But we can decrease the size of the infra data volume
infra_data_volume_size: 20

# Make sure we pick flavors that keep the costs down
# The flavor to use for the Azimuth AIO VM
infra_flavor_id: "{{ lookup('pipe', 'openstack flavor show azimuth.seed -f value -c id') }}" # 2 vCPUs, 8GB RAM

# Specify this explicitly since devstack has both amphora and ovn enabled
openstack_loadbalancer_provider: ovn

# The flavor to use for the workstation test case
generate_tests_caas_test_case_workstation_param_cluster_flavor: azimuth.worker # 2 vCPUs, 4GB RAM
# The flavor to use for the repo2docker test case
generate_tests_caas_test_case_repo2docker_param_cluster_flavor: "{{ generate_tests_caas_test_case_workstation_param_cluster_flavor }}"
# The flavor to use for the R-Studio test case
generate_tests_caas_test_case_rstudio_param_cluster_flavor: "{{ generate_tests_caas_test_case_workstation_param_cluster_flavor }}"
# The flavor to use for the nodes in the Slurm test case
# The flavors to use for the Slurm login and control nodes
generate_tests_caas_test_case_slurm_param_login_flavor: "{{ generate_tests_caas_test_case_workstation_param_cluster_flavor }}"
generate_tests_caas_test_case_slurm_param_control_flavor: "{{ generate_tests_caas_test_case_slurm_param_login_flavor }}"
generate_tests_caas_test_case_slurm_param_compute_flavor: "{{ generate_tests_caas_test_case_slurm_param_login_flavor }}"
# The flavors to use for the control plane and workers in Kubernetes test cases
generate_tests_kubernetes_test_case_control_plane_size: "{{ generate_tests_caas_test_case_workstation_param_cluster_flavor }}"
generate_tests_kubernetes_test_case_worker_size: "{{ generate_tests_kubernetes_test_case_control_plane_size }}"
# The flavors to use for the control plane and workers in the Kubernetes apps test cases
generate_tests_kubernetes_apps_k8s_control_plane_size: "{{ generate_tests_kubernetes_test_case_control_plane_size }}"
generate_tests_kubernetes_apps_k8s_worker_size: "{{ generate_tests_kubernetes_test_case_worker_size }}"
2 changes: 2 additions & 0 deletions .github/environments/devstack/inventory/hosts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[terraform_provision]
localhost ansible_connection=local ansible_python_interpreter="{{ ansible_playbook_python }}"
Loading