Skip to content

Commit

Permalink
Modules: create private flavors by default
Browse files Browse the repository at this point in the history
Add "flavor_is_public" variable to the "flavor" module with "false"
value by default.
  • Loading branch information
ozerovandrei committed Oct 22, 2018
1 parent 70e9c6b commit 8868a8a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/flavor/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "openstack_compute_flavor_v2" "flavor_1" {
name = "${var.flavor_name}"
ram = "${var.flavor_ram_mb}"
vcpus = "${var.flavor_vcpus}"
disk = "${var.flavor_local_disk_gb}"
name = "${var.flavor_name}"
ram = "${var.flavor_ram_mb}"
vcpus = "${var.flavor_vcpus}"
disk = "${var.flavor_local_disk_gb}"
is_public = "${var.flavor_is_public}"
}
5 changes: 5 additions & 0 deletions modules/flavor/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ variable "flavor_local_disk_gb" {
description = "Amount of GB for local storage of the OpenStack Compute Flavor"
default = 0
}

variable "flavor_is_public" {
description = "Flavor visibility"
default = false
}

0 comments on commit 8868a8a

Please sign in to comment.