mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2024-11-07 19:31:58 +01:00
Add automated tagging
This commit is contained in:
parent
cc294118ae
commit
ae27f3697b
@ -84,6 +84,12 @@ LXC_VIM_BG_DARK=1
|
||||
# Default random password length
|
||||
LXC_RANDOMPWD=32
|
||||
|
||||
# Automatically add meta tags to lxc container
|
||||
LXC_AUTOTAG=1
|
||||
|
||||
# Add meta tags to linux container
|
||||
LXC_TAGS="linux,debian,${service}"
|
||||
|
||||
############### Zamba-Server-Section ###############
|
||||
|
||||
# Defines the REALM for the Active Directory (AD DC, AD member)
|
||||
|
@ -102,6 +102,10 @@ source "$config"
|
||||
|
||||
source "$PWD/src/$service/constants-service.conf"
|
||||
|
||||
if [ $LXC_AUTOTAG -gt 0 ]; then
|
||||
TAGS="--tags ${LXC_TAGS},${SERVICE_TAGS}"
|
||||
fi
|
||||
|
||||
# CHeck is the newest template available, else download it.
|
||||
DEB_LOC=$(pveam list $LXC_TEMPLATE_STORAGE | grep $LXC_TEMPLATE_VERSION | tail -1 | cut -d'_' -f2)
|
||||
DEB_REP=$(pveam available --section system | grep $LXC_TEMPLATE_VERSION | tail -1 | cut -d'_' -f2)
|
||||
@ -131,7 +135,7 @@ fi
|
||||
echo "Will now create LXC Container $LXC_NBR!";
|
||||
|
||||
# Create the container
|
||||
pct create $LXC_NBR --password $LXC_PWD -unprivileged $LXC_UNPRIVILEGED $LXC_TEMPLATE_STORAGE:vztmpl/$TMPL_NAME -rootfs $LXC_ROOTFS_STORAGE:$LXC_ROOTFS_SIZE;
|
||||
pct create $LXC_NBR $TAGS --password $LXC_PWD -unprivileged $LXC_UNPRIVILEGED $LXC_TEMPLATE_STORAGE:vztmpl/$TMPL_NAME -rootfs $LXC_ROOTFS_STORAGE:$LXC_ROOTFS_SIZE;
|
||||
sleep 2;
|
||||
|
||||
# Check vlan configuration
|
||||
|
@ -17,4 +17,7 @@ LXC_MP="0"
|
||||
LXC_UNPRIVILEGED="1"
|
||||
|
||||
# enable nesting feature
|
||||
LXC_NESTING="1"
|
||||
LXC_NESTING="1"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="php-fpm,nginx,mariadb"
|
@ -23,3 +23,6 @@ LXC_NESTING="1"
|
||||
CMK_VERSION=2.1.0p19
|
||||
# build number of the debian package (needs to start with underscore)
|
||||
CMK_BUILD=_0
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="apache2"
|
@ -17,4 +17,7 @@ LXC_MP="0"
|
||||
LXC_UNPRIVILEGED="0"
|
||||
|
||||
# enable nesting feature
|
||||
LXC_NESTING="1"
|
||||
LXC_NESTING="1"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="privileged"
|
@ -17,4 +17,7 @@ LXC_MP="0"
|
||||
LXC_UNPRIVILEGED="1"
|
||||
|
||||
# enable nesting feature
|
||||
LXC_NESTING="1"
|
||||
LXC_NESTING="1"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS=""
|
@ -32,4 +32,7 @@ GITEA_DB_NAME="gitea"
|
||||
GITEA_DB_USR="gitea"
|
||||
|
||||
# Build a strong password for the SQL user - could be overwritten with something fixed
|
||||
GITEA_DB_PWD="$(random_password)"
|
||||
GITEA_DB_PWD="$(random_password)"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="nginx,postgresql"
|
@ -24,3 +24,6 @@ KIMAI_VERSION="main"
|
||||
|
||||
# Defines the php version to install
|
||||
KIMAI_PHP_VERSION="8.1"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="php-fpm,nginx,mariadb"
|
@ -39,3 +39,5 @@ MARIA_DB_USER="kopano"
|
||||
MARIA_ROOT_PWD=$(random_password)
|
||||
MARIA_USER_PWD=$(random_password)
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="php-fpm,nginx,mariadb"
|
@ -25,3 +25,6 @@ PILER_VERSION="1.3.12"
|
||||
PILER_SPHINX_VERSION="3.3.1"
|
||||
# Defines the php version to install
|
||||
PILER_PHP_VERSION="7.4"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="php-fpm,nginx,mariadb,sphinx"
|
@ -21,3 +21,6 @@ LXC_NESTING="1"
|
||||
|
||||
# Define the version of Element Web
|
||||
MATRIX_ELEMENT_VERSION="v1.9.9"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="nginx,postgresql"
|
@ -39,3 +39,6 @@ NEXTCLOUD_DB_USR="nextcloud"
|
||||
|
||||
# Build a strong password for the SQL user - could be overwritten with something fixed
|
||||
NEXTCLOUD_DB_PWD="$(random_password)"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="php-fpm,nginx,postgresql"
|
@ -23,4 +23,7 @@ ONLYOFFICE_DB_HOST=localhost
|
||||
|
||||
ONLYOFFICE_DB_NAME=onlyoffice
|
||||
|
||||
ONLYOFFICE_DB_USER=onlyoffice
|
||||
ONLYOFFICE_DB_USER=onlyoffice
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="nginx,postgresql,rabbitmq"
|
@ -17,4 +17,7 @@ LXC_MP="0"
|
||||
LXC_UNPRIVILEGED="1"
|
||||
|
||||
# enable nesting feature
|
||||
LXC_NESTING="1"
|
||||
LXC_NESTING="1"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="php-fpm,nginx,mariadb"
|
@ -20,4 +20,7 @@ LXC_UNPRIVILEGED="1"
|
||||
LXC_NESTING="1"
|
||||
|
||||
# Backup ubdir where Urbackup will store backups
|
||||
PBS_DATA="backup"
|
||||
PBS_DATA="backup"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="backup"
|
@ -17,4 +17,7 @@ LXC_MP="0"
|
||||
LXC_UNPRIVILEGED="1"
|
||||
|
||||
# enable nesting feature
|
||||
LXC_NESTING="1"
|
||||
LXC_NESTING="1"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="mongodb-server,java"
|
@ -23,4 +23,7 @@ LXC_NESTING="1"
|
||||
URBACKUP_DATA="urbackup"
|
||||
|
||||
# OS codename for opensuse / urbackup repo
|
||||
REPO_CODENAME="Debian_11"
|
||||
REPO_CODENAME="Debian_11"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="nginx"
|
@ -26,4 +26,7 @@ VAULTWARDEN_DB_NAME="vaultwarden"
|
||||
VAULTWARDEN_DB_USR="vaultwarden"
|
||||
|
||||
# Build a strong password for the SQL user - could be overwritten with something fixed
|
||||
VAULTWARDEN_DB_PWD="$(random_password)"
|
||||
VAULTWARDEN_DB_PWD="$(random_password)"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="nginx,postgresql"
|
@ -41,7 +41,6 @@ ORG_CREATION_USERS=admin@$LXC_DOMAIN
|
||||
ADMIN_TOKEN=$admin_token
|
||||
# Uncomment this once vaults restored
|
||||
SIGNUPS_ALLOWED=false
|
||||
INVITATIONS_ALLOWED=false
|
||||
SMTP_HOST=$VW_SMTP_HOST
|
||||
SMTP_FROM=$VW_SMTP_FROM
|
||||
SMTP_FROM_NAME="$VW_SMTP_FROM_NAME"
|
||||
|
@ -33,4 +33,7 @@ ZABBIX_DB_NAME="zabbix"
|
||||
ZABBIX_DB_USR="zabbix"
|
||||
|
||||
# Build a strong password for the SQL user - could be overwritten with something fixed
|
||||
ZABBIX_DB_PWD="$(random_password)"
|
||||
ZABBIX_DB_PWD="$(random_password)"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="php-fpm,nginx,postgresql"
|
@ -20,4 +20,7 @@ LXC_UNPRIVILEGED="1"
|
||||
LXC_NESTING="1"
|
||||
|
||||
# Defines the amount of RAM in MB your LXC container is allowed to use (default: 1024)
|
||||
LXC_MEM="4096"
|
||||
LXC_MEM="4096"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="nginx,postgresql,elasticsearch"
|
@ -20,3 +20,6 @@ LXC_UNPRIVILEGED="0"
|
||||
LXC_NESTING="1"
|
||||
|
||||
OPTIONAL_FEATURES=(wsdd splitdns)
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="nginx,samba,dns,ntp,dc,ldap,secondary"
|
@ -29,4 +29,7 @@ LXC_NESTING="1"
|
||||
# Example:
|
||||
# OPTIONAL_FEATURES=(wsdd)
|
||||
# OPTIONAL_FEATURES=(wsdd splitdns)
|
||||
OPTIONAL_FEATURES=()
|
||||
OPTIONAL_FEATURES=(wsdd splitdns)
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="nginx,samba,dns,ntp,dc,ldap,primary"
|
@ -17,4 +17,7 @@ LXC_MP="1"
|
||||
LXC_UNPRIVILEGED="0"
|
||||
|
||||
# enable nesting feature
|
||||
LXC_NESTING="1"
|
||||
LXC_NESTING="1"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="samba,member,fileserver"
|
@ -17,4 +17,7 @@ LXC_MP="1"
|
||||
LXC_UNPRIVILEGED="0"
|
||||
|
||||
# enable nesting feature
|
||||
LXC_NESTING="1"
|
||||
LXC_NESTING="1"
|
||||
|
||||
# service dependent meta tags
|
||||
SERVICE_TAGS="samba,nfs,standalone,fileserver,cockpit"
|
Loading…
Reference in New Issue
Block a user