Skip to content
Snippets Groups Projects
Unverified Commit 6f8387fb authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

lister-pypi: Update configuration

Related T1525
parent be42724a
No related branches found
No related tags found
No related merge requests found
......@@ -1971,6 +1971,7 @@ swh::deploy::worker::swh_lister_gitlab::config:
- swh_lister_gitlab_discover
- swh_lister_gitlab_refresh
swh::deploy::worker::swh_lister_pypi::config_file: "%{hiera('swh::conf_directory')}/lister_pypi.yml"
swh::deploy::worker::swh_lister_pypi::concurrency: 1
swh::deploy::worker::swh_lister_pypi::loglevel: warning
# Contains a password: in private data
......@@ -1987,6 +1988,13 @@ swh::deploy::worker::swh_lister_pypi::config:
args:
db: "postgresql://%{hiera('swh::deploy::worker::swh_lister_pypi::db::user')}:%{hiera('swh::deploy::worker::swh_lister_pypi::db::password')}@%{hiera('swh::deploy::worker::swh_lister_pypi::db::host')}/%{hiera('swh::deploy::worker::swh_lister_pypi::db::dbname')}"
# credentials in private data
celery:
task_broker: "%{alias('swh::deploy::scheduler::task_broker')}"
task_modules:
- swh.lister.pypi.tasks
task_queues:
- swh.lister.pypi.tasks.PyPIListerTask
- swh_lister_pypi_refresh
swh::deploy::worker::swh_storage_archiver::conf_directory: "%{hiera('swh::conf_directory')}/archiver"
swh::deploy::worker::swh_storage_archiver::conf_file: "%{hiera('swh::deploy::worker::swh_storage_archiver::conf_directory')}/worker.yml"
......
......@@ -4,7 +4,7 @@ class profile::swh::deploy::worker::swh_lister_pypi {
$loglevel = lookup('swh::deploy::worker::swh_lister_pypi::loglevel')
$task_broker = lookup('swh::deploy::worker::swh_lister_pypi::task_broker')
$config_file = '/etc/softwareheritage/lister-pypi.yml'
$config_file = lookup('swh::deploy::worker::swh_lister_pypi::config_file')
$config = lookup('swh::deploy::worker::swh_lister_pypi::config', Hash, 'deep')
$task_modules = ['swh.lister.pypi.tasks']
......@@ -12,7 +12,7 @@ class profile::swh::deploy::worker::swh_lister_pypi {
include ::profile::swh::deploy::base_lister
::profile::swh::deploy::worker::instance {'swh_lister_pypi':
::profile::swh::deploy::worker::instance {'lister_pypi':
ensure => present,
concurrency => $concurrency,
loglevel => $loglevel,
......
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