PUPPET » Historique » Version 1
Mehdi Abaakouk, 02/01/2012 16:14
1 | 1 | Mehdi Abaakouk | h1. PUPPET |
---|---|---|---|
2 | 1 | Mehdi Abaakouk | |
3 | 1 | Mehdi Abaakouk | h2. Ajout d'une machine: |
4 | 1 | Mehdi Abaakouk | |
5 | 1 | Mehdi Abaakouk | Sur le client: |
6 | 1 | Mehdi Abaakouk | |
7 | 1 | Mehdi Abaakouk | <pre> |
8 | 1 | Mehdi Abaakouk | $ apt-get install puppet |
9 | 1 | Mehdi Abaakouk | </pre> |
10 | 1 | Mehdi Abaakouk | |
11 | 1 | Mehdi Abaakouk | dans /etc/default/puppet mettre: |
12 | 1 | Mehdi Abaakouk | <pre> |
13 | 1 | Mehdi Abaakouk | START=yes |
14 | 1 | Mehdi Abaakouk | </pre> |
15 | 1 | Mehdi Abaakouk | |
16 | 1 | Mehdi Abaakouk | et dans /etc/puppet/puppet.conf ajouter: |
17 | 1 | Mehdi Abaakouk | <pre> |
18 | 1 | Mehdi Abaakouk | [agent] |
19 | 1 | Mehdi Abaakouk | server=puppet.tetaneutral.net |
20 | 1 | Mehdi Abaakouk | </pre> |
21 | 1 | Mehdi Abaakouk | |
22 | 1 | Mehdi Abaakouk | Ensuite ajouter la machine dans le puppet master, MOUAHAHA: |
23 | 1 | Mehdi Abaakouk | Sur le client: |
24 | 1 | Mehdi Abaakouk | <pre> |
25 | 1 | Mehdi Abaakouk | $ puppet agent --test |
26 | 1 | Mehdi Abaakouk | warning: peer certificate won't be verified in this SSL session |
27 | 1 | Mehdi Abaakouk | warning: peer certificate won't be verified in this SSL session |
28 | 1 | Mehdi Abaakouk | warning: peer certificate won't be verified in this SSL session |
29 | 1 | Mehdi Abaakouk | Exiting; no certificate found and waitforcert is disabled |
30 | 1 | Mehdi Abaakouk | </pre> |
31 | 1 | Mehdi Abaakouk | |
32 | 1 | Mehdi Abaakouk | Sur le serveur: |
33 | 1 | Mehdi Abaakouk | <pre> |
34 | 1 | Mehdi Abaakouk | $ puppetca --list |
35 | 1 | Mehdi Abaakouk | www.tetaneutral.net |
36 | 1 | Mehdi Abaakouk | |
37 | 1 | Mehdi Abaakouk | $ puppetca --sign --all |
38 | 1 | Mehdi Abaakouk | notice: Signed certificate request for www.tetaneutral.net |
39 | 1 | Mehdi Abaakouk | notice: Removing file Puppet::SSL::CertificateRequest www.tetaneutral.net at '/var/lib/puppet/ssl/ca/requests/www.tetaneutral.net.pem' |
40 | 1 | Mehdi Abaakouk | </pre> |
41 | 1 | Mehdi Abaakouk | |
42 | 1 | Mehdi Abaakouk | Sur le client: |
43 | 1 | Mehdi Abaakouk | <pre> |
44 | 1 | Mehdi Abaakouk | $ puppet agent --test |
45 | 1 | Mehdi Abaakouk | warning: peer certificate won't be verified in this SSL session |
46 | 1 | Mehdi Abaakouk | info: Caching certificate for www.tetaneutral.net |
47 | 1 | Mehdi Abaakouk | info: Caching certificate_revocation_list for ca |
48 | 1 | Mehdi Abaakouk | info: Caching catalog for www.tetaneutral.net |
49 | 1 | Mehdi Abaakouk | info: Applying configuration version '1325516709' |
50 | 1 | Mehdi Abaakouk | info: Creating state file /var/lib/puppet/state/state.yaml |
51 | 1 | Mehdi Abaakouk | notice: Finished catalog run in 0.01 seconds |
52 | 1 | Mehdi Abaakouk | </pre> |
53 | 1 | Mehdi Abaakouk | |
54 | 1 | Mehdi Abaakouk | |
55 | 1 | Mehdi Abaakouk | |
56 | 1 | Mehdi Abaakouk | h2. Installation |
57 | 1 | Mehdi Abaakouk | |
58 | 1 | Mehdi Abaakouk | Installation du paquet: |
59 | 1 | Mehdi Abaakouk | <pre> |
60 | 1 | Mehdi Abaakouk | $ apt-get install puppetmaster |
61 | 1 | Mehdi Abaakouk | </pre> |
62 | 1 | Mehdi Abaakouk | |
63 | 1 | Mehdi Abaakouk | |
64 | 1 | Mehdi Abaakouk | Dans /etc/puppet/puppet.conf mettre le nom du serveur puppetmaster: |
65 | 1 | Mehdi Abaakouk | <pre> |
66 | 1 | Mehdi Abaakouk | [master] |
67 | 1 | Mehdi Abaakouk | certname=puppet.tetaneutral.net |
68 | 1 | Mehdi Abaakouk | </pre> |
69 | 1 | Mehdi Abaakouk | |
70 | 1 | Mehdi Abaakouk | Dans /etc/puppet/fileserver.conf configurer les autorisations: |
71 | 1 | Mehdi Abaakouk | <pre> |
72 | 1 | Mehdi Abaakouk | [files] |
73 | 1 | Mehdi Abaakouk | path /etc/puppet/files |
74 | 1 | Mehdi Abaakouk | allow 91.224.149.0/24 |
75 | 1 | Mehdi Abaakouk | allow 91.224.148.0/24 |
76 | 1 | Mehdi Abaakouk | </pre> |