Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/swh/deploy/webapp.pp
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | file {$conf_file: | ||||
ensure => present, | ensure => present, | ||||
owner => 'root', | owner => 'root', | ||||
group => $group, | group => $group, | ||||
mode => '0640', | mode => '0640', | ||||
content => inline_template("<%= @full_webapp_config.to_yaml %>\n"), | content => inline_template("<%= @full_webapp_config.to_yaml %>\n"), | ||||
notify => Service['gunicorn-swh-webapp'], | notify => Service['gunicorn-swh-webapp'], | ||||
} | } | ||||
$storage_cfg = $full_webapp_config['storage'] | |||||
if $storage_cfg['cls'] == 'cassandra' { | |||||
package {'python-cassandra': | |||||
ensure => present, | |||||
require => Apt::Source['softwareheritage'], | |||||
olasd: Could you move that package stanza into a new `include ::profile::swh::deploy::storage… | |||||
Done Inline Actionssure. ardumont: sure. | |||||
} | |||||
} | |||||
file {$production_db_dir: | file {$production_db_dir: | ||||
ensure => directory, | ensure => directory, | ||||
owner => $user, | owner => $user, | ||||
group => $group, | group => $group, | ||||
mode => '0755', | mode => '0755', | ||||
} | } | ||||
file {$production_db_file: | file {$production_db_file: | ||||
▲ Show 20 Lines • Show All 168 Lines • Show Last 20 Lines |
Could you move that package stanza into a new include ::profile::swh::deploy::storage::cassandra instead? That way we can do the same change to the swh::deploy::storage (and avoid dependency conflicts).