Skip to content

Commit afd9866

Browse files
committed
Add descriptions for all Terraform variables
1 parent e78c068 commit afd9866

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ Configure Terraform variables
156156
=============================
157157

158158
Populate Terraform variables in `terraform.tfvars`. Examples are provided in
159-
files named `*.tfvars.example`.
159+
files named `*.tfvars.example`. The available variables are defined in
160+
`variables.tf` along with their type, description, and optional default.
160161

161162
You will need to set the `multinode_keypair`, `prefix`, and `ssh_public_key`.
162163
By default, Rocky Linux 9 will be used but Ubuntu Jammy is also supported by

leafcloud-rocky-9.tfvars.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Example tfvars file for running on Leafcloud in the stackhpc-dev project.
2+
# - See variables.tf for variable descriptions
23
# - Items commented out must be uncommented and changed
34
# - Rocky Linux 9 image for Yoga (note that images need to be shared with the stackhpc-dev project)
45
# - Ansible control host uses a floating IP

variables.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,80 @@
11
variable "storage_count" {
2+
description = "Number of storage hosts"
23
type = string
34
}
45

56
variable "ssh_public_key" {
7+
description = "Path to an SSH public key to register as a keypair in OpenStack"
68
type = string
79
}
810

911
variable "ssh_user" {
12+
description = "Username to use for SSH access to host"
1013
type = string
1114
}
1215

1316
variable "ansible_control_vm_name" {
17+
description = "Name of the Ansible control host"
1418
type = string
1519
}
1620

1721
variable "seed_vm_flavor" {
22+
description = "OpenStack flavor to use for the seed VM"
1823
type = string
1924
}
2025

2126
variable "prefix" {
27+
description = "A prefix to apply the name of all hosts"
2228
type = string
2329
}
2430

2531
variable "compute_count" {
32+
description = "Number of compute hosts"
2633
type = string
2734
}
2835

2936
variable "controller_count" {
37+
description = "Number of controller hosts"
3038
type = string
3139
}
3240

3341
variable "multinode_image" {
42+
description = "Name of an image registered in Glance with which to deploy hosts"
3443
type = string
3544
}
3645

3746
variable "multinode_keypair" {
47+
description = "Name of an SSH keypair to register in OpenStack"
3848
type = string
3949
}
4050

4151
variable "ansible_control_vm_flavor" {
52+
description = "OpenStack flavor to use for the Ansible control host"
4253
type = string
4354
}
4455

4556
variable "multinode_flavor" {
57+
description = "OpenStack flavor to use for the controller and compute hosts"
4658
type = string
4759
}
4860

4961
variable "storage_flavor" {
62+
description = "OpenStack flavor to use for the storage hosts"
5063
type = string
5164
}
5265

5366
variable "infra_vm_flavor" {
67+
description = "OpenStack flavor to use for the Wazuh VM"
5468
type = string
5569
}
5670

5771
variable "multinode_vm_network" {
72+
description = "OpenStack network to attach hosts to"
5873
type = string
5974
}
6075

6176
variable "multinode_vm_subnet" {
77+
description = "OpenStack subnet to attach hosts to"
6278
type = string
6379
}
6480

0 commit comments

Comments
 (0)