Let's remove any old versions of Docker if they exist:
sudo yum remove docker \
docker-common \
docker-selinux \
docker-engine
An example to create 2 docker containers with pihole in the Container-Station on a QNAP NAS | |
Details about the environment variables in the pihole docker image can be found here: | |
https://github.com/pi-hole/docker-pi-hole#environment-variables | |
Details about the qnet network driver can be found here: | |
https://qnap-dev.github.io/container-station-api/qnet.html#docker-compose |
#!/bin/bash | |
# Proof of concept of running playbooks in AWX and recording them in ARA | |
# From a vanilla CentOS8 image: https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-GenericCloud-8.1.1911-20200113.3.x86_64.qcow2 | |
# Add local bin directory to PATH so we can use things installed with "pip install --user" | |
export PATH=$PATH:~/.local/bin | |
dnf -y update | |
# Install Ansible and Python3 |
Copy this formula into an Excel cell to generate a random 9-character password. Then | |
Copy & Paste Special (as value) in place in order to avoid the cell being continuosly | |
re-evaluated. Formula taken from: | |
http://ficility.net/2013/04/26/easy-excel-based-password-generator/. | |
=CHAR(RANDBETWEEN(65;90))&CHAR(RANDBETWEEN(97;122))&CHAR(RANDBETWEEN(97;122))&CHAR(RANDBETWEEN(65;90))&RANDBETWEEN(1000;9999)&CHAR(RANDBETWEEN(42;43)) | |
>>> If it does not work, try like this (commas instead of semicolons): | |
=CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(97,122))&CHAR(RANDBETWEEN(97,122))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(1000,9999)&CHAR(RANDBETWEEN(42,43)) |
sudo apt-get install debian-archive-keyring | |
sudo sh -c "echo 'deb http://deb.debian.org/debian buster-backports main' >> /etc/apt/sources.list" | |
sudo apt-get update | |
sudo apt-get -y -t buster-backports install libseccomp2 | |
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list" | |
wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/Debian_10/Release.key -O Release.key | |
sudo apt-key add - < Release.key | |
sudo apt-get update -qq | |
sudo apt-get -qq -y install podman | |
sudo mkdir -p /etc/containers |
$ wget https://github.com/grafana/loki/releases/download/v2.4.1/promtail-linux-amd64.zip | |
$ unzip promtail-linux-amd64.zip | |
$ mv promtail-linux-amd64 /usr/local/bin/ | |
$ ln -s /usr/local/bin/promtail-linux-amd64 /usr/local/bin/promtail | |
$ useradd --system promtail | |
$ gpasswd -a promtail adm | |
$ nano /etc/systemd/system/promtail.service | |
$ systemctl daemon-reload | |
$ systemctl start promtail.service |
ansible -i [inventory] -m shell -a 'fdisk -l' --become -K -l [host|group] all | |
### APT | |
## Update all packages | |
$ ansible -m apt -a 'upgrade=yes update_cache=yes cache_valid_time=86400 force_apt_get=yes' --become -K -l [host|group] all |
#!/bin/bash | |
RANCHERENDPOINT=https://your_rancher_endpoint/v3 | |
# The name of the cluster where the user needs to be added | |
CLUSTERNAME=your_cluster_name | |
# Username, password and realname of the user | |
USERNAME=username | |
PASSWORD=password | |
REALNAME=myrealname | |
# Role of the user | |
GLOBALROLE=user |
ISPConfig Migration | |
==================== | |
Danke: http://i-dyllen.dk/wordpress/?p=244 | |
Vorbereitungen: | |
- Aktualisieren den alten Server auf die neueste Version von ISPConfig 3 | |
- Installiere den neuen Server mit der neuesten Version von ISPConfig 3 | |
(gleiche Pakete wie die Ursprungsserver und dieselben speziellen Konfigurationen von Apache Modulen etc.) | |
- apt-get install rsync (auf beiden Systemen) |