Skip to content

Commit 4519eab

Browse files
committed
Create infrastructure only option.
1 parent 5a7c94b commit 4519eab

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

multinode-app.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,12 @@
6464
# msg: "{{ groups | to_yaml }}"
6565
# when: cluster_state != "absent"
6666

67+
# If openstack_deploy is true then continue if not end the playbook.
68+
6769
# Import the playbook to start configuring the multi-node hosts.
6870
- name: Configure hosts and deploy ansible
6971
import_playbook: ansible/configure-hosts.yml
72+
when: openstack_deploy == true
7073

7174

7275
- hosts: ansible_control
@@ -77,6 +80,8 @@
7780
- name: Deploy OpenStack.
7881
ansible.builtin.command:
7982
cmd: "bash ~/deploy-openstack.sh"
83+
when: openstack_deploy == true
84+
8085

8186
# - hosts: ansible_control
8287
# vars:

ui-meta/multinode-appliance.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,17 @@ parameters:
113113
secret: true
114114
confirm: true
115115
#private: true
116+
117+
- name: openstack_deploy #Idealy I would like to turn this into a checkbox.
118+
# A boolean flag which will be set to true if the user selects the checkbox, this will allow the user to decide whether they wish to have the infrastructure built with or without OpenStack.
119+
label: Deploy Infrastructure with OpenStack? #(True/False)
120+
description: If you only wish to deploy the infrastructure with OpenStack select this option.
121+
kind: "boolean"
122+
default: false
123+
required: false
124+
options:
125+
permanent: true
126+
116127

117128
#- name: backend_count
118129
# label: Backend node count

0 commit comments

Comments
 (0)