Added support for bridge network interfaces for libvirt.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
data "template_file" "user-datas" {
|
||||
template = file("${var.cloud-init-template}")
|
||||
vars = {
|
||||
admin-passwd = "${var.root-admin-passwd}"
|
||||
admin-pub-key = "${var.root-admin-pub-key}"
|
||||
hostname = "${var.hostname-prefix}-${count.index}"
|
||||
admin-passwd = "${var.root-admin-passwd}"
|
||||
admin-pub-key = "${var.root-admin-pub-key}"
|
||||
hostname = "${var.hostname-prefix}-${count.index}"
|
||||
install-qemu-agent = var.install-qemu-agent
|
||||
}
|
||||
count = var.num
|
||||
}
|
||||
|
||||
@@ -8,6 +8,12 @@ variable "hostname-prefix" {
|
||||
description = "This prefix wil be applied as a prefix for the hostnames."
|
||||
}
|
||||
|
||||
variable "install-qemu-agent" {
|
||||
default = false
|
||||
description = "This flag determines whether or not qemu-agent is installed."
|
||||
type = bool
|
||||
}
|
||||
|
||||
variable "num" {
|
||||
description = "The number of user-datas to create with these parameters."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user