Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/swh/deploy/storage.pp
Show All 12 Lines | class profile::swh::deploy::storage { | ||||
$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['args']['journal_writer'] | ||||
and $storage_config['args']['journal_writer']['cls'] == 'kafka') { | and $storage_config['args']['journal_writer']['cls'] == 'kafka') { | ||||
include ::profile::swh::deploy::journal | include ::profile::swh::deploy::journal | ||||
} | } | ||||
if $storage_config['cls'] == 'cassandra' { | |||||
include ::profile::swh::deploy::storage_cassandra | |||||
} | |||||
} | } |