Init Project
This commit is contained in:
parent
8a3909ac0f
commit
6a18ae55c2
8
main.tf
8
main.tf
|
@ -3,6 +3,10 @@ data "template_file" "user_data" {
|
|||
template = file("${path.module}/cloud_init.yml")
|
||||
vars = {
|
||||
login = "admin"
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
passwd = "passwd"
|
||||
>>>>>>> 51d0c3c (Init Project)
|
||||
ip = var.domains[count.index].ip
|
||||
}
|
||||
}
|
||||
|
@ -53,6 +57,10 @@ resource "libvirt_cloudinit_disk" "commoninit" {
|
|||
pool = libvirt_pool.pool.name
|
||||
user_data = data.template_file.user_data[count.index].rendered
|
||||
network_config = data.template_file.network_config[count.index].rendered
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
>>>>>>> 51d0c3c (Init Project)
|
||||
}
|
||||
|
||||
resource "libvirt_domain" "vm" {
|
||||
|
|
Loading…
Reference in New Issue
Block a user