2
2
3
3
Terraform for the following configuration:
4
4
5
- * OpenStack virtualised instances
5
+ * OpenStack virtualised lab instances
6
+ * An OpenStack virtualised container registry instance
6
7
* Cinder volumes for instance storage
7
8
* Floating IPs for networking
8
9
@@ -12,32 +13,34 @@ OpenStack infrastructure.
12
13
13
14
## Prerequisites
14
15
15
- * A Neutron network the instances can attach to, with router
16
+ * A Neutron network the instances can attach to, with a router
16
17
* Plenty of resource quota
18
+ * Terraform installed (see instructions
19
+ [ here] ( https://developer.hashicorp.com/terraform/install ) )
17
20
18
21
## Software Components
19
22
20
- [ Kayobe] ( https://docs.openstack.org/kayobe/latest/ ) enables deployment of
23
+ [ Kayobe] ( https://docs.openstack.org/kayobe/latest/ ) enables the deployment of
21
24
containerised OpenStack to bare metal.
22
25
23
26
# Instructions for deployment
24
27
25
- After cloning this repo, source the regular OpenStack rc file with necessary
26
- vars for accessing the * A Universe From Nothing* lab project.
28
+ After cloning this repo, source the regular OpenStack rc file with the
29
+ necessary vars for accessing the * A Universe From Nothing* lab project.
27
30
28
- There are a various variables available for configuration. These can be seen
31
+ There are various variables available for configuration. These can be seen
29
32
in ` vars.tf ` , and can be set in ` terraform.tfvars ` (see sample file
30
33
` terraform.tfvars.sample ` ).
31
34
32
- Next up is the ` terraform ` bit assuming it is already installed :
35
+ Create the resources using Terraform :
33
36
34
37
terraform init
35
38
terraform plan
36
39
terraform apply -auto-approve -parallelism=52
37
40
38
41
To reprovision a lab machine:
39
42
40
- terraform taint openstack_compute_instance_v2.#
43
+ terraform taint openstack_compute_instance_v2.lab[#]
41
44
terraform apply -auto-approve
42
45
43
46
where ` # ` is the lab index which can be obtained from the web UI.
@@ -54,7 +57,7 @@ SSH in to your lab instance by running and entering the provided password:
54
57
55
58
ssh lab@<lab-ip-address> -o PreferredAuthentications=password
56
59
57
- The default password is the id of the lab instance. As such, it is recommeded
60
+ The default password is the id of the lab instance. As such, it is recommended
58
61
that you run ` passwd ` immediately to change the default password.
59
62
60
63
## Nested virtualisation
@@ -75,7 +78,7 @@ When complete, it should report an elapsed time as follows:
75
78
76
79
[INFO] 22 minutes and 3 seconds elapsed.
77
80
78
- ## Inspect the bifrost container inside your seed VM:
81
+ ## Inspect the Bifrost container inside your seed VM:
79
82
80
83
81
84
docker ps
@@ -85,7 +88,7 @@ When complete, it should report an elapsed time as follows:
85
88
86
89
Look at the steps involved in deploying Kayobe control plane:
87
90
88
- < a-universe-from-seed.sh
91
+ less a-universe-from-seed.sh
89
92
90
93
# Wrapping up
91
94
0 commit comments