Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/swh/deploy/worker/loader_deposit.pp
# Deployment for swh-loader-deposit | # Deployment for swh-loader-deposit | ||||
class profile::swh::deploy::worker::loader_deposit { | class profile::swh::deploy::worker::loader_deposit { | ||||
$packages = ['python3-swh.deposit.loader'] | $packages = ['python3-swh.deposit.loader'] | ||||
$private_tmp = lookup('swh::deploy::worker::loader_deposit::private_tmp') | $private_tmp = lookup('swh::deploy::worker::loader_deposit::private_tmp') | ||||
package {$packages: | package {$packages: | ||||
ensure => 'latest', | ensure => 'present', | ||||
} | } | ||||
# This installs the swh-worker@$service_name service | # This installs the swh-worker@$service_name service | ||||
::profile::swh::deploy::worker::instance {'loader_deposit': | ::profile::swh::deploy::worker::instance {'loader_deposit': | ||||
ensure => running, | ensure => running, | ||||
private_tmp => $private_tmp, | private_tmp => $private_tmp, | ||||
require => [ | require => [ | ||||
Package[$packages], | Package[$packages], | ||||
], | ], | ||||
} | } | ||||
} | } |