diff --git a/data/common/common.yaml b/data/common/common.yaml --- a/data/common/common.yaml +++ b/data/common/common.yaml @@ -2619,6 +2619,18 @@ task_queues: "%{alias('swh::deploy::lister::queues')}" credentials: "%{alias('swh::deploy::worker::lister::config::credentials')}" +swh::deploy::worker::loader_maven::config_file: "%{hiera('swh::conf_directory')}/loader_maven.yml" +swh::deploy::worker::loader_maven::concurrency: 1 +swh::deploy::worker::loader_maven::private_tmp: false +swh::deploy::worker::loader_maven::loglevel: info +swh::deploy::worker::loader_maven::config: + storage: "%{alias('swh::deploy::worker::storage::pipeline')}" + max_content_size: "%{alias('swh::deploy::worker::loader::max_content_size')}" + celery: + task_broker: "%{alias('swh::deploy::worker::task_broker')}" + task_queues: + - swh.loader.package.maven.tasks.LoadMaven + swh::deploy::loader_mercurial::sentry_swh_package: swh.loader.mercurial swh::deploy::loader_mercurial::sentry_environment: "%{alias('swh::deploy::environment')}" swh::deploy::loader_mercurial::sentry_dsn: "https://%{lookup('swh::deploy::loader_mercurial::sentry_token')}@sentry.softwareheritage.org/10" diff --git a/data/deployments/staging/common.yaml b/data/deployments/staging/common.yaml --- a/data/deployments/staging/common.yaml +++ b/data/deployments/staging/common.yaml @@ -59,6 +59,8 @@ - lister - loader_high_priority - loader_opam + # extra + - loader_maven swh::deploy::lister::queues: - swh.lister.bitbucket.tasks.IncrementalBitBucketLister diff --git a/site-modules/profile/manifests/swh/deploy/worker/loader_maven.pp b/site-modules/profile/manifests/swh/deploy/worker/loader_maven.pp new file mode 100644 --- /dev/null +++ b/site-modules/profile/manifests/swh/deploy/worker/loader_maven.pp @@ -0,0 +1,14 @@ +# Deployment for swh-loader-maven +class profile::swh::deploy::worker::loader_maven { + include ::profile::swh::deploy::worker::loader_package + $private_tmp = lookup('swh::deploy::worker::loader_maven::private_tmp') + + ::profile::swh::deploy::worker::instance {'loader_maven': + ensure => present, + private_tmp => $private_tmp, + sentry_name => 'loader_core', + require => [ + Package[$packages], + ], + } +}