34 lines
993 B
HCL
34 lines
993 B
HCL
|
# "timestamp" template function replacement
|
||
|
locals {
|
||
|
locations = {
|
||
|
recipes = "${path.cwd}/recipes/${var.name}"
|
||
|
templates = "${path.cwd}/recipes/${var.name}/templates"
|
||
|
provisionning = "${path.cwd}/recipes/${var.name}/provisionning"
|
||
|
post-processors = "${path.cwd}/recipes/${var.name}/post-processor"
|
||
|
tools = "${path.cwd}/tools"
|
||
|
}
|
||
|
dirs = local.locations
|
||
|
timestamp = regex_replace(timestamp(), "[- TZ:]", "")
|
||
|
output_name = "${var.name}"
|
||
|
source_checksum_url = "file:${var.source_url}/SHA512SUMS"
|
||
|
source_iso = "${var.source_url}/debian-${var.version}-generic-${var.arch}.qcow2"
|
||
|
source_checksum = "${var.iso_cd_checksum}"
|
||
|
ssh_user = "root"
|
||
|
ssh_password = "PbkRc1vup7Wq5n4r"
|
||
|
disk_size = 8000
|
||
|
memory = 512
|
||
|
instance_data = {
|
||
|
"instance-id": "${var.name}"
|
||
|
}
|
||
|
installOpts = {
|
||
|
hostname = var.name
|
||
|
user = "eole"
|
||
|
disk_device = "/dev/vda"
|
||
|
}
|
||
|
installOptsVMWare = {
|
||
|
hostname = var.name
|
||
|
user = "eole"
|
||
|
disk_device = "/dev/sda"
|
||
|
}
|
||
|
}
|