Projet

Général

Profil

Actions

Demande #1080

fermé

ajout des backups harmine sur puppet

Ajouté par Loïc Dachary il y a plus de 11 ans. Mis à jour il y a environ 5 ans.

Statut:
Fermé
Priorité:
Immédiate
Assigné à:
Catégorie:
Task
Version cible:
Début:
06/12/2012
Echéance:
% réalisé:

100%

Temps estimé:
Temps passé:
Difficulté:
2 Facile

Description

ajouter ce qu'il faut dans source:puppetmaster pour qu'un host s'enregistre aupres de backuppc lorsqu'il est créé
backuppc


Fichiers

backuppc.png (8,36 ko) backuppc.png backuppc Loïc Dachary, 10/12/2012 16:15

Mis à jour par Loïc Dachary il y a plus de 11 ans

sp4rky utilise un dérivé de https://github.com/DavidS/puppet-backuppc/blob/master/manifests/init.pp
rodo utilise un module custom

Mis à jour par Loïc Dachary il y a plus de 11 ans

(10:50:04 AM) dachary: je me demandais si tu pouvais me raconter l'histoire de  /usr/local/bin/validate-sudo ou si tu ne sais pas ce que c'est ;-)
(10:50:06 AM) raceme: dachary: le validate-sudo c'est du rv2 en fait, perso je fais en root :)
(10:50:42 AM) dachary: je ne vais pas summon rv2
(10:50:58 AM) raceme: dachary: je crois que c'est pour ne pas faire du ssh en root et passer le rsync à travers du sudo... Enfin à partir du moment où le compte peut faire sudo et écrire n'importe où en root je ne vois pas trop l'intérêt

Mis à jour par Loïc Dachary il y a plus de 11 ans

http://exchange.nagios.org/directory/Plugins/Backup-and-Recovery/BackupPC/check_backuppc_shares/details
est plus moderne mais traite de cas plus complexes ( subshares ) et n'a pas de tests associés

Mis à jour par Loïc Dachary il y a plus de 11 ans

what about using check-mk instead of nrpe to run the backuppc nagios plugin
https://github.com/jthornhill/puppet-checkmk/tree/master/manifests

Mis à jour par Loïc Dachary il y a plus de 11 ans

root@nagios:~# dpkg -S /usr/lib/nagios/plugins/check_backuppc
nagios-plugins-contrib: /usr/lib/nagios/plugins/check_backuppc

Mis à jour par Loïc Dachary il y a plus de 11 ans

root@harmine:/etc# puppet agent -vt --fqdn harmine.pavot.vm.april-int
info: Retrieving plugin
info: Loading facts in puppet_vardir
info: Loading facts in concat_basedir
info: Loading facts in pe_version
info: Loading facts in root_home
info: Loading facts in puppet_vardir
info: Loading facts in concat_basedir
info: Loading facts in pe_version
info: Loading facts in root_home
info: Caching catalog for harmine.pavot.vm.april-int
info: Applying configuration version '1355148767'
notice: /Stage[main]//Node[harmine.pavot.vm.april-int]/Package[nagios-nrpe-server]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]//Node[harmine.pavot.vm.april-int]/File[/etc/nagios/nrpe.d/backuppc.cfg]/ensure: created
info: /Stage[main]//Node[harmine.pavot.vm.april-int]/File[/etc/nagios/nrpe.d/backuppc.cfg]: Scheduling refresh of Service[nagios-nrpe-server]
notice: /Stage[main]/Backuppc::Server/File[/var/lib/backuppc/.ssh/abackup]/ensure: defined content as '{md5}007548ad56ddaea2dbc410bccfcdfad5'
notice: /Stage[main]//Node[harmine.pavot.vm.april-int]/Service[nagios-nrpe-server]/ensure: ensure changed 'stopped' to 'running'
notice: /Stage[main]//Node[harmine.pavot.vm.april-int]/Service[nagios-nrpe-server]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Backuppc::Server/File_line[backuppc_host_nagios.vm.april-int]/ensure: created
info: /Stage[main]/Backuppc::Server/File_line[backuppc_host_nagios.vm.april-int]: Scheduling refresh of Service[backuppc]
notice: /Stage[main]/Backuppc::Server/Service[backuppc]: Triggered 'refresh' from 1 events
--- /etc/vim/vimrc.local    2012-12-04 02:08:55.000000000 +0100
+++ /tmp/puppet-file20121210-14168-8to8np-0    2012-12-10 15:28:19.853038848 +0100
@@ -1,6 +1,6 @@
 " 
 " DO NOT CHANGE : IT WILL BE OVERRIDEN BY PUPPET ON THE NEXT RUN
-" GENERATED FROM puppet.vm.april-int:/etc/puppet/files/vimrc.local
+" GENERATED FROM puppet.vm.april-int:/etc/puppet/modules/vim/files/vimrc.local
 " 
 syntax on
 set paste
