mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2024-12-24 11:20:13 +01:00
Splitted installer and config file into 2 files
This commit is contained in:
parent
73e6dea57d
commit
86b92a7d7f
@ -11,89 +11,13 @@
|
|||||||
# (C) 2021 Script design and prototype by Markus Helmke <helmke@cloudistboese.de>
|
# (C) 2021 Script design and prototype by Markus Helmke <helmke@cloudistboese.de>
|
||||||
# (C) 2021 Script rework by Thorsten Spille <thorsten@spille-edv.de>
|
# (C) 2021 Script rework by Thorsten Spille <thorsten@spille-edv.de>
|
||||||
|
|
||||||
|
# IMPORTANT NOTE:
|
||||||
|
# Please adjust th settings in 'zamba.conf' to your needs before running the script
|
||||||
|
|
||||||
#### PLEASE ADJUST THE FOLLWING VARIABLES, BEFORE RUNNING THE SCRIPT ####
|
############### ZAMBA INSTALL SCRIPT ###############
|
||||||
|
|
||||||
# The storage, where your container tmeplates are located (in most cases: local)
|
# Load configuration file
|
||||||
LXC_TEMPLATE_STORAGE="local"
|
source ./zamba.conf
|
||||||
|
|
||||||
# Define the size and storage location of the container's root filesystem
|
|
||||||
LXC_ROOTFS_SIZE="100"
|
|
||||||
LXC_ROOTFS_STORAGE="local-zfs"
|
|
||||||
|
|
||||||
# Define the size, storage location and mountpoint of the container's shared filesystem (required for 'zmb_standalone' and 'zmb_member')
|
|
||||||
LXC_FILEFS_SIZE="100"
|
|
||||||
LXC_FILEFS_STORAGE="local-zfs"
|
|
||||||
LXC_FILEFS_MOUNTPOINT="tank"
|
|
||||||
|
|
||||||
# Define whether the container will be created in unprivileged (1) or privileged (0) mode
|
|
||||||
# For 'zmb_standalone', 'zmb_pdc', 'zmb_member' and 'mailpiler' the container needs to be created with 'unprivileged=0'
|
|
||||||
LXC_UNPRIVILEGED="1"
|
|
||||||
|
|
||||||
# Size of the RAM assigned to the container
|
|
||||||
LXC_MEM="1024"
|
|
||||||
|
|
||||||
# Size of the SWAP assigned to the container
|
|
||||||
LXC_SWAP="1024"
|
|
||||||
|
|
||||||
# The hostname (eg. zamba1 or mailpiler1)
|
|
||||||
LXC_HOSTNAME="zamba"
|
|
||||||
|
|
||||||
# The domain suffix (the domain name / search domain of th container, results to the FQDN 'LXC_HOTNAME.LXC_DOMAIN')
|
|
||||||
LXC_DOMAIN="zmb.rocks"
|
|
||||||
|
|
||||||
# IP-address and subnet
|
|
||||||
LXC_IP="10.10.80.20/24"
|
|
||||||
|
|
||||||
# Gateway
|
|
||||||
LXC_GW="10.10.80.10"
|
|
||||||
|
|
||||||
# DNS-server (should be your AD DC)
|
|
||||||
LXC_DNS="10.10.80.10"
|
|
||||||
|
|
||||||
# Networkbridge for this container
|
|
||||||
LXC_BRIDGE="vmbr80"
|
|
||||||
|
|
||||||
# Optional VLAN number for this container
|
|
||||||
LXC_VLAN=""
|
|
||||||
|
|
||||||
# root password - take care to delete from this file
|
|
||||||
LXC_PWD="MYPASSWD"
|
|
||||||
|
|
||||||
LXC_AUTHORIZED_KEY="ssh-rsa xxxxxxxx"
|
|
||||||
|
|
||||||
############### Zamba-Server-Section ###############
|
|
||||||
|
|
||||||
# Domain Entries to samba/smb.conf. Will be also uses for samba domain-provisioning when zmb-pdc will choosen.
|
|
||||||
ZMB_REALM="ZMB.ROCKS"
|
|
||||||
ZMB_DOMAIN="ZMB"
|
|
||||||
|
|
||||||
# The Domain-Admin and password for zamba installation
|
|
||||||
ZMB_ADMIN_USER="Administrator"
|
|
||||||
ZMB_ADMIN_PASS="MYPASSWORD"
|
|
||||||
ZMB_DOMAIN_ADMINS_GROUP="domain admins"
|
|
||||||
|
|
||||||
# Name of the Zamba Share
|
|
||||||
ZMB_SHARE="share"
|
|
||||||
|
|
||||||
############### Mailpiler-Section ###############
|
|
||||||
|
|
||||||
# The FQDN vor the Hostname. This must be exactly the same like the LXC_HOSTNAME / LXC_DOMAIN at section above.
|
|
||||||
PILER_FQDN="piler.zmb.rocks"
|
|
||||||
PILER_SMARTHOST="10.10.80.20"
|
|
||||||
PILER_VERSION="1.3.10"
|
|
||||||
PILER_SPHINX_VERSION="3.3.1"
|
|
||||||
PILER_PHP_VERSION="7.4"
|
|
||||||
|
|
||||||
############### Matrix-Section ###############
|
|
||||||
|
|
||||||
# The FQDN vor the Hostname. This should be the same like the LXC_HOSTNAME / LXC_DOMAIN at section above.
|
|
||||||
MATRIX_FQDN="matrix.zmb.rocks"
|
|
||||||
MATRIX_ELEMENT_FQDN="element.zmb.rocks"
|
|
||||||
MATRIX_ELEMENT_VERSION="v1.7.24"
|
|
||||||
MATRIX_JITSI_FQDN="meet.zmb.rocks"
|
|
||||||
|
|
||||||
#################################
|
|
||||||
|
|
||||||
# CHeck is the newest template available, else download it.
|
# CHeck is the newest template available, else download it.
|
||||||
|
|
101
zamba.conf
Normal file
101
zamba.conf
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This ist the Zamba main configuration file.
|
||||||
|
# Please adjust the settings to your needs before running the installer.
|
||||||
|
|
||||||
|
# Authors:
|
||||||
|
# (C) 2021 Idea an concept by Christian Zengel <christian@sysops.de>
|
||||||
|
# (C) 2021 Script design and prototype by Markus Helmke <helmke@cloudistboese.de>
|
||||||
|
# (C) 2021 Script rework by Thorsten Spille <thorsten@spille-edv.de>
|
||||||
|
|
||||||
|
|
||||||
|
############### Linux Container Section ###############
|
||||||
|
|
||||||
|
# The storage, where your container tmeplates are located (in most cases: local)
|
||||||
|
LXC_TEMPLATE_STORAGE="local"
|
||||||
|
|
||||||
|
# Define the size and storage location of the container's root filesystem
|
||||||
|
LXC_ROOTFS_SIZE="100"
|
||||||
|
LXC_ROOTFS_STORAGE="local-zfs"
|
||||||
|
|
||||||
|
# Define the size, storage location and mountpoint of the container's shared filesystem (required for 'zmb_standalone' and 'zmb_member')
|
||||||
|
LXC_FILEFS_SIZE="100"
|
||||||
|
LXC_FILEFS_STORAGE="local-zfs"
|
||||||
|
LXC_FILEFS_MOUNTPOINT="tank"
|
||||||
|
|
||||||
|
# Define whether the container will be created in unprivileged (1) or privileged (0) mode
|
||||||
|
# For 'zmb_standalone', 'zmb_pdc', 'zmb_member' and 'mailpiler' the container needs to be created with 'unprivileged=0'
|
||||||
|
LXC_UNPRIVILEGED="1"
|
||||||
|
|
||||||
|
# Size of the RAM assigned to the container
|
||||||
|
LXC_MEM="1024"
|
||||||
|
|
||||||
|
# Size of the SWAP assigned to the container
|
||||||
|
LXC_SWAP="1024"
|
||||||
|
|
||||||
|
# The hostname (eg. zamba1 or mailpiler1)
|
||||||
|
LXC_HOSTNAME="zamba"
|
||||||
|
|
||||||
|
# The domain suffix (the domain name / search domain of th container, results to the FQDN 'LXC_HOTNAME.LXC_DOMAIN')
|
||||||
|
LXC_DOMAIN="zmb.rocks"
|
||||||
|
|
||||||
|
# IP-address and subnet
|
||||||
|
LXC_IP="10.10.80.20/24"
|
||||||
|
|
||||||
|
# Gateway
|
||||||
|
LXC_GW="10.10.80.10"
|
||||||
|
|
||||||
|
# DNS-server (should be your AD DC)
|
||||||
|
LXC_DNS="10.10.80.10"
|
||||||
|
|
||||||
|
# Networkbridge for this container
|
||||||
|
LXC_BRIDGE="vmbr80"
|
||||||
|
|
||||||
|
# Optional VLAN number for this container
|
||||||
|
LXC_VLAN=""
|
||||||
|
|
||||||
|
# root password - take care to delete from this file
|
||||||
|
LXC_PWD="MYPASSWD"
|
||||||
|
|
||||||
|
# SSH-Key to add to authorized_keys
|
||||||
|
LXC_AUTHORIZED_KEY="ssh-rsa xxxxxxxx"
|
||||||
|
|
||||||
|
# Define your favorite tools, you always want to have installed on your linux systems
|
||||||
|
LXC_TOOLSET="net-tools dnsutils mc"
|
||||||
|
|
||||||
|
############### Zamba-Server-Section ###############
|
||||||
|
|
||||||
|
# Domain Entries to samba/smb.conf. Will be also uses for samba domain-provisioning when zmb-pdc will choosen.
|
||||||
|
ZMB_REALM="ZMB.ROCKS"
|
||||||
|
ZMB_DOMAIN="ZMB"
|
||||||
|
|
||||||
|
# The Domain-Admin and password for zamba installation
|
||||||
|
ZMB_ADMIN_USER="Administrator"
|
||||||
|
ZMB_ADMIN_PASS="MYPASSWORD"
|
||||||
|
ZMB_DOMAIN_ADMINS_GROUP="domain admins"
|
||||||
|
|
||||||
|
# Name of the Zamba Share
|
||||||
|
ZMB_SHARE="share"
|
||||||
|
|
||||||
|
############### Mailpiler-Section ###############
|
||||||
|
|
||||||
|
# The FQDN vor the Hostname. This must be exactly the same like the LXC_HOSTNAME / LXC_DOMAIN at section above.
|
||||||
|
PILER_FQDN="piler.zmb.rocks"
|
||||||
|
PILER_SMARTHOST="10.10.80.20"
|
||||||
|
PILER_VERSION="1.3.10"
|
||||||
|
PILER_SPHINX_VERSION="3.3.1"
|
||||||
|
PILER_PHP_VERSION="7.4"
|
||||||
|
|
||||||
|
############### Matrix-Section ###############
|
||||||
|
|
||||||
|
# The FQDN vor the Hostname. This should be the same like the LXC_HOSTNAME / LXC_DOMAIN at section above.
|
||||||
|
MATRIX_FQDN="matrix.zmb.rocks"
|
||||||
|
|
||||||
|
# Virtual host to run the Element Web messenger
|
||||||
|
MATRIX_ELEMENT_FQDN="element.zmb.rocks"
|
||||||
|
|
||||||
|
# Element Web version
|
||||||
|
MATRIX_ELEMENT_VERSION="v1.7.24"
|
||||||
|
|
||||||
|
# Virtuel host to run the Jitsi Meet
|
||||||
|
MATRIX_JITSI_FQDN="meet.zmb.rocks"
|
Loading…
Reference in New Issue
Block a user