UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit 945c6fa0 authored by kmc-home's avatar kmc-home
Browse files

update terraform

parent c9c7b4c9
No related merge requests found
......@@ -20,32 +20,6 @@ provider "openstack" {
# external_network_id = data.openstack_networking_network_v2.this.id
# }
variable "sec_group" {
type = object(
{
name = string
description = string
rules = list(object(
{
description = optional(string)
ethertype = string
direction = string
protocol = optional(string)
port_range_min = optional(number)
port_range_max = optional(number)
remote_ip_prefix = optional(string)
}))
}
)
}
# -------------------------------------------------------------------------- #
# RESOURCES----------------------------------------------------------------- #
# -------------------------------------------------------------------------- #
# This is a provider defined resource that creates a Security Group
resource "openstack_networking_secgroup_v2" "secgroup" {
name = var.sec_group.name
description = var.sec_group.description
resource "openstack_networking_network_v2" "net" {
name = "net_test"
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment