Skip to content
Snippets Groups Projects
Verified Commit b58f3339 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

objstorage-checker: Remove unused checkers

This code belongs to the swh-archiver repository which got archived.
parent 3ad5dedd
No related branches found
No related tags found
1 merge request!30archiver: Remove archiver profile from swh_storage role
......@@ -1498,24 +1498,6 @@ swh::deploy::journal_simple_checker_producer::config:
- origin
- origin_visit
swh::deploy::archiver_content_updater::conf_file: "%{hiera('swh::deploy::worker::archiver::conf_directory')}/content_updater.yml"
swh::deploy::archiver_content_updater::user: swhstorage
swh::deploy::archiver_content_updater::group: swhstorage
swh::deploy::archiver_content_updater::config:
brokers:
- getty.internal.softwareheritage.org
auto_offset_reset: earliest
topic_prefix: swh.journal.objects
consumer_id: swh.journal.archiver.content.updater
object_types:
- content
archiver_storage:
cls: db
args:
dbconn: "host=%{hiera('swh::deploy::worker::archiver::db::host')} user=%{hiera('swh::deploy::worker::archiver::db::user')} dbname=%{hiera('swh::deploy::worker::archiver::db::dbname')} password=%{hiera('swh::deploy::worker::archiver::db::password')}"
sources_present:
- uffizi
swh::deploy::objstorage::conf_directory: "%{hiera('swh::conf_directory')}/objstorage"
swh::deploy::objstorage::conf_file: "%{hiera('swh::deploy::objstorage::conf_directory')}/server.yml"
swh::deploy::objstorage::user: "%{hiera('swh::deploy::storage::user')}"
......@@ -1642,30 +1624,6 @@ swh::deploy::objstorage_repair_checker::config:
log_tag: objstorage.checker.repair
backup_storages: "%{alias('swh::remote_service::objstorage::config_as_dict')}"
swh::deploy::objstorage_archive_notifier_checker::conf_directory: "%{hiera('swh::deploy::objstorage::conf_directory')}"
swh::deploy::objstorage_archive_notifier_checker::conf_file: "%{hiera('swh::deploy::objstorage_archive_notifier_checker::conf_directory')}/archive_notifier_checker.yml"
swh::deploy::objstorage_archive_notifier_checker::user: "%{hiera('swh::deploy::objstorage::user')}"
swh::deploy::objstorage_archive_notifier_checker::group: "%{hiera('swh::deploy::objstorage::group')}"
swh::deploy::objstorage_archive_notifier_checker::log_tag: objstorage.checker.archive_notifier
swh::deploy::objstorage_archive_notifier_checker::storage_name: this-must-be-overriden-on-a-host-basis
swh::deploy::objstorage_archive_notifier_checker::db::host: "%{hiera('swh::deploy::worker::archiver::db::host')}"
swh::deploy::objstorage_archive_notifier_checker::db::dbname: "%{hiera('swh::deploy::worker::archiver::db::dbname')}"
swh::deploy::objstorage_archive_notifier_checker::db::user: "%{hiera('swh::deploy::worker::archiver::db::user')}"
swh::deploy::objstorage_archive_notifier_checker::db::password: "%{hiera('swh::deploy::worker::archiver::db::password')}"
swh::deploy::objstorage_archive_notifier_checker::config:
storage:
cls: pathslicing
args:
root: "%{hiera('swh::deploy::objstorage::directory')}"
slicing: "%{hiera('swh::deploy::objstorage::slicing')}"
batch_size: 1000
log_tag: objstorage.checker.archive_notifier
storage_name: this-must-be-overriden-on-a-per-host-basis
archiver_storage:
cls: db
args:
dbconn: "host=%{hiera('swh::deploy::worker::archiver::db::host')} user=%{hiera('swh::deploy::worker::archiver::db::user')} dbname=%{hiera('swh::deploy::worker::archiver::db::dbname')} password=%{hiera('swh::deploy::worker::archiver::db::password')}"
swh::deploy::webapp::backported_packages:
stretch:
- python3-django
......
# Deployment of the swh.objstorage.checker.ArchiveNotifierContentChecker
class profile::swh::deploy::objstorage_archive_notifier_checker {
$conf_directory = lookup('swh::deploy::objstorage_archive_notifier_checker::conf_directory')
$conf_file = lookup('swh::deploy::objstorage_archive_notifier_checker::conf_file')
$user = lookup('swh::deploy::objstorage_archive_notifier_checker::user')
$group = lookup('swh::deploy::objstorage_archive_notifier_checker::group')
# configuration file
$archive_notifier_config = lookup('swh::deploy::objstorage_archive_notifier_checker::config')
$swh_packages = ['python3-swh.objstorage.checker']
package {$swh_packages:
ensure => latest,
require => Apt::Source['softwareheritage'],
}
file {$conf_directory:
ensure => directory,
owner => 'root',
group => $group,
mode => '0750',
}
file {$conf_file:
ensure => present,
owner => 'root',
group => $group,
mode => '0640',
content => inline_template("<%= @archive_notifier_config.to_yaml %>\n"),
}
::systemd::unit_file {'objstorage_archive_notifier_checker.service':
ensure => present,
content => template('profile/swh/deploy/storage/objstorage_archive_notifier_checker.service.erb'),
require => [
File[$conf_file],
Package[$swh_packages],
]
}
}
# Deployment of the swh.objstorage.checker.LogContentChecker
class profile::swh::deploy::objstorage_log_checker {
$conf_directory = lookup('swh::deploy::objstorage_log_checker::conf_directory')
$conf_file = lookup('swh::deploy::objstorage_log_checker::conf_file')
$user = lookup('swh::deploy::objstorage_log_checker::user')
$group = lookup('swh::deploy::objstorage_log_checker::group')
# configuration file
$log_checker_config = lookup('swh::deploy::objstorage_log_checker::config')
$swh_packages = ['python3-swh.objstorage.checker']
package {$swh_packages:
ensure => latest,
require => Apt::Source['softwareheritage'],
}
file {$conf_directory:
ensure => directory,
owner => 'root',
group => $group,
mode => '0750',
}
file {$conf_file:
ensure => present,
owner => 'root',
group => $group,
mode => '0640',
content => inline_template("<%= @log_checker_config.to_yaml %>\n"),
}
::systemd::unit_file {'objstorage_log_checker.service':
ensure => present,
content => template('profile/swh/deploy/storage/objstorage_log_checker.service.erb'),
require => [
File[$conf_file],
Package[$swh_packages],
]
}
}
# Deployment of the swh.objstorage.checker.RepairContentChecker
class profile::swh::deploy::objstorage_repair_checker {
$conf_directory = lookup('swh::deploy::objstorage_repair_checker::conf_directory')
$conf_file = lookup('swh::deploy::objstorage_repair_checker::conf_file')
$user = lookup('swh::deploy::objstorage_repair_checker::user')
$group = lookup('swh::deploy::objstorage_repair_checker::group')
$repair_checker_config = lookup('swh::deploy::objstorage_repair_checker::config')
$swh_packages = ['python3-swh.objstorage.checker']
package {$swh_packages:
ensure => latest,
require => Apt::Source['softwareheritage'],
}
file {$conf_directory:
ensure => directory,
owner => 'root',
group => $group,
mode => '0750',
}
file {$conf_file:
ensure => present,
owner => 'root',
group => $group,
mode => '0640',
content => inline_template("<%= @repair_checker_config.to_yaml %>\n"),
}
::systemd::unit_file {'objstorage_repair_checker.service':
ensure => present,
content => template('profile/swh/deploy/storage/objstorage_repair_checker.service.erb'),
require => [
File[$conf_file],
Package[$swh_packages],
]
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment