Initial commit

This commit is contained in:
Christoph 2020-05-11 02:19:44 +02:00
commit 64d71f54b6
4 changed files with 1705 additions and 0 deletions

9
.gitignore vendored Normal file
View File

@ -0,0 +1,9 @@
# - common
*.log
*.swp
*.tar.gz
log*
conf/*.conf

110
README.install Normal file
View File

@ -0,0 +1,110 @@
# ===========================================================================
#
# Mattermost
# "is an open-source, self-hostable online chat service with file sharing,
# search, and integrations). It is designed as an internal chat for
# organisations and companies, and mostly markets itself as an open-source
# alternative to Slac and Microsoft Teams. "
#
# https://mattermost.com/
#
# see:
# - https://docs.mattermost.com/install/install-debian.html
#
# - https://docs.mattermost.com/
#
# Requirements:
#
# - NGINX Web Service is installed
# - MySQL Service is installed
# - lets encrypt certificates available for $FQHN_HOSTNAME
# =============================================================================
# ---
# 0.) Requirements
# ---
# ----------
#
# 0.) Create new LX Container
#
# /root/bin/LXC/create-lx-container.sh
# ...
#
# 1.) Assign(Adjust user root
#
# lxc-attach -n meet
# add_new_user.sh root
#
# Base Install via ansible
#
# cd /home/chris/devel/git/git.oopen.de/ansible/oopen-server
# ansible-playbook --limit meet.oopen.de ansible-dependencies.yml
# ansible-playbook --limit meet.oopen.de common.yml
# ansible-playbook --limit meet.oopen.de scripts/install-ulogd.yml
# ansible-playbook --limit meet.oopen.de firewall.yml
#
# ----------
# Adjust Firewall
#
cd /etc/ipt-firewall
...
# Install Postfix SMTP Service (base)
#
cd /usr/local/src/mailsystem
./install_postfix_base.sh
# Install Nginx Webserver
#
cd /usr/local/src/nginx
./install_nginx.sh
# Install update mechanism for lets encrypt certificates
#
cd /usr/local/src/dehydrated-cron
./install_dehydrated.sh
# Create certificate(s)
#
# Adjust '/var/lib/dehydrated/domains.txt'
#
# vim /var/lib/dehydrated/domains.txt
#
cat <<EOF >> /var/lib/dehydrated/domains.txt
$FQHN_HOSTNAME
EOF
/var/lib/dehydrated/cron/dehydrated_cron.sh
# ---
# 0.1) Requirements MySQL Database Service
# ---
# Install MySQL Database Service
#
cd /tmp
# See at 'https://dev.mysql.com/downloads/repo/apt/' which is the
# actual version of the apt-repository
#
mysql_apt_version=0.8.15-1
wget https://dev.mysql.com/get/mysql-apt-config_${mysql_apt_version}_all.deb
dpkg -i mysql-apt-config_${mysql_apt_version}_all.deb
apt-get update
apt-get install mysql-server
# ---
# 1.) Install Mattermost Service
# ---
# Trigger install script 'install-mattermost.sh'
#
./install-mattermost.sh

View File

@ -0,0 +1,88 @@
#----------------------------------------
# Settings for Mattermost Install scripts
#----------------------------------------
# FQHN_HOSTNAME
#
# The full qualified histname under which bbb service
# is available
#
# Defaults to full qualified hostname of the system
#
FQHN_HOSTNAME=""
# MATTERMOST_USER
#
# The user under which Mattermost service is running.
#
# Defaults to: MATTERMOST_USER="mattermost"
#
#MATTERMOST_USER=""
# MATTERMOST_GROUP
#
# The group od mattermost user.
#
# Defaults to: MATTERMOST_GROUP="$MATTERMOST_USER"
#
#MATTERMOST_GROUP=""
# MYSQL_CREDENTIAL_ARGS
#
# Giving password on command line is insecure an sind mysql 5.5
# you will get a warning doing so.
#
# Reading username/password fro file ist also possible, using MySQL/MariaDB
# commandline parameter '--defaults-file'.
#
# Since Version 5.6, that method is considered as insecure.
# To avoid giving the password on command line, we use an
# encrypted option file
#
# Create (encrypted) option file:
# $ mysql_config_editor set --login-path=local --socket=/var/run/mysqld/mysqld.sock --user=backup --password
# $ Password:
#
# Use of option file:
# $ mysql --login-path=local ...
#
# Example
# MYSQL_CREDENTIAL_ARGS="--login-path=local"
# MYSQL_CREDENTIAL_ARGS="--defaults-file=/etc/mysql/debian.cnf" (Debian default)
# MYSQL_CREDENTIAL_ARGS="--defaults-file=/usr/local/mysql/sys-maint.cnf"
#
# # MariaDB 10.4.x
# MYSQL_CREDENTIAL_ARGS="-u root -S /tmp/mysql.sock"
#
# No Defaults
#
#MYSQL_CREDENTIAL_ARGS="--login-path=local"
# DB_NAME
#
# Database Name of Mattemost's Database
#
# Defaults to: DB_NAME="mattermost"
#
#DB_NAME="mattermost"
# DB_USER
#
# Database USER of Mattemost's Database
#
# Defaults to: DB_USER="mattermost"
#
#DB_USER="mattermost"
# DB_PASS
#
# Database Password used for Mattemost's Database
#
# Defaults to a random created one.
#
#DB_PASS=""

1498
install-mattermost.sh Executable file

File diff suppressed because it is too large Load Diff