Provision dokku server

This commit is contained in:
Jake Howard 2021-06-20 12:01:20 +01:00
parent b20ffb27c4
commit e3502ae1e0
Signed by: jake
GPG key ID: 57AFB45680EDD477
8 changed files with 75 additions and 0 deletions

View file

@ -3,6 +3,8 @@ nebula:
clients: clients:
casey: casey:
ip: 10.23.2.1 ip: 10.23.2.1
grimes:
ip: 10.23.2.3
walker: walker:
ip: 10.23.2.4 ip: 10.23.2.4
ingress: ingress:

View file

@ -0,0 +1 @@
ssh_extra_allowed_users: dokku

View file

@ -1,5 +1,6 @@
casey casey
walker walker
grimes
pve pve

View file

@ -16,6 +16,7 @@
- ingress - ingress
- qbittorrent - qbittorrent
- walker - walker
- grimes
roles: roles:
- role: geerlingguy.ntp - role: geerlingguy.ntp
become: true become: true
@ -29,6 +30,7 @@
- forrest - forrest
- walker - walker
- pve-gitlab-runner - pve-gitlab-runner
- grimes
roles: roles:
- role: geerlingguy.docker - role: geerlingguy.docker
become: true become: true
@ -101,3 +103,7 @@
- hosts: pve-gitlab-runner - hosts: pve-gitlab-runner
roles: roles:
- gitlab_runner - gitlab_runner
- hosts: grimes
roles:
- nebula

View file

@ -0,0 +1,20 @@
$ANSIBLE_VAULT;1.1;AES256
61626636613635336231376431613661653133633662636237643136633439326535666262663739
3764623865653936313661393265616434386432336165340a636430376232653032313030636531
64303835653862663531353661336233303533626666383735316437336436346564306439366533
3230353533633038340a616364656536613634346437646466386666643934616365396161313538
33666232306336636562623937643064366335666538303738656233303436326261343035663762
33336636316134383131623761346330363264333734623832376662363936363061613731366131
34343762313964633661326633303034363466326532643665303965636366613865353233666237
37313064643863306261346331366231306632313230663433653233626661323761376366346433
32393637383937306562616238626338343936633732356633313636643765383231623066363839
65386130313065663663373739376134386365343965353634663832636564393362336264393165
65323162323066653163636465663038333132386561346364303133386138646439656633336338
64343238353733386364383662363034346264363431343636303939373362663230663636613366
62653861643438666630633263336638386433353066323336376565663864653766663030326462
62393265323036663066363730636339313662633530396362396432346233383662666137383734
37623132636231323539326130626639393432313930396662343934633666313466336665626466
37663132363933666565346634623832363638353431306132393539633163643864313865656238
37643939393866303933633831363635633463383135396432643065356435326361326536373130
32613161323734636130353362666331316231353063653237336433303238656365646135316461
396461396434313838373063643438613161

View file

@ -0,0 +1,11 @@
$ANSIBLE_VAULT;1.1;AES256
63383863316433356463343636613030353935363566663764623132306132343338666231326537
3366366462663730383864333536373335336139326336350a653163353432396438313132306537
66623438633864633866653234303462616238653665336138346264313736623631366261666530
3364303135313435630a313436663862366531303036616361356639316331303737323630303235
64373136313065623536356139393965383233633362333739303335396137653735303534653539
37373961626634626336646231633265643837626336666436383936636332363165353162656364
61663139333061643330363635363135353637633235313638346537636335663536326363376634
31336662323238323238363937626639326665663763636236643863393334636338386634343730
36623464313665623264613962306330323666313830373161663165326464393965326135623733
3566326635613839336164633138653061383735323662653561

18
terraform/grimes_vps.tf Normal file
View file

@ -0,0 +1,18 @@
module "grimes_firewall" {
source = "./vultr_firewall/"
description = "grimes"
ports = [
"80/tcp",
"443/tcp",
"7743/tcp"
]
}
resource "vultr_instance" "grimes" {
plan = "vhf-1c-1gb"
region = "lhr"
hostname = "grimes"
firewall_group_id = module.grimes_firewall.firewall_group.id
}

View file

@ -164,3 +164,19 @@ resource "cloudflare_record" "theorangeonenet_privatebin" {
type = "A" type = "A"
ttl = 1 ttl = 1
} }
resource "cloudflare_record" "theorangeonenet_dokku" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "d"
value = vultr_instance.grimes.main_ip
type = "A"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_dokku_wildcard" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "*.d"
value = vultr_instance.grimes.main_ip
type = "A"
ttl = 1
}