Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9123791
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
View Options
diff --git a/manifests/swh/deploy/storage.pp b/manifests/swh/deploy/storage.pp
index 190dbce..701b89b 100644
--- a/manifests/swh/deploy/storage.pp
+++ b/manifests/swh/deploy/storage.pp
@@ -1,70 +1,72 @@
# Deployment of the swh.storage.api server
class profile::swh::deploy::storage {
$conf_directory = hiera('swh::deploy::storage::conf_directory')
$conf_file = hiera('swh::deploy::storage::conf_file')
$user = hiera('swh::deploy::storage::user')
$group = hiera('swh::deploy::storage::group')
$db_host = hiera('swh::deploy::storage::db::host')
$db_user = hiera('swh::deploy::storage::db::user')
$db_dbname = hiera('swh::deploy::storage::db::dbname')
$db_password = hiera('swh::deploy::storage::db::password')
$directory = hiera('swh::deploy::storage::directory')
$swh_packages = ['python3-swh.storage']
$uwsgi_config = '/etc/uwsgi/apps-available/swh-storage.ini'
$uwsgi_link = '/etc/uwsgi/apps-enabled/swh-storage.ini'
$uwsgi_packages = ['uwsgi', 'uwsgi-plugin-python3']
$uwsgi_port = hiera('swh::deploy::storage::uwsgi::port')
package {$uwsgi_packages:
ensure => installed,
}
service {'uwsgi':
ensure => running,
enable => true,
require => File[$uwsgi_link],
}
include ::apache
package {$swh_packages:
ensure => latest,
require => Apt::Source['softwareheritage'],
}
file {$conf_directory:
ensure => directory,
owner => 'root',
group => $group,
mode => '0750',
}
file {$conf_file:
ensure => present,
owner => 'root',
group => $group,
mode => '0640',
content => template('profile/swh/deploy/storage/storage.ini.erb'),
+ notify => Service['uwsgi'],
}
file {$uwsgi_config:
ensure => present,
owner => 'root',
group => 'root',
mode => '0644',
content => template('profile/swh/deploy/storage/uwsgi.ini.erb'),
notify => Service['uwsgi'],
require => [
Package[$uwsgi_packages],
Package[$swh_packages],
+ File[$conf_file],
],
}
file {$uwsgi_link:
ensure => link,
target => $uwsgi_config,
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Jun 21, 6:08 PM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3447364
Attached To
rSPPROF puppet-swh-profile
Event Timeline
Log In to Comment