Decommission decker
server
It's been replaced by prometheus running internally, and uptimerobot checking.
This commit is contained in:
parent
413400cbc6
commit
e86ed81102
17 changed files with 0 additions and 170 deletions
|
@ -1,5 +1,4 @@
|
||||||
"hosts":
|
"hosts":
|
||||||
"casey_ip": "213.219.38.11"
|
"casey_ip": "213.219.38.11"
|
||||||
"decker_ip": "192.46.233.9"
|
|
||||||
"grimes_ip": "104.238.172.209"
|
"grimes_ip": "104.238.172.209"
|
||||||
"walker_ip": "192.248.168.230"
|
"walker_ip": "192.248.168.230"
|
||||||
|
|
|
@ -9,5 +9,3 @@ nebula:
|
||||||
ip: 10.23.2.4
|
ip: 10.23.2.4
|
||||||
ingress:
|
ingress:
|
||||||
ip: 10.23.2.5
|
ip: 10.23.2.5
|
||||||
decker:
|
|
||||||
ip: 10.23.2.6
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
restic_backup_locations:
|
|
||||||
- /opt
|
|
||||||
restic_healthchecks_id: "{{ vault_restic_healthchecks_id }}"
|
|
|
@ -1,12 +0,0 @@
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
|
||||||
37326662353562626466613939643162346663306230333066323231346233633561363932313364
|
|
||||||
6636326134326435356161653231643666343432373133380a623161326465613235626236623062
|
|
||||||
63303436626538646432323337343062376235363734623935663135666531306562616630343835
|
|
||||||
6537356330336261360a666166366663633937326534616534316531366136613237633035383738
|
|
||||||
38333832653935623637333437386531353831616130656532356662363765306439633464626661
|
|
||||||
66386538336266353538356431393162373763383734633638323866396434363465303866303163
|
|
||||||
31366566316338636239313539343465343336376435633834396239643535663563373832303331
|
|
||||||
35643966653666653538626236663437616164653764323562346238663538396233636233326165
|
|
||||||
62373633383539353237376130363334373936623532653538326366366261613833383734376330
|
|
||||||
34393234393461346137336561363264613139616161333239363334346465323234376661616166
|
|
||||||
656331326539323739626633376662613564
|
|
|
@ -1,7 +1,6 @@
|
||||||
casey
|
casey
|
||||||
walker
|
walker
|
||||||
grimes
|
grimes
|
||||||
decker
|
|
||||||
|
|
||||||
pve
|
pve
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
- ingress
|
- ingress
|
||||||
- walker
|
- walker
|
||||||
- grimes
|
- grimes
|
||||||
- decker
|
|
||||||
roles:
|
roles:
|
||||||
- role: geerlingguy.ntp
|
- role: geerlingguy.ntp
|
||||||
become: true
|
become: true
|
||||||
|
@ -33,7 +32,6 @@
|
||||||
- walker
|
- walker
|
||||||
- pve-gitlab-runner
|
- pve-gitlab-runner
|
||||||
- grimes
|
- grimes
|
||||||
- decker
|
|
||||||
- renovate
|
- renovate
|
||||||
roles:
|
roles:
|
||||||
- role: geerlingguy.docker
|
- role: geerlingguy.docker
|
||||||
|
@ -50,14 +48,12 @@
|
||||||
- forrest
|
- forrest
|
||||||
- walker
|
- walker
|
||||||
- grimes
|
- grimes
|
||||||
- decker
|
|
||||||
roles:
|
roles:
|
||||||
- db_auto_backup
|
- db_auto_backup
|
||||||
|
|
||||||
- hosts:
|
- hosts:
|
||||||
- pve-docker
|
- pve-docker
|
||||||
- walker
|
- walker
|
||||||
- decker
|
|
||||||
roles:
|
roles:
|
||||||
- traefik
|
- traefik
|
||||||
|
|
||||||
|
@ -133,12 +129,6 @@
|
||||||
become: true
|
become: true
|
||||||
- restic
|
- restic
|
||||||
|
|
||||||
- hosts: decker
|
|
||||||
roles:
|
|
||||||
- nebula
|
|
||||||
- restic
|
|
||||||
- uptime_kuma
|
|
||||||
|
|
||||||
- hosts: renovate
|
- hosts: renovate
|
||||||
roles:
|
roles:
|
||||||
- renovate
|
- renovate
|
||||||
|
|
|
@ -22,7 +22,6 @@ scrape_configs:
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- "{{ nebula.clients.walker.ip }}:8080"
|
- "{{ nebula.clients.walker.ip }}:8080"
|
||||||
- "{{ nebula.clients.decker.ip }}:8080"
|
|
||||||
- "{{ pve_hosts.docker.ip }}:8080"
|
- "{{ pve_hosts.docker.ip }}:8080"
|
||||||
|
|
||||||
- job_name: homeassistant
|
- job_name: homeassistant
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
|
||||||
65353231313330393239343839623361663961346636306236363938373037363538373338633731
|
|
||||||
6430663764633362633565616462373066366234356463370a356462363864396134376338363936
|
|
||||||
36646437363265306131643131353033613939363235643965333331633231653231366236393961
|
|
||||||
6433386362653437650a323733353361343130306533623662323536653265306361393265393732
|
|
||||||
39663236343530643835373132653664663661313731393433306635396639653635356531313365
|
|
||||||
35656435353032333639366534386530363637643365356332663864323161383531316561376436
|
|
||||||
62633036636432336434383461396564323536376238646161386562366338383734343462646631
|
|
||||||
63636330393639303566376131643761613132346462366237623062383737663838393833383964
|
|
||||||
30396661373738343536363831303939393738363866396364303236616262376337366637303632
|
|
||||||
65393139623064613166353235343963653364333365323966373837373435303565343335356334
|
|
||||||
66613963393339363638643931376434623333386133336638363336353334313835313961626235
|
|
||||||
34306364393233663062636639396164303963303433353538386335383432376535383735646436
|
|
||||||
65656436373234323936653263396363316432666666343536303537383032656462353761363464
|
|
||||||
32396464646532356663346234623939656138343233353932333165623237353132633264333035
|
|
||||||
64373134623863306564633738313233363835623733313766383761386230383033383232616137
|
|
||||||
31363430303763656662363666646533316262646530306632613733363566366461666133623638
|
|
||||||
64333330306637613730633733666561616331663463623739336263636637316463323061383735
|
|
||||||
32323666383633656363643633386139613666366565356431393134356233343038663061353064
|
|
||||||
303334396630656532363137383034323763
|
|
|
@ -1,11 +0,0 @@
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
|
||||||
38646235373534373165393032646530386230363864316439633366663962383432313931613265
|
|
||||||
3565373033636239306139313166373264363366386539380a323933393234653565623633643065
|
|
||||||
30643236313165396637326533343864336235393634663765626638623561303062343865323730
|
|
||||||
3766373635363739620a366531363234393034613761303838373264383138303031313739393962
|
|
||||||
63316132636264316334366661303830343961313561613038326134386134613565666336383065
|
|
||||||
32626138356661343366643137363735306466333933306539633063663134616165363062303366
|
|
||||||
39326133393439633330393762373637396465633337383861376138336362343365303065326431
|
|
||||||
33613365303464633163646130336139306430346431313465323930653164323931656432386438
|
|
||||||
33376165656635663335353263376635333262616263376132326362393434383830313434626237
|
|
||||||
6664653033366130313861326163623532353363633364626433
|
|
|
@ -1,25 +0,0 @@
|
||||||
version: "2.3"
|
|
||||||
|
|
||||||
services:
|
|
||||||
uptime-kuma:
|
|
||||||
image: louislam/uptime-kuma:1.18.5-alpine
|
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
|
||||||
- PUID={{ docker_user.id }}
|
|
||||||
- PGID={{ docker_user.id }}
|
|
||||||
- TZ={{ timezone }}
|
|
||||||
networks:
|
|
||||||
- default
|
|
||||||
- traefik
|
|
||||||
volumes:
|
|
||||||
- ./data:/app/data
|
|
||||||
dns:
|
|
||||||
- 9.9.9.9
|
|
||||||
- 149.112.112.112
|
|
||||||
labels:
|
|
||||||
- traefik.enable=true
|
|
||||||
- traefik.http.routers.uptime-kuma.rule=Host(`status.theorangeone.net`)
|
|
||||||
|
|
||||||
networks:
|
|
||||||
traefik:
|
|
||||||
external: true
|
|
|
@ -1,4 +0,0 @@
|
||||||
- name: restart uptime-kuma
|
|
||||||
shell:
|
|
||||||
chdir: /opt/uptime-kuma
|
|
||||||
cmd: "{{ docker_update_command }}"
|
|
|
@ -1,17 +0,0 @@
|
||||||
- name: Create install directory
|
|
||||||
file:
|
|
||||||
path: /opt/uptime-kuma
|
|
||||||
state: directory
|
|
||||||
owner: "{{ docker_user.name }}"
|
|
||||||
mode: "{{ docker_compose_directory_mask }}"
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Install compose file
|
|
||||||
template:
|
|
||||||
src: files/docker-compose.yml
|
|
||||||
dest: /opt/uptime-kuma/docker-compose.yml
|
|
||||||
mode: "{{ docker_compose_file_mask }}"
|
|
||||||
owner: "{{ docker_user.name }}"
|
|
||||||
validate: docker-compose -f %s config
|
|
||||||
notify: restart uptime-kuma
|
|
||||||
become: true
|
|
|
@ -4,7 +4,6 @@ resource "local_file" "hosts" {
|
||||||
casey_ip : linode_instance.casey.ip_address,
|
casey_ip : linode_instance.casey.ip_address,
|
||||||
walker_ip : vultr_instance.walker.main_ip,
|
walker_ip : vultr_instance.walker.main_ip,
|
||||||
grimes_ip : vultr_instance.grimes.main_ip,
|
grimes_ip : vultr_instance.grimes.main_ip,
|
||||||
decker_ip : linode_instance.decker.ip_address,
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
filename = "${path.module}/../ansible/group_vars/all/hosts.yml"
|
filename = "${path.module}/../ansible/group_vars/all/hosts.yml"
|
||||||
|
|
|
@ -1,45 +0,0 @@
|
||||||
resource "linode_instance" "decker" {
|
|
||||||
label = "decker"
|
|
||||||
image = "linode/arch"
|
|
||||||
region = "eu-central"
|
|
||||||
type = "g6-nanode-1"
|
|
||||||
private_ip = true
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "linode_firewall" "decker" {
|
|
||||||
label = "decker"
|
|
||||||
linodes = [linode_instance.decker.id]
|
|
||||||
outbound_policy = "ACCEPT"
|
|
||||||
inbound_policy = "DROP"
|
|
||||||
|
|
||||||
inbound {
|
|
||||||
label = "allow-ping"
|
|
||||||
action = "ACCEPT"
|
|
||||||
protocol = "ICMP"
|
|
||||||
ipv4 = ["0.0.0.0/0"]
|
|
||||||
ipv6 = ["::/0"]
|
|
||||||
}
|
|
||||||
|
|
||||||
inbound {
|
|
||||||
label = "allow-inbound-https"
|
|
||||||
action = "ACCEPT"
|
|
||||||
protocol = "TCP"
|
|
||||||
ports = "443"
|
|
||||||
ipv4 = ["0.0.0.0/0"]
|
|
||||||
ipv6 = ["::/0"]
|
|
||||||
}
|
|
||||||
|
|
||||||
inbound {
|
|
||||||
label = "allow-inbound-http"
|
|
||||||
action = "ACCEPT"
|
|
||||||
protocol = "TCP"
|
|
||||||
ports = "80"
|
|
||||||
ipv4 = ["0.0.0.0/0"]
|
|
||||||
ipv6 = ["::/0"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "linode_rdns" "decker_reverse_ipv4" {
|
|
||||||
address = linode_instance.decker.ip_address
|
|
||||||
rdns = "decker.sys.theorangeone.net"
|
|
||||||
}
|
|
|
@ -21,11 +21,3 @@ resource "cloudflare_record" "sys_domain_grimes" {
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = 1
|
ttl = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "cloudflare_record" "sys_domain_decker" {
|
|
||||||
zone_id = cloudflare_zone.theorangeonenet.id
|
|
||||||
name = "decker.sys"
|
|
||||||
value = linode_instance.decker.ip_address
|
|
||||||
type = "A"
|
|
||||||
ttl = 1
|
|
||||||
}
|
|
||||||
|
|
|
@ -197,14 +197,6 @@ resource "cloudflare_record" "theorangeonenet_dokku_wildcard" {
|
||||||
ttl = 1
|
ttl = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "cloudflare_record" "theorangeonenet_status" {
|
|
||||||
zone_id = cloudflare_zone.theorangeonenet.id
|
|
||||||
name = "status"
|
|
||||||
value = linode_instance.decker.ip_address
|
|
||||||
type = "A"
|
|
||||||
ttl = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "cloudflare_record" "theorangeonenet_google_site_verification" {
|
resource "cloudflare_record" "theorangeonenet_google_site_verification" {
|
||||||
zone_id = cloudflare_zone.theorangeonenet.id
|
zone_id = cloudflare_zone.theorangeonenet.id
|
||||||
name = "@"
|
name = "@"
|
||||||
|
|
|
@ -2,7 +2,6 @@ resource "uptimerobot_monitor" "vps_ping" {
|
||||||
for_each = {
|
for_each = {
|
||||||
casey = linode_instance.casey.ip_address
|
casey = linode_instance.casey.ip_address
|
||||||
walker = vultr_instance.walker.main_ip
|
walker = vultr_instance.walker.main_ip
|
||||||
decker = linode_instance.decker.ip_address
|
|
||||||
grimes = vultr_instance.grimes.main_ip
|
grimes = vultr_instance.grimes.main_ip
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue