UPD: added flavor resource
This commit is contained in:
+8
-1
@@ -28,9 +28,16 @@ resource "openstack_compute_secgroup_v2" "test-sg1" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "openstack_compute_flavor_v2" "flavor-small" {
|
||||||
|
name = "flavor-1.1.10"
|
||||||
|
ram = "1024"
|
||||||
|
vcpus = "1"
|
||||||
|
disk = "10"
|
||||||
|
}
|
||||||
|
|
||||||
resource "openstack_compute_instance_v2" "tfvm1" {
|
resource "openstack_compute_instance_v2" "tfvm1" {
|
||||||
name = "tfvm-${random_integer.suffix.result}"
|
name = "tfvm-${random_integer.suffix.result}"
|
||||||
flavor_id = "b8159937-a5f9-46fb-97eb-2d59b67cfedd"
|
flavor_id = openstack_compute_flavor_v2.flavor-small.id
|
||||||
key_pair = "opc-key"
|
key_pair = "opc-key"
|
||||||
security_groups = ["${openstack_compute_secgroup_v2.test-sg1.name}"]
|
security_groups = ["${openstack_compute_secgroup_v2.test-sg1.name}"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user