Differential D1153 Diff 3646 site-modules/profile/manifests/swh/deploy/worker/swh_indexer_language.pp
Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/swh/deploy/worker/swh_indexer_language.pp
# Deployment for swh-indexer-language | # Deployment for swh-indexer-language | ||||
class profile::swh::deploy::worker::swh_indexer_language { | class profile::swh::deploy::worker::swh_indexer_language { | ||||
include ::profile::swh::deploy::indexer | include ::profile::swh::deploy::indexer | ||||
$concurrency = lookup('swh::deploy::worker::swh_indexer::language::concurrency') | $concurrency = lookup('swh::deploy::worker::swh_indexer::language::concurrency') | ||||
$loglevel = lookup('swh::deploy::worker::swh_indexer::language::loglevel') | $loglevel = lookup('swh::deploy::worker::swh_indexer::language::loglevel') | ||||
$task_broker = lookup('swh::deploy::worker::swh_indexer::language::task_broker') | |||||
$config_file = lookup('swh::deploy::worker::swh_indexer::language::config_file') | $config_file = lookup('swh::deploy::worker::swh_indexer::language::config_file') | ||||
$config = lookup('swh::deploy::worker::swh_indexer::language::config') | $config = lookup('swh::deploy::worker::swh_indexer::language::config') | ||||
$task_modules = ['swh.indexer.tasks'] | $task_modules = ['swh.indexer.tasks'] | ||||
$task_queues = ['swh_indexer_content_language'] | $task_queues = ['swh_indexer_content_language'] | ||||
Package[$::profile::swh::deploy::base_indexer::packages] ~> ::profile::swh::deploy::worker::instance {'indexer_content_language': | Package[$::profile::swh::deploy::base_indexer::packages] ~> ::profile::swh::deploy::worker::instance {'indexer_content_language': | ||||
ensure => 'stopped', | ensure => 'stopped', | ||||
concurrency => $concurrency, | concurrency => $concurrency, | ||||
loglevel => $loglevel, | loglevel => $loglevel, | ||||
task_broker => $task_broker, | |||||
task_modules => $task_modules, | |||||
task_queues => $task_queues, | |||||
require => [ | require => [ | ||||
Class['profile::swh::deploy::indexer'], | Class['profile::swh::deploy::indexer'], | ||||
Class['profile::swh::deploy::objstorage_cloud'], | Class['profile::swh::deploy::objstorage_cloud'], | ||||
File[$config_file], | File[$config_file], | ||||
], | ], | ||||
} | } | ||||
file {$config_file: | file {$config_file: | ||||
ensure => 'present', | ensure => 'present', | ||||
owner => 'swhworker', | owner => 'swhworker', | ||||
group => 'swhdev', | group => 'swhdev', | ||||
# Contains passwords | # Contains passwords | ||||
mode => '0640', | mode => '0640', | ||||
content => inline_template("<%= @config.to_yaml %>\n"), | content => inline_template("<%= @config.to_yaml %>\n"), | ||||
} | } | ||||
} | } |