-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
50 lines (48 loc) · 1.7 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module "fcos" {
source = "krestomatio/fcos/libvirt"
version = "0.0.28"
# custom
butane_snippets_additional = compact(
concat(
[
try(module.butane_snippet_install_certbot[0].config, ""),
data.template_file.butane_snippet_install_harbor.rendered
],
var.butane_snippets_additional
)
)
# common
fqdn = var.fqdn
cidr_ip_address = var.cidr_ip_address
mac = var.mac
ssh_authorized_key = var.ssh_authorized_key
nameservers = var.nameservers
timezone = var.timezone
rollout_wariness = var.rollout_wariness
periodic_updates = var.periodic_updates
keymap = var.keymap
etc_hosts = local.etc_hosts
etc_hosts_extra = local.etc_hosts_extra
additional_rpms = var.additional_rpms
# libvirt
cpu_mode = var.cpu_mode
vcpu = var.vcpu
memory = var.memory
root_volume_pool = var.root_volume_pool
root_volume_size = var.root_volume_size
root_base_volume_name = var.root_base_volume_name
root_base_volume_pool = var.root_base_volume_pool
log_volume_size = var.log_volume_size
log_volume_pool = var.log_volume_pool
data_volume_pool = var.data_volume_pool
data_volume_path = local.data_volume_path
data_volume_size = var.data_volume_size
backup_volume_pool = var.backup_volume_pool
backup_volume_size = var.backup_volume_size
ignition_pool = var.ignition_pool
autostart = var.autostart
wait_for_lease = var.wait_for_lease
network_id = var.network_id
network_bridge = var.network_bridge
network_name = var.network_name
}