b974336c1d2ae70d9502c3eb22c3778cf1b82c32
[stratum0-wiki.git] / Theodem.mw
1 {{Hardware
2 |kontakt=[[Benutzer:Kasalehlia|Kasalehlia]], [[Benutzer:Daniel Bohrer|Daniel Bohrer]], [[Benutzer:chrissi^|chrissi^]]
3 |status=working
4 |ort=[[endor]]
5 |beschreibung=VM für [[Vorstand]]sfoo
6 |links=
7 }}
8
9 == SSH-Keys ==
10
11 -----BEGIN PGP SIGNED MESSAGE-----
12 Hash: SHA512
13
14 $ for i in /etc/ssh/ssh_host_*.pub; do ssh-keygen -lf $i; done
15 1024 ea:74:1e:22:63:7e:48:29:eb:60:c7:0c:2f:3c:56:60 /etc/ssh/ssh_host_dsa_key.pub (DSA)
16 256 ad:de:1a:1f:2b:8f:e4:5c:cb:72:0a:e2:f3:48:73:b1 /etc/ssh/ssh_host_ecdsa_key.pub (ECDSA)
17 256 2e:f0:ac:eb:83:6d:5c:5a:20:8f:8f:16:7a:8a:e9:13 /etc/ssh/ssh_host_ed25519_key.pub (ED25519)
18 2048 a3:28:ca:9f:9a:f5:ee:b7:5e:13:7a:9d:35:db:94:ca /etc/ssh/ssh_host_rsa_key.pub (RSA)
19 -----BEGIN PGP SIGNATURE-----
20 Version: GnuPG v2
21
22 iQIcBAEBCgAGBQJXeHGPAAoJELJBPGbdLD/qO2QP/1ATa80NxMB5CHzpyWBq3tqV
23 zZYMAH2Hx1CQWZDQ/ATTfzt4duGL9REOVlkWIjsYlIEKgCSWT5vv9fuuDJIbKjfj
24 otPgB7SHZ5J9O4HtduneKNxWFb2VQvZiW7GD0Rrps2WD7PHtHmF2BjjkemWwkL1a
25 9AdpxxHfUB8Jr+06ciIe/z94mFlCPpr4phe1HW5WvPP/AlrIf+GYVCZL3J3FIcxh
26 HUGcykabjAoYhW6LDKL8ovVJkn8tf38D3LUJv7fePOGb9SFk/xf6JO30mveIRChz
27 pMUhyqPg6/qlZ4itxzFAzYs61hovK8PnD6eBk87PtJS2GE5jWnMmyO2y2xmQpGQH
28 c10Zq477R6useUDjc7xq/R6Ays5wM6extw8KA5UrQRikifA0yS0MdVnlqWbTufYj
29 9mlV0BBGPYN/zA55ui/mp2cDA9ph5/m+ZM5AC3mh8jxYMTWPEUBhCAK4UWfYjDy3
30 W6aX/WxV+hcQAivG1K97Skd3DIdSsokCVFoYrJMJ8SvVmI3kTTZL5AwcmW4A1s8A
31 fW5Oq2kIc5h6indDyy8tgN3dQodMWl5Nd5okEomCaIiT4YFMP65k5rZMLA8PE9Fv
32 JVYo/6IA7M+8qs5/hMVAbSNqZnm1CntgKNmSM2T8OWlyNyuxzb1AR2lM2CdIcrFf
33 tsFJqwX82h1NsOre6Lec
34 =OiC3
35 -----END PGP SIGNATURE-----
36
37 == Doku ==
38 * Debian jessie, systemd
39 * 512 MB RAM
40 * 6 GB Platte
41 * 2 CPU-Kerne
42 * Netzwerk intern, per DHCP
43
44 * gitolite3 in <tt>/var/lib/gitolite3/</tt>, user <tt>git</tt>
45 * <tt>s0v-finanzen</tt>-Repo:
46 ** <s>Git-Hooks im Admin-Repo: siehe http://gitolite.com/gitolite/gitolite.html#hooks</s>
47 ** s0v-finanzen-Hook-Scripte sind in <tt>/var/lib/gitolite3/scripts</tt>
48 ** Hook ist manuell im Repository angelegt
49 ** TODO: Nightly-Tests integrieren
50 * SSH via Port-Forwarding von [[gandolf]], Port 2222
51 * Alle Dateien in <tt>/var/www/html</tt> werden auf [[regolas]] gesynct, sobald die Datei <tt>/var/www/html/.dirty</tt> angelegt wird (z.B. durch Ausführen von <tt>/usr/local/bin/regolas-rsync</tt>, was auch stündlich als Cronjob geschieht). Die Dateien sind damit unter https://data.stratum0.org erreichbar.
52
53 === Skripte etc ===
54 /home/regolas-rsync/bin/regolas-rsync:
55 #!/bin/sh
56 rsync \
57 --recursive --delete --stats \
58 --chmod=D2755,F644 \
59 --exclude='.*' \
60 /var/www/html/ theodem-rsync@regolas:/var/www/data.stratum0.org/ | \
61 sed 's/^/regolas-rsync: /'
62
63 /etc/systemd/system/regolas-rsync.service:
64 [Unit]
65 Description=rsync everything from /var/www/html to regolas
66 Requires=network.target
67
68 [Service]
69 User=regolas-rsync
70 Group=www-data
71 ExecStart=/bin/sh -c ' \
72 while true; do \
73 if [ -r /var/www/html/.dirty ]; then \
74 /home/regolas-rsync/bin/regolas-rsync; \
75 rm -f /var/www/html/.dirty; \
76 fi; \
77 sleep 1; \
78 done'
79 Restart=always
80
81 [Install]
82 WantedBy=multi-user.target
83
84
85
86 [[Kategorie:Virtuelle Maschine]]
87 [[Kategorie:Infrastruktur]]
This page took 0.048234 seconds and 3 git commands to generate.