Added elkarbackup CT

This commit is contained in:
2021-11-18 16:08:24 +00:00
parent f1a507cfa1
commit c043c4825c
23 changed files with 377 additions and 4 deletions

View File

@@ -18,6 +18,7 @@ This can be done on a Minimal debian CT (make sure to enable nesting) on the new
|------|:------:|:-----------:|
| minimal | All | Minimal installed packages |
| default | All | ssh-server and nano packages |
| elkarbackup(ALP/DEB) | ALL | ElkarBackup rsyncsnapshot server |
| jenkins | Debian | Jenkins server |
| jenkinsBuilder | Debian | Basic node for Jenkins |
| imgbuilder | Debian | LXC template builder node for Jenkins |
@@ -73,6 +74,7 @@ This can be done on a Minimal debian CT (make sure to enable nesting) on the new
# Container Setup
## imgbuilder
**This container should be set up as privileged**
1. Enable features: Fuse, Nesting and 'Create Device Nodes'
@@ -82,6 +84,7 @@ This can be done on a Minimal debian CT (make sure to enable nesting) on the new
5. Create folders on mountpoint using `mkdir /LXCBuild/template/cache`
6. Set permissions on the folder `chmod o+w -R /LXCBuild`
7. Write down the ip of this server (for use in the jenkins container)
## jenkins
1. In the container configure the setup script `nano /opt/Setup/Scripts/FirstRun.sh`
2. In the container run the setup script `bash /opt/Setup/Scripts/FirstRun.sh`
@@ -93,31 +96,42 @@ Under Credentials click 'Add', enter 'jenkins' as username, and set the password
Then select the created credential and click save
7. Click 'Relaunch agent'
8. Now you can build container images
## mysql
* To configure the MySQL root password in the container run the setup script `bash /opt/Setup/Scripts/FirstRun.sh`
## gitea
1. Edit the parameters in the FistRun script in the container `vi /opt/Setup/Scripts/FirstRun.sh`
2. Run the FistRun script in the container `ash /opt/Setup/Scripts/FirstRun.sh`
## nginx
* Run the FistRun script in the container `ash /opt/Setup/Scripts/FirstRun.sh`
## pihole
* Run the FistRun script in the container `ash /opt/Setup/Scripts/FirstRun.sh`
## colabora
* Update the configuration in /etc/loolwsd/loolwsd.xml and reload the service `systemctl restart loolwsd`
## jellyfin
* To set-up the system follow the initial set-up wizard on http://`<ip>`:8096
## domoticz
* Available on http://`<ip>`:8080
## transfersh
* Available on http://`<ip>`:8080
## omadaV3
* To set-up the system follow the initial set-up wizard on http://`<ip>`:8088
## docker
* Run the FistRun script in the container `ash /opt/Setup/Scripts/FirstRun.sh`
This container can be set up in two ways
1. As controller with portainer
2. As remote with docker tcp on port 2375
3. BONUS if FistRun script is skipped the CT has clean docker
## iscsi
### In Proxmox
* Run following commands
@@ -206,6 +220,13 @@ lxc.mount.entry: /dev/ttyACM-Zwave dev/ttyACM-Zwave none bind,optional,create=fi
* Info html page available on http://`<ip>`:80
* Add user/storage space by running `ash /opt/AddMailBox.sh`
## elkarbackup
1. Edit the parameters in the FistRun script in the container `vi /opt/Setup/Scripts/FirstRun.sh`
2. Run the FistRun script in the container `ash /opt/Setup/Scripts/FirstRun.sh`
3. Available on http://`<ip>` (Default username/password: root/root
4. Click cogwheel/settings icon > Manage backup locations >New (make sure to create this directory and set ngix as the owner)
5. Add a retention policy under the `Policies` tab
# Further CT documentation
## iscsi
@@ -219,7 +240,6 @@ create <client-iqn>
exit
```
### Add Drive
#### In Proxmox
* Create LVM Volume (Available @ /dev/`<poolName>`/`<VolumeName>`)