Host statping outside home

This commit is contained in:
Jake Howard 2020-04-26 15:37:28 +01:00
parent 7c6abc33fe
commit bfce9e1cbf
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 6 additions and 23 deletions

View file

@ -34,3 +34,4 @@
- hosts: grimes
roles:
- website
- statping

View file

@ -28,9 +28,6 @@
- name: Install quassel
include: quassel.yml
- name: Install statping
include: statping.yml
- name: Install synapse
include: synapse.yml

View file

@ -21,18 +21,3 @@ services:
environment:
- POSTGRES_PASSWORD=statping
- POSTGRES_USER=statping
db-backups:
image: prodrigestivill/postgres-backup-local:12-alpine
restart: unless-stopped
volumes:
- /scratch/db-backups:/backups
depends_on:
- db
environment:
- POSTGRES_HOST=db
- POSTGRES_PASSWORD=statping
- POSTGRES_USER=statping
- POSTGRES_DB=statping
- BACKUP_KEEP_MONTHS=1
- BACKUP_KEEP_WEEKS=1

View file

@ -1,4 +1,4 @@
- name: Create statping directory
- name: Create install directory
file:
path: /opt/statping
state: directory
@ -6,9 +6,9 @@
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Install statping compose file
- name: Install compose file
template:
src: files/statping/docker-compose.yml
src: files/docker-compose.yml
dest: /opt/statping/docker-compose.yml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
@ -16,7 +16,7 @@
register: compose_file
become: true
- name: Cycle statping container
- name: Cycle container
docker_compose:
project_src: /opt/statping
pull: true

View file

@ -21,7 +21,7 @@ resource "cloudflare_record" "theorangeonenet_go" {
resource "cloudflare_record" "theorangeonenet_stats" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "stats"
value = vultr_server.casey.main_ip
value = vultr_server.grimes.main_ip
type = "A"
ttl = 1
}