forked from bashclub/zamba-lxc-toolbox
50 lines
1.3 KiB
Bash
50 lines
1.3 KiB
Bash
#!/bin/bash
|
|
|
|
# Authors:
|
|
# (C) 2021 Idea an concept by Christian Zengel <christian@sysops.de>
|
|
# (C) 2021 Script design and prototype by Markus Helmke <m.helmke@nettwarker.de>
|
|
# (C) 2021 Script rework and documentation by Thorsten Spille <thorsten@spille-edv.de>
|
|
|
|
# This file contains the project constants on service level
|
|
|
|
# Debian Version, which will be installed
|
|
LXC_TEMPLATE_VERSION="debian-11-standard"
|
|
|
|
# Create sharefs mountpoint
|
|
LXC_MP="1"
|
|
|
|
# Create unprivileged container
|
|
LXC_UNPRIVILEGED="0"
|
|
|
|
# enable nesting feature
|
|
LXC_NESTING="1"
|
|
|
|
# Defines the IP from the SQL server
|
|
RMM_DB_IP="127.0.0.1"
|
|
|
|
# Defines the PORT from the SQL server
|
|
RMM_DB_PORT="5432"
|
|
|
|
# Defines the amount of RAM in MB your LXC container is allowed to use (default: 1024)
|
|
LXC_MEM="4096"
|
|
|
|
# Defines the name from the SQL database
|
|
RMM_DB_NAME="rmm"
|
|
|
|
# Defines the name from the SQL user
|
|
pgusername="rmm"
|
|
|
|
# Build a strong password for the SQL user - could be overwritten with something fixed
|
|
RMMUSER=tactical
|
|
pgpw="$(random_password)"
|
|
DJANGO_SEKRET="$(random_password)"
|
|
ADMINURL="$(random_password)"
|
|
MESHPASSWD="$(random_password)"
|
|
meshusername="$(random_password)"
|
|
|
|
# vars from tactical-rmm install script
|
|
SCRIPTS_DIR="/opt/trmm-community-scripts"
|
|
|
|
TMP_FILE=$(mktemp -p "" "rmminstall_XXXXXXXXXX")
|
|
osname=debian
|
|
djangousername=admin |