Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9346066
D6062.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
D6062.diff
View Options
diff --git a/data/common/common.yaml b/data/common/common.yaml
--- a/data/common/common.yaml
+++ b/data/common/common.yaml
@@ -2518,6 +2518,18 @@
- swh.loader.mercurial.tasks.LoadMercurial
- swh.loader.mercurial.tasks.LoadArchiveMercurial
+swh::deploy::worker::loader_opam::config_file: "%{hiera('swh::conf_directory')}/loader_opam.yml"
+swh::deploy::worker::loader_opam::concurrency: 1
+swh::deploy::worker::loader_opam::private_tmp: true
+swh::deploy::worker::loader_opam::loglevel: info
+swh::deploy::worker::loader_opam::config:
+ storage: "%{alias('swh::deploy::worker::storage::pipeline')}"
+ max_content_size: "%{alias('swh::deploy::worker::loader::max_content_size')}"
+ celery:
+ task_broker: "%{alias('swh::deploy::worker::task_broker')}"
+ task_queues:
+ - swh.loader.package.opam.tasks.LoadOpam
+
swh::deploy::worker::loader_pypi::config_file: "%{hiera('swh::conf_directory')}/loader_pypi.yml"
swh::deploy::worker::loader_pypi::concurrency: 1
swh::deploy::worker::loader_pypi::private_tmp: true
diff --git a/data/deployments/staging/common.yaml b/data/deployments/staging/common.yaml
--- a/data/deployments/staging/common.yaml
+++ b/data/deployments/staging/common.yaml
@@ -45,6 +45,7 @@
- vault_cooker
- lister
- loader_high_priority
+ - loader_opam
#### Rabbitmq instance to use
# swh::deploy::worker::task_broker::password in private data
diff --git a/site-modules/profile/manifests/swh/deploy/worker/loader_opam.pp b/site-modules/profile/manifests/swh/deploy/worker/loader_opam.pp
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/manifests/swh/deploy/worker/loader_opam.pp
@@ -0,0 +1,20 @@
+# Deployment for opam loader
+class profile::swh::deploy::worker::loader_opam {
+ include ::profile::swh::deploy::worker::loader_package
+ $private_tmp = lookup('swh::deploy::worker::loader_opam::private_tmp')
+
+ $packages = ['opam']
+ package {$packages:
+ ensure => 'present',
+ }
+
+ ::profile::swh::deploy::worker::instance {'loader_opam':
+ ensure => present,
+ private_tmp => $private_tmp,
+ sentry_name => 'loader_core',
+ require => [
+ Package[$::profile::swh::deploy::loader_package::packages],
+ Package[$packages],
+ ],
+ }
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 3:42 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3216747
Attached To
D6062: staging: Deploy opam loader service
Event Timeline
Log In to Comment