diff --git a/site-modules/profile/manifests/swh/deploy/worker/swh_indexer_rehash.pp b/site-modules/profile/manifests/swh/deploy/worker/swh_indexer_rehash.pp index 33ae84b7..90d3ba5f 100644 --- a/site-modules/profile/manifests/swh/deploy/worker/swh_indexer_rehash.pp +++ b/site-modules/profile/manifests/swh/deploy/worker/swh_indexer_rehash.pp @@ -1,33 +1,31 @@ # Deployment for swh-indexer-rehash class profile::swh::deploy::worker::indexer_rehash { include ::profile::swh::deploy::indexer - $concurrency = lookup('swh::deploy::worker::indexer::rehash::concurrency') - $loglevel = lookup('swh::deploy::worker::indexer::rehash::loglevel') + $concurrency = lookup('swh::deploy::worker::indexer_rehash::concurrency') + $loglevel = lookup('swh::deploy::worker::indexer_rehash::loglevel') - $config_file = lookup('swh::deploy::worker::indexer::rehash::config_file') - $config_directory = lookup('swh::deploy::base_indexer::config_directory') - $config_path = "${config_directory}/${config_file}" - $config = lookup('swh::deploy::worker::indexer::rehash::config') + $config_file = lookup('swh::deploy::worker::indexer_rehash::config_file') + $config = lookup('swh::deploy::worker::indexer_rehash::config') Package[$::profile::swh::deploy::base_indexer::packages] ~> ::profile::swh::deploy::worker::instance {'indexer_rehash': ensure => 'stopped', concurrency => $concurrency, loglevel => $loglevel, require => [ Class['profile::swh::deploy::indexer'], Class['profile::swh::deploy::objstorage_cloud'], - File[$config_path], + File[$config_file], ], } - file {$config_path: + file {$config_file: ensure => 'present', owner => 'swhworker', group => 'swhdev', # Contains passwords mode => '0640', content => inline_template("<%= @config.to_yaml %>\n"), } }