From beb1f6a308dfc11fd6e668ab57faf0fc83b270a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 17 Apr 2022 00:26:04 +0200 Subject: [PATCH] use a single playbook to fuck everything --- backup.yaml | 10 ------- dbhosts.yaml | 10 ------- docker-host.yaml | 10 ------- drone-runner.yaml | 9 ------ gitea.yaml | 12 -------- infra.yaml | 70 +++++++++++++++++++++++++++++++++++++++++++++++ neko.yaml | 10 ------- smtp.yaml | 8 ------ webgateway.yaml | 8 ------ 9 files changed, 70 insertions(+), 77 deletions(-) delete mode 100644 backup.yaml delete mode 100644 dbhosts.yaml delete mode 100644 docker-host.yaml delete mode 100644 drone-runner.yaml delete mode 100644 gitea.yaml create mode 100644 infra.yaml delete mode 100644 neko.yaml delete mode 100644 smtp.yaml delete mode 100644 webgateway.yaml diff --git a/backup.yaml b/backup.yaml deleted file mode 100644 index da5150e..0000000 --- a/backup.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -- name: "Deploy backup server" - hosts: backup - roles: - - netplan - - common - - internalsmtp - - backupscript - - backuphost -... diff --git a/dbhosts.yaml b/dbhosts.yaml deleted file mode 100644 index ba2fe5d..0000000 --- a/dbhosts.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -- name: "Deploy database server base" - hosts: postgres - roles: - - netplan - - common - - customfirewall - - backupscript - - customfirewall -... diff --git a/docker-host.yaml b/docker-host.yaml deleted file mode 100644 index c33b058..0000000 --- a/docker-host.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -- name: "Deploy basic webhost with Docker" - hosts: dockerwebhosts - roles: - - netplan - - common - - docker - - webserver - - internalsmtp -... diff --git a/drone-runner.yaml b/drone-runner.yaml deleted file mode 100644 index fd08b95..0000000 --- a/drone-runner.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -- name: "Deploy basic Docker host to drone-runner" - hosts: drone-runner - roles: - - netplan - - common - - docker - - internalsmtp -... diff --git a/gitea.yaml b/gitea.yaml deleted file mode 100644 index 3eb23af..0000000 --- a/gitea.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -- name: "Deploy gitea in Docker" - hosts: git - roles: - - netplan - - common - - docker - - webserver - - internalsmtp - - backupscript - - customfirewall -... diff --git a/infra.yaml b/infra.yaml new file mode 100644 index 0000000..d2a8805 --- /dev/null +++ b/infra.yaml @@ -0,0 +1,70 @@ +--- +- name: "Deploy basic webhost with Docker" + hosts: dockerwebhosts + roles: + - netplan + - common + - docker + - webserver + - internalsmtp + +- name: "Deploy database server base" + hosts: postgres + roles: + - netplan + - common + - customfirewall + - backupscript + - customfirewall + +- name: "Deploy basic Docker host to drone-runner" + hosts: drone-runner + roles: + - netplan + - common + - docker + - internalsmtp + +- name: "Deploy gitea in Docker" + hosts: git + roles: + - netplan + - common + - docker + - webserver + - internalsmtp + - backupscript + - customfirewall + +- name: "Setup neko" + hosts: neko + roles: + - common + - docker + - neko + - customfirewall + - internalsmtp + +- name: "Deploy smtpgateway to smtp.stargate.internal" + hosts: smtp + roles: + - netplan + - common + - smtpgateway + +- name: "Deploy managed web gateway" + hosts: webgateway + roles: + - common + - webgateway + - internalsmtp + +- name: "Deploy backup server" + hosts: backup + roles: + - netplan + - common + - internalsmtp + - backupscript + - backuphost +... \ No newline at end of file diff --git a/neko.yaml b/neko.yaml deleted file mode 100644 index 2d55757..0000000 --- a/neko.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -- name: "Setup neko" - hosts: neko - roles: - - common - - docker - - neko - - customfirewall - - internalsmtp -... diff --git a/smtp.yaml b/smtp.yaml deleted file mode 100644 index 0be889c..0000000 --- a/smtp.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: "Deploy smtpgateway to smtp.stargate.internal" - hosts: smtp - roles: - - netplan - - common - - smtpgateway -... diff --git a/webgateway.yaml b/webgateway.yaml deleted file mode 100644 index 653cf55..0000000 --- a/webgateway.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: "Deploy managed web gateway" - hosts: webgateway - roles: - - common - - webgateway - - internalsmtp -...