Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/swh/deploy/storage.pp
Show All 9 Lines | ::profile::swh::deploy::rpc_server {'storage': | ||||
worker => 'sync', | worker => 'sync', | ||||
http_check_string => '<title>Software Heritage storage server</title>', | http_check_string => '<title>Software Heritage storage server</title>', | ||||
subscribe => Package[$package] | subscribe => Package[$package] | ||||
} | } | ||||
$storage_config = lookup('swh::deploy::storage::config')['storage'] | $storage_config = lookup('swh::deploy::storage::config')['storage'] | ||||
if ($storage_config['cls'] == 'local' | if ($storage_config['cls'] == 'local' | ||||
and $storage_config['args']['journal_writer'] | and $storage_config['journal_writer'] | ||||
and $storage_config['args']['journal_writer']['cls'] == 'kafka') { | and $storage_config['journal_writer']['cls'] == 'kafka') { | ||||
include ::profile::swh::deploy::journal | include ::profile::swh::deploy::journal | ||||
} | } | ||||
if $storage_config['cls'] == 'cassandra' { | if $storage_config['cls'] == 'cassandra' { | ||||
include ::profile::swh::deploy::storage_cassandra | include ::profile::swh::deploy::storage_cassandra | ||||
} | } | ||||
} | } |