Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/icinga2/objects/e2e_checks.pp
Show All 10 Lines | class profile::icinga2::objects::e2e_checks { | ||||
$deposit_metadata = lookup('swh::deploy::deposit::e2e:metadata') | $deposit_metadata = lookup('swh::deploy::deposit::e2e:metadata') | ||||
$packages = ["python3-swh.icingaplugins"] | $packages = ["python3-swh.icingaplugins"] | ||||
package {$packages: | package {$packages: | ||||
ensure => present | ensure => present | ||||
} | } | ||||
::icinga2::object::checkcommand {'check_deposit': | $template_file = '/etc/icinga2/conf.d/templates.conf' | ||||
::icinga2::object::checkcommand {'check-deposit-cmd': | |||||
import => ['plugin-check-command'], | import => ['plugin-check-command'], | ||||
command => [ | command => [ | ||||
"/usr/bin/swh", "icinga_plugins", "check-deposit", | "/usr/bin/swh", "icinga_plugins", "check-deposit", | ||||
"--server", "${deposit_server}", | "--server", "${deposit_server}", | ||||
"--user", "${deposit_user}", | "--user", "${deposit_user}", | ||||
"--password", "${deposit_pass}", | "--password", "${deposit_pass}", | ||||
"--collection", "${deposit_collection}", | "--collection", "${deposit_collection}", | ||||
"--poll-interval", "${deposit_poll_interval}", | "--poll-interval", "${deposit_poll_interval}", | ||||
"single", | "single", | ||||
"--archive", "${deposit_archive}", | "--archive", "${deposit_archive}", | ||||
"--metadata", "${deposit_metadata}", | "--metadata", "${deposit_metadata}", | ||||
], | ], | ||||
# XXX: Should probably be split into usual commands with arguments | |||||
# arguments => ... | |||||
ardumont: For now, it's actually not completely clear whether the given command can actually work or not… | |||||
target => $checks_file, | target => $checks_file, | ||||
require => Package[$packages] | require => Package[$packages] | ||||
} | } | ||||
} | } |
For now, it's actually not completely clear whether the given command can actually work or not (given it's not a real icinga thing)... so meh, i just want to check what that does right now.