Skip to content

Commit 8868a8a

Browse files
committed
Modules: create private flavors by default
Add "flavor_is_public" variable to the "flavor" module with "false" value by default.
1 parent 70e9c6b commit 8868a8a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

modules/flavor/main.tf

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
resource "openstack_compute_flavor_v2" "flavor_1" {
2-
name = "${var.flavor_name}"
3-
ram = "${var.flavor_ram_mb}"
4-
vcpus = "${var.flavor_vcpus}"
5-
disk = "${var.flavor_local_disk_gb}"
2+
name = "${var.flavor_name}"
3+
ram = "${var.flavor_ram_mb}"
4+
vcpus = "${var.flavor_vcpus}"
5+
disk = "${var.flavor_local_disk_gb}"
6+
is_public = "${var.flavor_is_public}"
67
}

modules/flavor/vars.tf

+5
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ variable "flavor_local_disk_gb" {
1717
description = "Amount of GB for local storage of the OpenStack Compute Flavor"
1818
default = 0
1919
}
20+
21+
variable "flavor_is_public" {
22+
description = "Flavor visibility"
23+
default = false
24+
}

0 commit comments

Comments
 (0)