https://wiki.kogite.fr/index.php?title=Puppet_:_utilisation&feed=atom&action=history
Puppet : utilisation - Historique des versions
2024-03-29T08:51:36Z
Historique des versions pour cette page sur le wiki
MediaWiki 1.30.0
https://wiki.kogite.fr/index.php?title=Puppet_:_utilisation&diff=5424&oldid=prev
Frank le 19 octobre 2012 à 14:48
2012-10-19T14:48:17Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr style="vertical-align: top;" lang="fr">
<td colspan="2" style="background-color: white; color:black; text-align: center;">← Version précédente</td>
<td colspan="2" style="background-color: white; color:black; text-align: center;">Version du 19 octobre 2012 à 14:48</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l30" >Ligne 30 :</td>
<td colspan="2" class="diff-lineno">Ligne 30 :</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  puppetd -t -v</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  puppetd -t -v</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">== TIPS ==</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Voir toutes les données que Puppet peut extraire sur un client, format clé => valeur</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> facter</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">On peut filtrer avec une clé précise. Exemple :</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> facter lsbdistid</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>'''Précédent : [[Puppet : installation]]</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>'''Précédent : [[Puppet : installation]]</div></td></tr>
</table>
Frank
https://wiki.kogite.fr/index.php?title=Puppet_:_utilisation&diff=5418&oldid=prev
Frank le 19 octobre 2012 à 14:04
2012-10-19T14:04:35Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr style="vertical-align: top;" lang="fr">
<td colspan="2" style="background-color: white; color:black; text-align: center;">← Version précédente</td>
<td colspan="2" style="background-color: white; color:black; text-align: center;">Version du 19 octobre 2012 à 14:04</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l29" >Ligne 29 :</td>
<td colspan="2" class="diff-lineno">Ligne 29 :</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Et on relance puppet sur le client pour vérifier que le fichier se crée</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Et on relance puppet sur le client pour vérifier que le fichier se crée</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  puppetd -t -v</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  puppetd -t -v</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">'''Précédent : [[Puppet : installation]]</ins></div></td></tr>
</table>
Frank
https://wiki.kogite.fr/index.php?title=Puppet_:_utilisation&diff=5415&oldid=prev
Frank : Page créée avec « == Utilisation == Créer les fichiers de configuration nécessaires sur le serveur : /etc/puppet/manifests/site.pp filebucket { 'main': server => '<NOM COMPLET SERVEUR PUPPE... »
2012-10-19T14:02:38Z
<p>Page créée avec « == Utilisation == Créer les fichiers de configuration nécessaires sur le serveur : /etc/puppet/manifests/site.pp filebucket { 'main': server => '<NOM COMPLET SERVEUR PUPPE... »</p>
<p><b>Nouvelle page</b></p><div>== Utilisation ==<br />
Créer les fichiers de configuration nécessaires sur le serveur :<br />
/etc/puppet/manifests/site.pp<br />
filebucket { 'main': server => '<NOM COMPLET SERVEUR PUPPET' }<br />
File { backup => 'main' }<br />
import "node"<br />
<br />
/etc/puppet/manifests/node.pp<br />
node 'client1' {<br />
include dummy<br />
}<br />
"dummy" représente un module qu'on va créer :<br />
mkdir -p /etc/puppet/modules/dummy/manifests<br />
mkdir -p /etc/puppet/modules/dummy/files<br />
Dans le répertoire files, on place un fichier "puppet.txt" pour nos tests. Ensuite créer /etc/puppet/modules/dummy/manifests/init.pp :<br />
class dummy {<br />
file { "/etc/puppet.txt":<br />
owner => root,<br />
group => root,<br />
mode => 644,<br />
source => "puppet:///dummy/puppet.txt"<br />
}<br />
}<br />
Ce module va simplement vérifier sur le client l'existence du fichier /etc/puppet.txt, avec les bons droits, et le charger à partir du serveur si nécessaire.<br />
<br />
On prend en compte cette nouvelle configuration :<br />
service puppetmaster restart<br />
<br />
Et on relance puppet sur le client pour vérifier que le fichier se crée<br />
puppetd -t -v</div>
Frank