Skip to content

Commit cee87a5

Browse files
committed
Given user choice over image.
1 parent 305fc34 commit cee87a5

File tree

4 files changed

+27
-18
lines changed

4 files changed

+27
-18
lines changed

ansible/vars/defaults.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
src_directory: "{{ ansible_env.HOME }}/src"
33

44
kayobe_config_repo: https://github.com/stackhpc/stackhpc-kayobe-config.git
5-
kayobe_config_version: stackhpc/{{ openstack_version | lower }}
5+
kayobe_config_version: "{{ openstack_version }}"
66
kayobe_config_name: kayobe-config
77
kayobe_config_environment: ci-multinode
88

99
kayobe_repo: https://github.com/stackhpc/kayobe.git
10-
kayobe_version: stackhpc/{{ openstack_version | lower }}
10+
kayobe_version: "{{ openstack_version }}"
1111
kayobe_name: kayobe
1212

1313
openstack_config_repo: https://github.com/stackhpc/openstack-config-multinode

group_vars/openstack.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ terraform_project_path: "{{ playbook_dir }}"
2424
terraform_state: "{{ cluster_state | default('present') }}"
2525

2626
# The user that should be used to SSH to the cluster hosts
27-
cluster_ssh_user: cloud-user
28-
ssh_user: cloud-user
27+
cluster_ssh_user: "{{ 'cloud-user' if multinode_image == 'rocky9-lvm' else 'ubuntu' }}"
28+
ssh_user: "{{ 'cloud-user' if multinode_image == 'rocky9-lvm' else 'ubuntu' }}"
2929

3030
tf_files: []
3131
#- outputs.tf

terraform.tfvars.j2

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@ prefix = "{{ cluster_name }}"
22

33
ansible_control_vm_flavor = "general.v1.small"
44
ansible_control_vm_name = "ansible-control"
5-
ansible_control_disk_size = 100
5+
ansible_control_disk_size = 10
66

77
seed_vm_flavor = "general.v1.small"
8-
seed_disk_size = 100
8+
seed_disk_size = 10
99

1010
multinode_flavor = "general.v1.medium"
11-
multinode_image = "rocky9-lvm"
11+
# multinode_image = "rocky9-lvm"
1212
multinode_keypair = "MaxMNKP"
1313
multinode_vm_network = "stackhpc-ipv4-geneve"
1414
multinode_vm_subnet = "stackhpc-ipv4-geneve-subnet"
1515
compute_count = "2"
1616
controller_count = "3"
17-
compute_disk_size = 100
18-
controller_disk_size = 100
17+
compute_disk_size = 10
18+
controller_disk_size = 10
1919

2020
ssh_public_key = "{{ cluster_user_ssh_public_key }}"
21-
ssh_user = "cloud-user"
21+
# ssh_user = "cloud-user"
2222

2323
storage_count = "3"
2424
storage_flavor = "general.v1.small"
25-
storage_disk_size = 100
25+
storage_disk_size = 10
2626

2727
deploy_wazuh = false
2828
# infra_vm_flavor = "general.v1.small"
29-
# infra_vm_disk_size = 100
29+
# infra_vm_disk_size = 10

ui-meta/multinode-infra-appliance.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,20 +119,29 @@ parameters:
119119
description: If you wish to deploy OpenStack services in the infrastructure select this option.
120120
kind: "boolean"
121121
default: false
122-
options:
123-
permanent: true
122+
required: false
123+
immutable: true
124124

125125
- name: openstack_version
126126
label: OpenStack GitHub Branch name.
127127
description: Please provide the OpenStack GitHub Branch name you wish to deploy.
128128
kind: "string"
129-
required: true
129+
required: false
130130
default: "stackhpc/yoga"
131131
immutable: true
132+
133+
134+
- name: multinode_image
135+
label: Select the OpenStack version to deploy.
136+
description: Please select the OpenStack version to deploy.
137+
kind: "choice"
132138
options:
133-
live_check: >
134-
"curl -s --head https://github.com/{{ openstack_version }}"
135-
" | grep 'HTTP/1.1 200 OK' > /dev/null && echo '✅ Valid branch' || echo '❌ Invalid branch'"
139+
choices:
140+
- "Ubuntu-22.04-lvm"
141+
- "rocky9-lvm"
142+
required: true
143+
default: "rocky9-lvm"
144+
immutable: true
136145

137146
# - name: openstack_version
138147
# label: Select the OpenStack version to deploy.

0 commit comments

Comments
 (0)