Correction : {host,local,remote}/ : duplicity + MySQL.
[lhc/ateliers.git] / README
1 DESCRIPTION:
2 ce fichier donne une idée des commandes à effectuer
3 pour effectuer diverses tâches.
4 ATTENTION:
5 il peut y avoir des oublis ;
6 ne pas hésiter donc à bien relire les règles
7 _avant_ de les exécuter.
8 NOTE:
9 à priori les commandes sont idempotentes,
10 i.e. pensées pour être exécutées plusieurs fois
11 selon les erreurs que l'on rencontre
12 ou les modifications que l'on y apporte.
13
14 TASK: obtenir une installation chrootable
15 @host % export TRACE=1
16 @host % ~/tool/ateliers/host/disk-mount
17 @host % ~/tool/ateliers/host/disk-format
18 @host % ~/tool/ateliers/host/part-lvm-format
19 @host % ~/tool/ateliers/host/part-root-format
20 @host % ~/tool/ateliers/host/part-boot-format
21 @host % ~/tool/ateliers/host/part-swap-format
22 @host % ~/tool/ateliers/host/part-var-format
23 @host % ~/tool/ateliers/host/part-home-format
24 @host % ~/tool/ateliers/host/debootstrap
25 @host % ~/tool/ateliers/host/disk-umount
26 TASK: obtenir une installation démarable
27 @host % ~/tool/ateliers/host/chroot
28 @host % export TRACE=1 LANG=C LC_CTYPE=C
29 @host % /root/tool/ateliers/local/init # TODO: revoir ça
30 @host % exit
31 TASK: initialiser la VM
32 @host % ~/tool/ateliers/xen-vm-configure
33 @host % ~/tool/ateliers/xen-vm-start
34 @local % local/user-configure
35 TASK: démarrer la VM
36 @host % host/xen-vm-start
37 TASK: ajouter un-e administrateurice $user
38 @remote % cp .../id_rsa var/pub/ssh/$user.key
39 @remote % gpg --armor --export --export-options export-clean >var/pub/openpgp/$user.key
40 @remote % git add var/pub/{openpgp,ssh}/$user.key
41 @remote % git commit -a -m "Ajout : admin : $user ."
42 @remote % remote/git-push
43 @local % local/git-reset
44 @local % local/user-admin-add $user
45 TASK: démarrer la VM
46 @host % host/xen-vm-start
47 @remote % remote/luks-key-disk-send
48 TASK: pousser des changements locaux sur la VM
49 @remote % remote/git-push -f local
50 TASK: se connecter interactivement en root à la VM avec une connection SSH persistante
51 @remote % remote/mosh -l root
52 TASK: générer une autorité de certification et des sous-certificats TLS
53 % export TRACE=all
54 % random=/dev/urandom gpg_options="-r $USER@ -r $SOME_OTHER_USER@" lib/tool/openssl/make etc/openssl/heureux-cyclage.org
55 % random=/dev/urandom gpg_options="-r $USER@ -r $SOME_OTHER_USER@" lib/tool/openssl/make etc/openssl/*.heureux-cyclage.org
56 % lib/tool/openssl/check etc/openssl/*
57 TASK: gérer gitolite
58 % cd etc/gitolite
59 % vim conf/gitolite.conf
60 % git commit
61 % ../../remote/gitolite-push
62 TASK: configurer une zone DNS
63 @local % local/runit-configure nsd3 -- heureux-cyclage.org
64 TASK: configurer un membre du groupe php5-fpm
65 @remote % remote/runit-configure nginx -- lhc_www
66 @local % local/runit-configure nginx -- lhc_www
67 TASK: configurer un site nginx
68 @local % local/runit-configure nginx -- lhc_www