File tree 4 files changed +62
-2
lines changed
4 files changed +62
-2
lines changed Original file line number Diff line number Diff line change 95
95
vars :
96
96
refstack : true
97
97
98
+ - job :
99
+ name : testbed-deploy-in-a-nutshell
100
+ parent : abstract-testbed-deploy
101
+ vars :
102
+ nutshell : true
103
+
98
104
- job :
99
105
name : testbed-upgrade
100
106
parent : abstract-testbed-deploy
175
181
- testbed-deploy-managerless
176
182
periodic-daily :
177
183
jobs :
184
+ - testbed-deploy-in-a-nutshell
178
185
- testbed-deploy-managerless
179
186
- testbed-deploy-stable
180
187
- testbed-upgrade-stable
Original file line number Diff line number Diff line change 12
12
ansible_playbook : ~/venv/bin/ansible-playbook
13
13
basepath : " {{ ansible_user_dir }}/src/{{ repositories['testbed']['path'] }}"
14
14
manager_address_file : " {{ terraform_path }}/.MANAGER_ADDRESS.{{ cloud_env }}"
15
+ repo_path : " {{ ansible_user_dir }}/src/{{ repository_server }}"
16
+
15
17
manual_create : false
16
18
manual_deploy : false
17
- repo_path : " {{ ansible_user_dir }}/src/{{ repository_server }}"
18
19
19
20
terraform_binary : " {{ ansible_user_dir }}/terragrunt"
20
21
terraform_path : " {{ basepath }}/terraform"
25
26
26
27
run_bootstrap : true
27
28
run_checks : true
29
+
30
+ in_a_nutshell : " {{ nutshell | default(false) | bool }}"
28
31
run_refstack : " {{ refstack | default(false) | bool }}"
29
32
30
33
tasks :
159
162
- name : Deploy services
160
163
ansible.builtin.command :
161
164
cmd : " ssh -i {{ terraform_path }}/.id_rsa.{{ cloud_env }} dragon@{{ manager_host }} /opt/configuration/scripts/deploy-services.sh"
162
- when : not manual_deploy | bool
165
+ when :
166
+ - not manual_deploy | bool
167
+ - not in_a_nutshell | bool
168
+ changed_when : true
169
+
170
+ - name : Deploy in a nutshell
171
+ ansible.builtin.command :
172
+ cmd : " ssh -i {{ terraform_path }}/.id_rsa.{{ cloud_env }} dragon@{{ manager_host }} /opt/configuration/scripts/deploy-in-a-nutshell.sh"
173
+ when :
174
+ - not manual_deploy | bool
175
+ - in_a_nutshell | bool
163
176
changed_when : true
164
177
165
178
- name : Bootstrap services
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -e
3
+
4
+ source /opt/configuration/scripts/include.sh
5
+
6
+ # pull images
7
+ sh -c ' /opt/configuration/scripts/pull-images.sh'
8
+
9
+ # prepare the ceph deployment
10
+
11
+ osism apply --environment custom wipe-partitions
12
+ osism apply facts
13
+
14
+ sed -i " /^devices:/d" /opt/configuration/inventory/group_vars/testbed-nodes.yml
15
+ osism apply ceph-configure-lvm-volumes
16
+ for node in $( find /opt/configuration/inventory/host_vars -mindepth 1 -type d) ; do
17
+ if [[ -e /tmp/$( basename $node ) -ceph-lvm-configuration.yml ]]; then
18
+ cp /tmp/$( basename $node ) -ceph-lvm-configuration.yml /opt/configuration/inventory/host_vars/$( basename $node ) /ceph-lvm-configuration.yml
19
+ fi
20
+ done
21
+ osism reconciler sync
22
+ osism apply ceph-create-lvm-devices
23
+ osism apply facts
24
+
25
+ # deploy everything
26
+
27
+ echo
28
+ echo " --> DEPLOY IN A NUTSHELL -- START -- $( date) "
29
+ echo
30
+
31
+ osism apply nutshell
32
+
33
+ # wait for all deployments
34
+
35
+ osism wait --output --refresh 20
36
+
37
+ echo
38
+ echo " --> DEPLOY IN A NUTSHELL -- END -- $( date) "
39
+ echo
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ if [[ $MANAGER_VERSION =~ ^7\.[0-9]\.[0-9]$ || $MANAGER_VERSION == "latest" ]];
29
29
done
30
30
osism reconciler sync
31
31
osism apply ceph-create-lvm-devices
32
+ osism apply facts
32
33
fi
33
34
34
35
if [[ $MANAGER_VERSION =~ ^4\. [0-9]\. [0-9]$ ]]; then
You can’t perform that action at this time.
0 commit comments