@@ -123,46 +123,79 @@ parameters:
123123 permanent : true
124124
125125 - name : openstack_version
126- label : Select the OpenStack version to deploy.
127- description : Please select the OpenStack version to deploy.
128- kind : " choice"
129- options :
130- choices :
131- - " Victoria"
132- - " Wallaby"
133- - " Xena"
134- - " Yoga"
135- - " Zed"
136- - kind : " string"
137- label : " Custom"
138- description : " Please provide the OpenStack version to deploy."
139- options :
140- min_length : 1
141- max_length : 30
126+ label : OpenStack GitHub Branch name.
127+ description : Please provide the OpenStack GitHub Branch name you wish to deploy.
128+ kind : " string"
142129 required : true
143- default : " Yoga "
130+ default : " stackhpc/yoga "
144131 immutable : true
145- # when:
146- # - openstack_deploy == true
132+ 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'"
147136
148- # - name: backend_count
149- # label: Backend node count
150- # description: The number of backend nodes.
151- # kind: integer
152- # options:
153- # min: 1
154- # default: 3
137+ # - name: openstack_version
138+ # label: Select the OpenStack version to deploy.
139+ # description: Please select the OpenStack version to deploy.
140+ # kind: "choice"
141+ # options:
142+ # choices:
143+ # - "Victoria"
144+ # - "Wallaby"
145+ # - "Xena"
146+ # - "Yoga"
147+ # - "Zed"
148+ # required: true
149+ # default: "Yoga"
150+ # immutable: true
155151
156- # - name: backend_flavor
157- # label: Backend node size
158- # description: The size to use for the backend nodes.
159- # kind: "cloud.size"
160- # immutable: true
161- # options:
162- # min_ram: 1024
163- # min_disk: 10
164152
165153# A template describing the usage of the appliance
166154# This is rendered in the "Cluster details" modal in the Azimuth UI
167155usage_template : |-
168- This is a Multinode appliance which deploys a cluster of nodes including the option to deploy the infrastructure with OpenStack.
156+ # METHOD 1
157+ # Accessing the cluster
158+
159+ To assess the clusters, use the following ssh commands:
160+
161+ {% for group in cluster_nodes|groupby('groups') %}
162+ # {{ group.0|upper|bold }}
163+ {% for node in group.1 %}
164+ {% if node.ip is defined %}
165+ {% if node.ip != '' %}
166+ # {{ node.name|bold }}
167+ {% if node.groups[0] == "ansible_control" %}
168+ {% set status = "READY" %}
169+ {% else %}
170+ {% set status = "NOT AVAILABLE" %}
171+ {% endif %}
172+ # Instance name from {{ node.groups[0]|capitalize }} => {{ status|green if status == "READY" else status|red }} -> ssh {{ ssh_user }}@{{ node.ip }}
173+ {% endif %}
174+ {% endif %}
175+ {% else %}
176+ # Web service is not ready yet.
177+ {% endfor %}
178+ {% endfor %}
179+
180+ # METHOD 2
181+ # Accessing the cluster
182+
183+ To assess the clusters, use the following ssh commands:
184+
185+ {% for group in cluster_nodes|groupby('groups') %}
186+ # {{ group.grouper|upper }}
187+ {% for node in group.list %}
188+ {% if node.ip is defined and node.ip != '' %}
189+ # {{ node.name }}
190+ {% if node.groups[0] == "ansible_control" %}
191+ {% set status = "READY" %}
192+ {% else %}
193+ {% set status = "NOT AVAILABLE" %}
194+ {% endif %}
195+ # Instance name from {{ node.groups[0]|capitalize }} => {{ status }} -> ssh {{ node.variables.ansible_user }}@{{ node.ip }}
196+ {% else %}
197+ # Instance name from {{ node.groups[0]|capitalize }} => NOT AVAILABLE -> ssh {{ node.variables.ansible_user }}@{{ node.ip }}
198+ {% endif %}
199+ {% endfor %}
200+ ________________________________________
201+ {% endfor %}
0 commit comments