Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9311831
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_loader_git_archive.pp b/manifests/swh/deploy/worker/swh_loader_git_archive.pp
new file mode 100644
index 00000000..07086977
--- /dev/null
+++ b/manifests/swh/deploy/worker/swh_loader_git_archive.pp
@@ -0,0 +1,35 @@
+# Deployment for swh-loader-git (archive)
+class profile::swh::deploy::worker::swh_loader_git_archive {
+ include ::profile::swh::deploy::base_loader_git
+
+ $concurrency = hiera('swh::deploy::worker::swh_loader_git_archive::concurrency')
+ $loglevel = hiera('swh::deploy::worker::swh_loader_git_archive::loglevel')
+ $task_broker = hiera('swh::deploy::worker::swh_loader_git_archive::task_broker')
+
+ $config_file = '/etc/softwareheritage/loader/archive-git-loader.yml'
+ $config = hiera('swh::deploy::worker::swh_loader_git_archive::config')
+
+ $task_modules = ['swh.loader.git.tasks']
+ $task_queues = ['swh_loader_git_archive']
+
+ ::profile::swh::deploy::worker::instance {'swh_loader_git_archive':
+ ensure => present,
+ concurrency => $concurrency,
+ loglevel => $loglevel,
+ task_broker => $task_broker,
+ task_modules => $task_modules,
+ task_queues => $task_queues,
+ require => [
+ Class['profile::swh::deploy::base_loader_git'],
+ File[$config_file],
+ ],
+ }
+
+ file {$config_file:
+ ensure => 'present',
+ owner => 'swhworker',
+ group => 'swhworker',
+ mode => '0644',
+ content => inline_template('<%= @config.to_yaml %>'),
+ }
+}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Jul 3, 10:33 AM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3291892
Attached To
rSPSITE puppet-swh-site
Event Timeline
Log In to Comment