diff --git a/bootstrap.tf b/bootstrap.tf
index 2cbaf81..1a2960e 100644
--- a/bootstrap.tf
+++ b/bootstrap.tf
@@ -54,6 +54,6 @@ resource "libvirt_domain" "bootstrap" {
}
xml {
- xslt = file("${path.module}/network.xslt")
+ xslt = file("${path.module}/portgroups/${var.network_portgroup}.xslt")
}
}
diff --git a/lb.tf b/lb.tf
index 5335747..6f94903 100644
--- a/lb.tf
+++ b/lb.tf
@@ -70,6 +70,6 @@ resource "libvirt_domain" "lb" {
}
xml {
- xslt = file("${path.module}/network.xslt")
+ xslt = file("${path.module}/portgroups/${var.network_portgroup}.xslt")
}
}
diff --git a/master.tf b/master.tf
index 9b49b7a..953df88 100644
--- a/master.tf
+++ b/master.tf
@@ -50,6 +50,6 @@ resource "libvirt_domain" "master" {
}
xml {
- xslt = file("${path.module}/network.xslt")
+ xslt = file("${path.module}/portgroups/${var.network_portgroup}.xslt")
}
}
diff --git a/portgroups/lab16.xslt b/portgroups/lab16.xslt
new file mode 100644
index 0000000..00fe3c6
--- /dev/null
+++ b/portgroups/lab16.xslt
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/portgroups/lab32.xslt b/portgroups/lab32.xslt
new file mode 100644
index 0000000..b4be682
--- /dev/null
+++ b/portgroups/lab32.xslt
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/portgroups/lab48.xslt b/portgroups/lab48.xslt
new file mode 100644
index 0000000..fc4d53c
--- /dev/null
+++ b/portgroups/lab48.xslt
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/portgroups/lab7.xslt b/portgroups/lab7.xslt
new file mode 100644
index 0000000..4df53e4
--- /dev/null
+++ b/portgroups/lab7.xslt
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/network.xslt b/portgroups/lab8.xslt
similarity index 100%
rename from network.xslt
rename to portgroups/lab8.xslt
diff --git a/storage.tf b/storage.tf
index 211c21f..f9cca2b 100644
--- a/storage.tf
+++ b/storage.tf
@@ -73,6 +73,6 @@ resource "libvirt_domain" "storage" {
}
xml {
- xslt = file("${path.module}/network.xslt")
+ xslt = file("${path.module}/portgroups/${var.network_portgroup}.xslt")
}
}
diff --git a/variables.tf b/variables.tf
index 3fca289..c649c05 100644
--- a/variables.tf
+++ b/variables.tf
@@ -48,6 +48,11 @@ variable "network_name" {
default = "lab"
}
+variable "network_portgroup" {
+ type = string
+ default = "lab8"
+}
+
variable "network_ip_range" {
type = string
default = "192.168.7.0/24"
diff --git a/worker.tf b/worker.tf
index d3b1c15..3fabfc2 100644
--- a/worker.tf
+++ b/worker.tf
@@ -50,6 +50,6 @@ resource "libvirt_domain" "worker" {
}
xml {
- xslt = file("${path.module}/network.xslt")
+ xslt = file("${path.module}/portgroups/${var.network_portgroup}.xslt")
}
}