File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
environments/skeleton/{{cookiecutter.environment}}/tofu Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ resource "local_file" "hosts" {
13
13
}
14
14
15
15
resource "local_file" "partitions" {
16
+ count = var. autogenerated_partitions_enabled ? 1 : 0
16
17
content = templatefile (" ${ path . module } /partitions.tpl" ,
17
18
{
18
19
" compute_groups" : module.compute,
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ variable "key_pair" {
24
24
description = " Name of an existing keypair in OpenStack"
25
25
}
26
26
27
+ variable "autogenerated_partitions_enabled" {
28
+ type = bool
29
+ description = " Whether or not to template partitions.yml"
30
+ default = true
31
+ }
32
+
27
33
variable "control_node_flavor" {
28
34
type = string
29
35
description = " Flavor name for control node"
You can’t perform that action at this time.
0 commit comments