info: FileBucket adding /etc/vim/vimrc.local as {md5}adcc712e1cbd3a9a11fec7105ba3783c
info: /Stage[main]/Vim/File[/etc/vim/vimrc.local]: Filebucketed /etc/vim/vimrc.local to puppet with sum adcc712e1cbd3a9a11fec7105ba3783c
notice: /Stage[main]/Vim/File[/etc/vim/vimrc.local]/content: content changed '{md5}adcc712e1cbd3a9a11fec7105ba3783c' to '{md5}2e31556d175342cc9633b30a8737297c'
notice: /Stage[main]//Node[harmine.pavot.vm.april-int]/Package[sudo]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]//Node[harmine.pavot.vm.april-int]/File_line[sudo_backuppc]/ensure: created
notice: /Stage[main]/Apt::Update/Exec[apt_update]/returns: executed successfully
notice: /Stage[main]/Backuppc::Server/File[config_file_nagios.vm.april-int]/ensure: created
--- /root/.bashrc    2012-12-04 02:09:07.000000000 +0100
+++ /tmp/puppet-file20121210-14168-uy6v9m-0    2012-12-10 15:28:27.388539245 +0100
@@ -1,6 +1,6 @@
 #
 # DO NOT CHANGE : IT WILL BE OVERRIDEN BY PUPPET ON THE NEXT RUN
-# GENERATED FROM puppet.vm.april-int:/etc/puppet/files/.bashrc
+# GENERATED FROM puppet.vm.april-int:/etc/puppet/modules/bash/files/.bashrc
 #
 export HISTCONTROL=ignoredups # Ne pas conserver plusieurs fois de suite la même commande dans l'historique.
 if [ -f /etc/bash_completion ]; then
@@ -13,3 +13,10 @@
 fi
 export HISTSIZE=500000
 export PROMPT_COMMAND='history -a'
+
+alias dpkg-source="dpkg -l | awk '/^.i/ {print \$2}' | xargs apt-cache policy | awk '/^[a-z0-9\-]+:/ {pkg=\$1}; /\*\*\*/ {OFS=\"\t\"; ver=\$2; getline; print pkg,ver,\$2,\$3}'" 
+#
+# For vserver hosts
+#
+alias upgrade_all='vapt-get --all -- update ; vapt-get --all upgrade && vapt-get --all dist-upgrade; vapt-get --all clean; apt-get update && apt-get upgrade && apt-get dist-upgrade && apt-get clean'
+alias run_all='vsomething vserver --running --all -- exec '
info: FileBucket adding /root/.bashrc as {md5}8e6fea1fb8950ebfdf798e1186b4aec7
info: /Stage[main]/Bash/File[/root/.bashrc]: Filebucketed /root/.bashrc to puppet with sum 8e6fea1fb8950ebfdf798e1186b4aec7
notice: /Stage[main]/Bash/File[/root/.bashrc]/content: content changed '{md5}8e6fea1fb8950ebfdf798e1186b4aec7' to '{md5}e22880457ebb6d9ac06331f5c763adf9'
--- /root/.screenrc    2012-12-04 02:09:05.000000000 +0100
+++ /tmp/puppet-file20121210-14168-1owi1j-0    2012-12-10 15:28:27.732041273 +0100
@@ -1,9 +1,8 @@
 #
 # DO NOT CHANGE : IT WILL BE OVERRIDEN BY PUPPET ON THE NEXT RUN
-# GENERATED FROM puppet.vm.april-int:/etc/puppet/files/.screenrc
+# GENERATED FROM puppet.vm.april-int:/etc/puppet/modules/screen/files/.screenrc
 #
 escape ^^^[
 hardstatus on
 hardstatus alwayslastline
 hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a " 
-
info: FileBucket adding /root/.screenrc as {md5}bc8a0cb710ba8ba34057e0cba5ffc05f
info: /Stage[main]/Screen/File[/root/.screenrc]: Filebucketed /root/.screenrc to puppet with sum bc8a0cb710ba8ba34057e0cba5ffc05f
notice: /Stage[main]/Screen/File[/root/.screenrc]/content: content changed '{md5}bc8a0cb710ba8ba34057e0cba5ffc05f' to '{md5}161e395e35e791ea2ebf041f4764a8fb'
notice: Finished catalog run in 26.28 seconds

Mis à jour par Loïc Dachary il y a plus de 11 ans

sur harmine il faut prendre augeas-tools de backports

apt-get install augeas-tools=0.10.0-1~bpo60+3 libaugeas0=0.10.0-1~bpo60+3 augeas-lenses=0.10.0-1~bpo60+3

sinon il n'y a pas la lens qui va bien pour nrpe.cfg

Mis à jour par Loïc Dachary il y a plus de 11 ans

Mis à jour par Loïc Dachary il y a plus de 11 ans

  • Statut changé de En cours de traitement à Résolu
  • % réalisé changé de 0 à 100

Mis à jour par Loïc Dachary il y a plus de 11 ans

  • Sujet changé de ajout des backups sur puppet à ajout des backups harmine sur puppet

Mis à jour par Quentin Gibeaux il y a environ 5 ans

  • Statut changé de Résolu à Fermé
Actions

Formats disponibles : Atom PDF