Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/swh/deploy/graph.pp
# Deployment of graph (checks for now) | # Deployment of graph (checks for now) | ||||
# FIXME: Graph is currently managed manually and running through a venv. At some point, | # FIXME: Graph is currently managed manually and running through a venv. At some point, | ||||
# adapt here to also install fully the graph from that manifest | # adapt here to also install fully the graph from that manifest | ||||
class profile::swh::deploy::graph { | class profile::swh::deploy::graph { | ||||
$packages = ['python3-venv'] | $packages = ['python3-venv'] | ||||
package {$packages: | package {$packages: | ||||
ensure => 'present', | ensure => 'present', | ||||
} | } | ||||
$user = lookup('swh::deploy::graph::user') | $user = lookup('swh::deploy::graph::user') | ||||
$group = lookup('swh::deploy::graph::group') | $group = lookup('swh::deploy::graph::group') | ||||
$sentry_dsn = lookup("swh::deploy::graph::sentry_dsn", Optional[String], 'first', undef) | |||||
$sentry_environment = lookup("swh::deploy::graph::sentry_environment", Optional[String], 'first', undef) | |||||
$sentry_swh_package = lookup("swh::deploy::graph::sentry_swh_package", Optional[String], 'first', undef) | |||||
# install services from templates | # install services from templates | ||||
$services = [ { # this matches the current status | $services = [ { # this matches the current status | ||||
'name' => 'swhgraphshm', | 'name' => 'swhgraphshm', | ||||
'status' => 'running', | 'status' => 'running', | ||||
'enable' => false, | 'enable' => false, | ||||
}, { | }, { | ||||
'name' => 'swhgraphdev', | 'name' => 'swhgraphdev', | ||||
'status' => 'running', | 'status' => 'running', | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |