fix markdown
This commit is contained in:
parent
fecc1d77d4
commit
9febfe6af8
22
README.md
22
README.md
|
|
@ -18,6 +18,7 @@ https://github.com/hetznercloud/cli
|
||||||
|
|
||||||
Temporaer einen API Key erstellen (nachher wieder loeschen)
|
Temporaer einen API Key erstellen (nachher wieder loeschen)
|
||||||
|
|
||||||
|
```
|
||||||
$ hcloud context create mini-beieli-server
|
$ hcloud context create mini-beieli-server
|
||||||
$ hcloud image list # zeigt moegliche Images
|
$ hcloud image list # zeigt moegliche Images
|
||||||
$ hcloud server-type list # zeigt moegliche Typen
|
$ hcloud server-type list # zeigt moegliche Typen
|
||||||
|
|
@ -26,17 +27,22 @@ $ hcloud server create --name mb1 --image centos-8 --type cx11 --ssh-key joerg@c
|
||||||
$ hcloud server set-rdns mb1 --hostname mb1.nbit.ch
|
$ hcloud server set-rdns mb1 --hostname mb1.nbit.ch
|
||||||
$ IPV6="$(hcloud server ip mb1 -6)"
|
$ IPV6="$(hcloud server ip mb1 -6)"
|
||||||
$ hcloud server set-rdns mb1 --ip $IPV6 --hostname mb1.nbit.ch
|
$ hcloud server set-rdns mb1 --ip $IPV6 --hostname mb1.nbit.ch
|
||||||
|
```
|
||||||
|
|
||||||
DNS Eintraege erstellen:
|
DNS Eintraege erstellen:
|
||||||
|
```
|
||||||
$ hcloud server ip mb1
|
$ hcloud server ip mb1
|
||||||
$ hcloud server ip mb1 -6
|
$ hcloud server ip mb1 -6
|
||||||
|
```
|
||||||
|
|
||||||
Root-Passwort setzen (das machen wir von Hand)
|
Root-Passwort setzen (das machen wir von Hand)
|
||||||
|
|
||||||
## Ansible Playbook laufen lassen
|
## Ansible Playbook laufen lassen
|
||||||
|
|
||||||
|
```
|
||||||
$ cd ansible
|
$ cd ansible
|
||||||
$ ansible-playbook -i production mini-beieli-server.yml --limit mb1.mini-beieli.ch # or mb2.mini-beieli.ch
|
$ ansible-playbook -i production mini-beieli-server.yml --limit mb1.mini-beieli.ch # or mb2.mini-beieli.ch
|
||||||
|
```
|
||||||
|
|
||||||
Mailzugang muss auf mail.nbit.ch noch gegeben werden (main.cf)!
|
Mailzugang muss auf mail.nbit.ch noch gegeben werden (main.cf)!
|
||||||
|
|
||||||
|
|
@ -44,13 +50,13 @@ Mailzugang muss auf mail.nbit.ch noch gegeben werden (main.cf)!
|
||||||
|
|
||||||
Root-Passwort setzen (das machen wir von Hand)
|
Root-Passwort setzen (das machen wir von Hand)
|
||||||
|
|
||||||
`
|
```
|
||||||
# yum update
|
# yum update
|
||||||
`
|
```
|
||||||
|
|
||||||
### Let's Encrypt Zertifikat einrichten
|
### Let's Encrypt Zertifikat einrichten
|
||||||
|
|
||||||
`
|
```
|
||||||
# curl https://get.acme.sh | sh -s email=info@nbit.ch
|
# curl https://get.acme.sh | sh -s email=info@nbit.ch
|
||||||
# systemctl stop nginx
|
# systemctl stop nginx
|
||||||
# acme.sh --issue -d mini-beieli.ch -d www.mini-beieli.ch -w /home/appuser/wo-bisch-web --standalone
|
# acme.sh --issue -d mini-beieli.ch -d www.mini-beieli.ch -w /home/appuser/wo-bisch-web --standalone
|
||||||
|
|
@ -64,7 +70,7 @@ Root-Passwort setzen (das machen wir von Hand)
|
||||||
|
|
||||||
Install Certificate:
|
Install Certificate:
|
||||||
# acme.sh --install-cert -d mini-beieli.ch --key-file /etc/letsencrypt/mini-beieli.ch/mini-beieli.ch.key --fullchain-file /etc/letsencrypt/mini-beieli.ch/fullchain.cer --reloadcmd "service nginx force-reload"
|
# acme.sh --install-cert -d mini-beieli.ch --key-file /etc/letsencrypt/mini-beieli.ch/mini-beieli.ch.key --fullchain-file /etc/letsencrypt/mini-beieli.ch/fullchain.cer --reloadcmd "service nginx force-reload"
|
||||||
`
|
```
|
||||||
|
|
||||||
### Influxdb Users
|
### Influxdb Users
|
||||||
|
|
||||||
|
|
@ -88,14 +94,18 @@ RO-Token:
|
||||||
|
|
||||||
Backup/Restore Tool fuer Redis von https://github.com/yannh/redis-dump-go
|
Backup/Restore Tool fuer Redis von https://github.com/yannh/redis-dump-go
|
||||||
|
|
||||||
`
|
```
|
||||||
# cd /var/tmp && wget https://github.com/yannh/redis-dump-go/releases/download/v0.4.1/redis-dump-go-linux-amd64.tar.gz
|
# cd /var/tmp && wget https://github.com/yannh/redis-dump-go/releases/download/v0.4.1/redis-dump-go-linux-amd64.tar.gz
|
||||||
# tar xzvf redis-dump-go-linux-amd64.tar.gz
|
# tar xzvf redis-dump-go-linux-amd64.tar.gz
|
||||||
# cp redis-dump-go /usr/local/bin
|
# cp redis-dump-go /usr/local/bin
|
||||||
|
```
|
||||||
|
|
||||||
Zum Backup:
|
Zum Backup:
|
||||||
|
```
|
||||||
$ redis-dump-go -output commands >redis-backup-$(date +%Y%m%W).out
|
$ redis-dump-go -output commands >redis-backup-$(date +%Y%m%W).out
|
||||||
|
```
|
||||||
|
|
||||||
Zum Restore:
|
Zum Restore:
|
||||||
|
```
|
||||||
$ redis-cli --pipe < redis-backup.out
|
$ redis-cli --pipe < redis-backup.out
|
||||||
`
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue