mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-28 17:21:11 +00:00
Summary of changes: - "workshopctl" is now "labctl" - it can handle deployment of VMs but also of managed Kubernetes clusters (and therefore, it replaces the "prepare-tf" directory) - support for many more providers has been added Check the README.md, in particular the "directory structure"; it has the most important information.
22 lines
585 B
HCL
22 lines
585 B
HCL
resource "openstack_networking_network_v2" "_" {
|
|
name = var.tag
|
|
}
|
|
|
|
resource "openstack_networking_subnet_v2" "_" {
|
|
name = var.tag
|
|
network_id = openstack_networking_network_v2._.id
|
|
cidr = "10.10.0.0/16"
|
|
ip_version = 4
|
|
dns_nameservers = ["1.1.1.1"]
|
|
}
|
|
|
|
resource "openstack_networking_router_v2" "_" {
|
|
name = var.tag
|
|
external_network_id = var.external_network_id
|
|
}
|
|
|
|
resource "openstack_networking_router_interface_v2" "_" {
|
|
router_id = openstack_networking_router_v2._.id
|
|
subnet_id = openstack_networking_subnet_v2._.id
|
|
}
|