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" {
1313}
1414
1515resource "local_file" "partitions" {
16+ count = var. autogenerated_partitions_enabled ? 1 : 0
1617 content = templatefile (" ${ path . module } /partitions.tpl" ,
1718 {
1819 " compute_groups" : module.compute,
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ variable "key_pair" {
2424 description = " Name of an existing keypair in OpenStack"
2525}
2626
27+ variable "autogenerated_partitions_enabled" {
28+ type = bool
29+ description = " Whether or not to template partitions.yml"
30+ default = true
31+ }
32+
2733variable "control_node_flavor" {
2834 type = string
2935 description = " Flavor name for control node"
You can’t perform that action at this time.
0 commit comments