Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9339660
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/manifests/swh/deploy/worker/swh_vault_cooker.pp b/manifests/swh/deploy/worker/swh_vault_cooker.pp
new file mode 100644
index 0000000..5a38210
--- /dev/null
+++ b/manifests/swh/deploy/worker/swh_vault_cooker.pp
@@ -0,0 +1,40 @@
+# Deployment of a vault cooker
+
+class profile::swh::deploy::worker::vault_cooker {
+ $concurrency = hiera('swh::deploy::worker::vault_cooker::concurrency')
+ $loglevel = hiera('swh::deploy::worker::vault_cooker::loglevel')
+ $task_broker = hiera('swh::deploy::worker::vault_cooker::task_broker')
+
+ $conf_file = hiera('swh::deploy::worker::vault_cooker::conf_file')
+ $config = hiera('swh::deploy::worker::vault_cooker::config')
+
+ $task_modules = ['swh.vault.cooking_tasks']
+ $task_queues = ['swh_vault_cooking']
+
+ $packages = ['python3-swh.vault']
+
+ package {$packages:
+ ensure => 'present',
+ }
+
+ ::profile::swh::deploy::worker::instance {'swh_vault_cooking':
+ ensure => present,
+ concurrency => $concurrency,
+ loglevel => $loglevel,
+ task_broker => $task_broker,
+ task_modules => $task_modules,
+ task_queues => $task_queues,
+ require => [
+ Package[$packages],
+ File[$conf_file],
+ ],
+ }
+
+ file {$conf_file:
+ ensure => 'present',
+ owner => 'swhworker',
+ group => 'swhworker',
+ mode => '0644',
+ content => inline_template("<%= @config.to_yaml %>\n"),
+ }
+}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Jul 4 2025, 9:50 AM (5 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3452511
Attached To
rSPPROF puppet-swh-profile
Event Timeline
Log In to Comment