diff --git a/.terraform/tfvars/01-main.tfvars b/.terraform/tfvars/01-main.tfvars new file mode 100644 index 0000000..f371473 --- /dev/null +++ b/.terraform/tfvars/01-main.tfvars @@ -0,0 +1,12 @@ +one_endpoint = "https://myhapy.fabrica.local/RPC2" +one_user = "terra" +one_pass = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" +one_vswitch = "vswitch" +one_prod_ds = "101" +image_builder_ip = "192.168.1.108" +dns_server = "192.168.5.53" +dns_domain = "fabrica.local." +cluster_id = 0 + +dns_key_name = "terraform.key." +dns_key_secret = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" diff --git a/.terraform/tfvars/02-dns-zones.tfvars b/.terraform/tfvars/02-dns-zones.tfvars new file mode 100644 index 0000000..d508f45 --- /dev/null +++ b/.terraform/tfvars/02-dns-zones.tfvars @@ -0,0 +1,22 @@ +dns_zones = [ + { + domain = "cadoles.com", + a_records = { + hapy = [ "192.168.1.108" ], + amon = [ "192.168.1.1"] + }, + cname_records = { + hapy = "virt.cadoles.com." + } + }, + { + domain = "cadol.es", + a_records = { + hapy = [ "192.168.1.108" ], + amon = [ "192.168.1.1"] + }, + cname_records = { + hapy = "virt.cadol.es." + } + } +] \ No newline at end of file diff --git a/.terraform/tfvars/03-networks.tfvars b/.terraform/tfvars/03-networks.tfvars new file mode 100644 index 0000000..d7b9bc4 --- /dev/null +++ b/.terraform/tfvars/03-networks.tfvars @@ -0,0 +1,24 @@ +virtual_networks = { + internet = { + vlan_id = "4", + adress_range = { + ar_type = "IP4", + size = "10", + ip4 = "192.168.1.28" + }, + dns = "192.168.5.53", + gateway = "192.168.1.1", + clusters = [ "0" ] + }, + office = { + vlan_id = "10", + adress_range = { + ar_type = "IP4", + size = "30", + ip4 = "192.168.10.100" + }, + dns = "192.168.5.53", + gateway = "192.168.10.254", + clusters = [ "0" ] + } +} \ No newline at end of file diff --git a/.terraform/tfvars/04-virtual-machines.tfvars b/.terraform/tfvars/04-virtual-machines.tfvars new file mode 100644 index 0000000..9b1c64a --- /dev/null +++ b/.terraform/tfvars/04-virtual-machines.tfvars @@ -0,0 +1,45 @@ +virtual_machines = { + amon = { + fqdn = "amon.fabrica.local", + domain = "fabrica.local", + create_dns_a_record = "no", + cpu = "0.4", + vcpu = "4", + memory = "4096", + network_interfaces = [ + { network_name = "internet", ip = "192.168.1.3" }, + { network_name = "office", ip = "192.168.10.254" } + ], + + labels = "Production, Amon, Infra, Backup, EOLE", + + disks = { + system = { + name = "prod-amon-static", + source = "http://localhost/fabrica/infra/production/amon.fabrica.local/system/amon.fabrica.local.img" + } + } + depends = [ "internet" ] + }, + scribe = { + fqdn = "scribe.fabrica.local", + domain = "fabrica.local", + create_dns_a_record = "no", + cpu = "0.4", + vcpu = "4", + memory = "4096", + network_interfaces = [ + { network_name = "office", ip = "192.168.10.200" } + ], + + labels = "Production, Scribe, Infra, Backup, EOLE", + + disks = { + system = { + name = "prod-scribe-static", + source = "http://localhost/fabrica/infra/production/scribe.fabrica.local/system/scribe.fabrica.local.img" + } + } + depends = [ "internet" ] + } +} \ No newline at end of file