You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an OpenTofu variables file to define the required infrastructure, e.g.:
75
82
@@ -91,20 +98,28 @@ Create an OpenTofu variables file to define the required infrastructure, e.g.:
91
98
}
92
99
}
93
100
94
-
Variables marked `*` refer to OpenStack resources which must already exist. The above is a minimal configuration - for all variables
95
-
and descriptions see `environments/$ENV/terraform/terraform.tfvars`.
101
+
Variables marked `*` refer to OpenStack resources which must already exist. The above is a minimal configuration - for all variables and descriptions see `environments/$ENV/terraform/terraform.tfvars`.
102
+
103
+
To deploy this infrastructure, ensure the venv and the environment are [activated](#create-a-new-environment) and run:
96
104
97
-
### Deploy appliance
105
+
export OS_CLOUD=openstack
106
+
cd environments/$ENV/terraform/
107
+
tofu apply
108
+
109
+
and follow the prompts. Note the OS_CLOUD environment variable assumes that OpenStack credentials are defined using a [clouds.yaml](https://docs.openstack.org/python-openstackclient/latest/configuration/index.html#clouds-yaml) file in a default location with the default cloud name of `openstack`.
110
+
111
+
### Configure appliance
112
+
113
+
To configure the appliance, ensure the venv and the environment are [activated](#create-a-new-environment) and run:
98
114
99
115
ansible-playbook ansible/site.yml
100
116
101
-
You can now log in to the cluster using:
117
+
Once it completes you can log in to the cluster using:
102
118
103
119
ssh rocky@$login_ip
104
120
105
121
where the IP of the login node is given in `environments/$ENV/inventory/hosts.yml`
106
122
107
-
108
123
## Overview of directory structure
109
124
110
125
-`environments/`: See [docs/environments.md](docs/environments.md).
0 commit comments