Add new host and move factorio

This commit is contained in:
Tobias Reisinger 2025-02-01 02:53:05 +01:00
parent b20a2a67a5
commit 09c153a4e4
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 23 additions and 5 deletions

View file

@ -7,6 +7,14 @@ hosts = {
server_type = "cx32"
datacenter = "fsn1-dc14"
},
"node002" = {
hostname = "node002"
rdns = "node002.serguzim.net"
provider = "hetzner"
image = "debian-12"
server_type = "cx22"
datacenter = "fsn1-dc14"
},
"node003" = {
hostname = "node003"
rdns = "mail.serguzim.me"

View file

@ -3,6 +3,7 @@ all:
serguzim_net:
hosts:
node001:
node002:
node003:
hosts:
local-dev:
@ -21,6 +22,19 @@ all:
hc_url: "{{ opentofu.healthchecksio.backup.node001.ping_url }}"
gatus_token: "{{ vault_hosts.node001.backup.gatus_token }}"
node002:
ansible_host: "{{ opentofu.hosts.node002.fqdn_vpn }}"
ansible_port: "{{ vault_hosts.node002.ansible_port }}"
ansible_user: "{{ vault_hosts.node002.ansible_user }}"
interactive_user: "{{ vault_hosts.node002.interactive_user }}"
host_vpn:
domain: "{{ opentofu.hosts.node002.fqdn_vpn }}"
ip: "{{ opentofu.hosts.node002.ipv4_address_vpn }}"
host_backup:
hc_uid: "{{ opentofu.healthchecksio.backup.node002.id }}"
hc_url: "{{ opentofu.healthchecksio.backup.node002.ping_url }}"
gatus_token: "{{ vault_hosts.node002.backup.gatus_token }}"
node003:
ansible_host: "{{ opentofu.hosts.node003.fqdn_vpn }}"
ansible_port: "{{ vault_hosts.node003.ansible_port }}"

View file

@ -3,10 +3,6 @@ factorio_port: 34197
factorio_uid: 845
factorio_gid: 845
factorio_svc:
domain: "{{ all_services | service_get_domain(role_name) }}"
port: "{{ factorio_port }}"
factorio_env:
PORT: "{{ factorio_port }}"
USERNAME: "{{ vault_factorio.username }}"

View file

@ -129,7 +129,7 @@ services = {
},
"factorio" = {
host = "node001"
host = "node002"
dns = [{
domain = "factorio.serguzim.me"
}]