Modification : $vm_ -> $local_ .
[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 règles sont pensées pour être exécutées
10 plusieurs fois selon les erreurs que l'on rencontre
11 ou les modifications que l'on y apporte.
12
13 TASK: obtenir une installation chrootable
14 @host % export TRACE=1
15 @host % ~/tool/ateliers/host/disk-mount
16 @host % ~/tool/ateliers/host/disk-format
17 @host % ~/tool/ateliers/host/part-lvm-format
18 @host % ~/tool/ateliers/host/part-root-format
19 @host % ~/tool/ateliers/host/part-boot-format
20 @host % ~/tool/ateliers/host/part-swap-format
21 @host % ~/tool/ateliers/host/part-var-format
22 @host % ~/tool/ateliers/host/part-home-format
23 @host % ~/tool/ateliers/host/debootstrap
24 @host % ~/tool/ateliers/host/disk-umount
25 TASK: obtenir une installation démarable
26 @host % ~/tool/ateliers/host/chroot
27 @host % export TRACE=1 LANG=C LC_CTYPE=C
28 @host % /root/tool/vm/local/init # TODO: revoir ça
29 @host % exit
30 TASK: initialiser la VM
31 @host % ~/tool/ateliers/xen-vm-configure
32 @host % ~/tool/ateliers/xen-vm-start
33 @local % local/user-configure
34 TASK: démarrer la VM
35 @host % host/xen-vm-start
36 TASK: ajouter un-e administrateurice $user
37 @remote % cp .../id_rsa var/pub/ssh/$user.key
38 @remote % gpg --armor --export --export-options export-clean >var/pub/openpgp/$user.key
39 @remote % git add var/pub/{openpgp,ssh}/$user.key
40 @remote % git commit -a -m "Ajout : admin : $user ."
41 @remote % remote/git-push
42 @local % local/git-reset
43 @local % local/user-admin-add $user
44 TASK: démarrer la VM
45 @host % host/xen-vm-start
46 @remote % remote/luks-key-disk-send
47 TASK: pousser des changements locaux sur la VM
48 @remote % remote/git-push
49 @local % local/git-reset
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