Documentation : README : rule_user_admin_add .
[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/vm_host disk_mount
16 @host % ~/tool/ateliers/vm_host disk_format
17 @host % ~/tool/ateliers/vm_host part_lvm_format
18 @host % ~/tool/ateliers/vm_host part_root_format
19 @host % ~/tool/ateliers/vm_host part_boot_format
20 @host % ~/tool/ateliers/vm_host part_swap_format
21 @host % ~/tool/ateliers/vm_host part_var_format
22 @host % ~/tool/ateliers/vm_host part_home_format
23 @host % ~/tool/ateliers/vm_host debian_install
24 @host % ~/tool/ateliers/vm_host disk_umount
25 TASK: obtenir une installation démarable
26 @host % ~/tool/ateliers/vm_host chroot
27 @host % export TRACE=1 LANG=C LC_CTYPE=C
28 @host % /root/tool/vm/vm_hosted init
29 @host % exit
30 TASK: initialiser la VM
31 @host % ~/tool/ateliers/vm_host vm_init
32 @host % ~/tool/ateliers/vm_host vm_start
33 @hosted % vm_hosted user_init
34 TASK: démarrer la VM
35 @host % vm_host 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 % ./vm_remote git_push
42 @hosted % vm_hosted git_reset
43 @hosted % vm_hosted user_admin_add $user
44 TASK: démarrer la VM
45 @host % vm_host vm_start
46 @remote % ./vm_remote key_disk_send
47 TASK: pousser des changements locaux sur la VM
48 @remote % ./vm_remote push hosted
49 @hosted % vm_hosted git_reset
50 TASK: se connecter interactivement en root à la VM avec une connection SSH persistante
51 @remote % ./vm_remote mosh -l root