Deploy chat to mattermost in awful.club.

This commit is contained in:
josiah 2024-05-30 17:54:03 -05:00
parent 8ab3f7d452
commit 4d045744ff
6 changed files with 24 additions and 23 deletions

View File

@ -1,9 +1,9 @@
- name: deploy mattermost
hosts: testchat01
hosts: mattermost-trial
remote_user: "{{ remote_user }}"
tasks:
- debug: msg="Deploying mediaserver stack to local server"
roles:
# - { name: debian_base }
- { name: tailscale }
# - { name: debian_base }
# - { name: tailscale }
- { name: mattermost }

View File

@ -25,10 +25,10 @@ all:
ansible_user: alice
testchat:
hosts:
testchat01:
ansible_host: 192.168.1.224
mattermost-trial:
ansible_host: 104.248.79.77
ansible_python_interpreter: /usr/bin/python3
ansible_user: alice
ansible_user: root
services:
hosts:
lair:

View File

@ -28,7 +28,7 @@
mode: 0700
recurse: yes
with_items:
[ '/home/josiah/volumes/app/mattermost/config', '/home/josiah/volumes/app/mattermost/data', '/home/josiah/volumes/app/mattermost/logs', '/home/josiah/volumes/app/mattermost/plugins', '/home/josiah/volumes/app/mattermost/client/plugins', '/home/josiah/volumes/app/mattermost/bleve-indexes' ]
[ '/home/josiah/mattermost/volumes/app/mattermost/config', '/home/josiah/mattermost/volumes/app/mattermost/data', '/home/josiah/mattermost/volumes/app/mattermost/logs', '/home/josiah/mattermost/volumes/app/mattermost/plugins', '/home/josiah/mattermost/volumes/app/mattermost/client/plugins', '/home/josiah/mattermost/volumes/app/mattermost/bleve-indexes' ]
- name: Deploy mattermost with compose
docker_compose:
@ -36,5 +36,5 @@
project_name: mm
files:
- docker-compose.yml
- docker-compose.without-nginx.yml
#- docker-compose.nginx.yml
# - docker-compose.without-nginx.yml
- docker-compose.nginx.yml

View File

@ -1,5 +1,5 @@
# Domain of service
DOMAIN=mattermost.home.jowj.net
DOMAIN=mattermost.awful.club
# Container settings
## Timezone inside the containers. The value needs to be in the form 'Europe/Berlin'.

View File

@ -406,3 +406,15 @@ resource "digitalocean_record" "tfer--98495666" {
value = "134.209.53.112"
weight = "0"
}
resource "digitalocean_record" mattermost-dns {
domain = "awful.club"
flags = "0"
name = "mattermost"
port = "0"
priority = "0"
ttl = "900"
type = "A"
value = "104.248.79.77"
weight = "0"
}

View File

@ -233,14 +233,3 @@ resource "digitalocean_record" highsea-dns {
# this motherfucker is currently set manually.
# TODO: Figure out how to do this programmatically
# Especailly because getting the output of tailscale is difficult??
resource "digitalocean_record" mattermost-dns {
domain = "home.jowj.net"
flags = "0"
name = "mattermost"
port = "0"
priority = "0"
ttl = "900"
type = "A"
value = "100.101.221.122"
weight = "0"
}