Skip to content

Commit 56ce1a2

Browse files
committed
cleanup compute module variable file
1 parent f7314ab commit 56ce1a2

File tree

1 file changed

+7
-8
lines changed
  • environments/skeleton/{{cookiecutter.environment}}/terraform/compute

1 file changed

+7
-8
lines changed

environments/skeleton/{{cookiecutter.environment}}/terraform/compute/variables.tf

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
# NB: Only variables which may be set directly on the compute group are
2+
# have descriptions here (and defaults if optional) - others are just passed in
3+
14
variable "nodes" {
25
type = list(string)
3-
description = "list of node names for partition"
6+
description = "List of node names for this compute group"
47
}
58

69
variable "flavor" {
@@ -14,7 +17,6 @@ variable "cluster_name" {
1417

1518
variable "cluster_domain_suffix" {
1619
type = string
17-
default = "invalid"
1820
}
1921

2022
variable "cluster_net_id" {
@@ -27,28 +29,26 @@ variable "cluster_subnet_id" {
2729

2830
variable "key_pair" {
2931
type = string
30-
description = "Name of an existing keypair in OpenStack"
3132
}
3233

3334
variable "image_id" {
3435
type = string
35-
description = "ID of image for the partition"
36+
description = "ID of image for this compute node group"
3637
}
3738

3839
variable "environment_root" {
3940
type = string
40-
description = "Path to environment root, automatically set by activate script"
4141
}
4242

4343
variable "vnic_type" {
4444
type = string
45-
description = "VNIC type, see https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/networking_port_v2#vnic_type"
45+
description = "VNIC type for this compute group, see https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/networking_port_v2#vnic_type"
4646
default = "normal"
4747
}
4848

4949
variable "vnic_profile" {
5050
type = string
51-
description = "VNIC binding profile as json string, see https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/networking_port_v2#profile."
51+
description = "VNIC binding profile for this compute group as json string, see https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/networking_port_v2#profile."
5252
default = "{}"
5353
}
5454

@@ -73,7 +73,6 @@ variable "k3s_token" {
7373
}
7474

7575
variable "k3s_server" {
76-
description = "Name/address of k3s server"
7776
type = string
7877
}
7978

0 commit comments

Comments
 (0)