Compare commits
2 Commits
ece64af0ed
...
4d045744ff
Author | SHA1 | Date | |
---|---|---|---|
4d045744ff | |||
8ab3f7d452 |
@ -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 }
|
||||
|
@ -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:
|
||||
|
@ -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
|
@ -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'.
|
||||
@ -22,7 +22,7 @@ POSTGRES_PASSWORD= {{ vault_mm_POSTGRES_PASSWORD }}
|
||||
POSTGRES_DB={{ vault_mm_POSTGRES_DB }}
|
||||
|
||||
# Nginx
|
||||
## The nginx container will use a configuration found at the NGINX_MATTERMOST_CONFIG. The config aims
|
||||
## The nginx container will use a configuration found at the NGINX_MATTERMOST_CONFIG. The config aims
|
||||
## to be secure and uses a catch-all server vhost which will work out-of-the-box. For additional settings
|
||||
## or changes ones can edit it or provide another config. Important note: inside the container, nginx sources
|
||||
## every config file inside */etc/nginx/conf.d* ending with a *.conf* file extension.
|
||||
|
@ -1,57 +0,0 @@
|
||||
resource "proxmox_vm_qemu" "testchat01" {
|
||||
name = "testchat01"
|
||||
target_node = "exgod"
|
||||
clone = var.template_name
|
||||
# basic VM settings here. agent refers to guest agent
|
||||
agent = 1
|
||||
os_type = "debian"
|
||||
cores = 2
|
||||
sockets = 1
|
||||
cpu = "host"
|
||||
memory = 2048
|
||||
scsihw = "virtio-scsi-pci"
|
||||
bootdisk = "scsi0"
|
||||
ciuser = "alice"
|
||||
sshkeys = <<-EOT
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPAZhFDzl1lbhWJ7MiTV3+Z1EY8M5b4cH/+ju4uo1d91 admin@home.jowj.net
|
||||
EOT
|
||||
|
||||
# This is our OS disk
|
||||
disk {
|
||||
slot = 0
|
||||
# set disk size here. leave it small for testing because expanding the disk takes time.
|
||||
# You can't actually set this to anything, it doesn't seem? I'm not sure why. if you clone from a template you ALWAYS get that templates size, and any changes made are not seen on the clone vm.
|
||||
# Maybe a function of the kind of disk that was created?
|
||||
size = "32G"
|
||||
type = "scsi"
|
||||
storage = "workload_data"
|
||||
iothread = 0
|
||||
}
|
||||
# This is our data disk; we're just adding the data disk capaccity to LVM, so its maybe dumb? but that's what i'm doing for now.
|
||||
disk {
|
||||
slot = 1
|
||||
size = "240G"
|
||||
type = "scsi"
|
||||
storage = "workload_data"
|
||||
iothread = 0
|
||||
}
|
||||
|
||||
# if you want two NICs, just copy this whole network section and duplicate it
|
||||
network {
|
||||
model = "virtio"
|
||||
bridge = "vmbr0"
|
||||
}
|
||||
# not sure exactly what this is for. presumably something about MAC addresses and ignore network changes during the life of the VM
|
||||
lifecycle {
|
||||
ignore_changes = [
|
||||
network,
|
||||
]
|
||||
}
|
||||
|
||||
# sshkeys set using variables. the variable contains the text of the key.
|
||||
}
|
||||
|
||||
# Configure DO DNS after VM is build. A record to point to machine?
|
||||
# See records_home.jowj.net.tf file in do_domains.
|
||||
|
||||
|
@ -63,4 +63,56 @@ resource "proxmox_vm_qemu" "high-sea" {
|
||||
# Configure DO DNS after VM is build. A record to point to machine?
|
||||
# See records_home.jowj.net.tf file in do_domains.
|
||||
|
||||
# resource "proxmox_vm_qemu" "testchat01" {
|
||||
# name = "testchat01"
|
||||
# target_node = "exgod"
|
||||
# clone = var.template_name
|
||||
# # basic VM settings here. agent refers to guest agent
|
||||
# agent = 1
|
||||
# os_type = "debian"
|
||||
# cores = 2
|
||||
# sockets = 1
|
||||
# cpu = "host"
|
||||
# memory = 2048
|
||||
# scsihw = "virtio-scsi-pci"
|
||||
# bootdisk = "scsi0"
|
||||
# ciuser = "alice"
|
||||
# sshkeys = <<-EOT
|
||||
# ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPAZhFDzl1lbhWJ7MiTV3+Z1EY8M5b4cH/+ju4uo1d91 admin@home.jowj.net
|
||||
# EOT
|
||||
|
||||
# # This is our OS disk
|
||||
# disk {
|
||||
# slot = 0
|
||||
# # set disk size here. leave it small for testing because expanding the disk takes time.
|
||||
# # You can't actually set this to anything, it doesn't seem? I'm not sure why. if you clone from a template you ALWAYS get that templates size, and any changes made are not seen on the clone vm.
|
||||
# # Maybe a function of the kind of disk that was created?
|
||||
# size = "32G"
|
||||
# type = "scsi"
|
||||
# storage = "workload_data"
|
||||
# iothread = 0
|
||||
# }
|
||||
# # This is our data disk; we're just adding the data disk capaccity to LVM, so its maybe dumb? but that's what i'm doing for now.
|
||||
# disk {
|
||||
# slot = 1
|
||||
# size = "240G"
|
||||
# type = "scsi"
|
||||
# storage = "workload_data"
|
||||
# iothread = 0
|
||||
# }
|
||||
|
||||
# # if you want two NICs, just copy this whole network section and duplicate it
|
||||
# network {
|
||||
# model = "virtio"
|
||||
# bridge = "vmbr0"
|
||||
# }
|
||||
# # not sure exactly what this is for. presumably something about MAC addresses and ignore network changes during the life of the VM
|
||||
# lifecycle {
|
||||
# ignore_changes = [
|
||||
# network,
|
||||
# ]
|
||||
# }
|
||||
|
||||
# # sshkeys set using variables. the variable contains the text of the key.
|
||||
# }
|
||||
|
@ -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"
|
||||
}
|
@ -232,15 +232,4 @@ 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"
|
||||
}
|
||||
# Especailly because getting the output of tailscale is difficult??
|
Loading…
Reference in New Issue
Block a user