Merge branch 'main' into testing

This commit is contained in:
Micke Nordin 2023-09-28 14:48:47 +02:00
commit f6cca5bcdc
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
4 changed files with 15 additions and 14 deletions

View file

@ -8,6 +8,7 @@ class sunetdrive::reva (
$environment = sunetdrive::get_environment() $environment = sunetdrive::get_environment()
$shared_secret = safe_hiera('shared_secret') $shared_secret = safe_hiera('shared_secret')
$statistics_secret = safe_hiera('statistics_secret')
$iopsecret = safe_hiera('iopsecret') $iopsecret = safe_hiera('iopsecret')
$smtp_credentials = safe_hiera('smtp_credentials') $smtp_credentials = safe_hiera('smtp_credentials')
@ -22,18 +23,17 @@ class sunetdrive::reva (
content => template('sunetdrive/reva/revad.toml.erb'), content => template('sunetdrive/reva/revad.toml.erb'),
mode => '0644', mode => '0644',
} }
file { '/opt/reva/rclone.conf':
ensure => present,
owner => 'www-data',
group => 'root',
content => template('sunetdrive/reva/rclone.conf.erb'),
mode => '0644',
}
file { '/opt/reva/data': file { '/opt/reva/data':
ensure => directory, ensure => directory,
owner => 'www-data', owner => 'www-data',
} }
file { '/opt/reva/metrics.json':
ensure => present,
owner => 'www-data',
group => 'root',
content => template('sunetdrive/reva/metrics.json.erb'),
mode => '0644',
}
sunet::docker_compose { 'drive_reva_docker_compose': sunet::docker_compose { 'drive_reva_docker_compose':
content => template('sunetdrive/reva/docker-compose.yml.erb'), content => template('sunetdrive/reva/docker-compose.yml.erb'),
service_name => 'reva', service_name => 'reva',

View file

@ -16,7 +16,7 @@ services:
volumes: volumes:
- /opt/reva/revad.toml:/etc/revad/revad.toml - /opt/reva/revad.toml:/etc/revad/revad.toml
- /opt/reva/data:/var/tmp/reva - /opt/reva/data:/var/tmp/reva
- /opt/reva/metrics.json:/etc/revad/metrics.json - /opt/reva/rclone.conf:/root/.rclone.conf
- /opt/reva/<%= @environment %>/<%= @domain %>.crt:/etc/revad/tls/<%= @domain %>.crt - /opt/reva/<%= @environment %>/<%= @domain %>.crt:/etc/revad/tls/<%= @domain %>.crt
- /opt/reva/<%= @environment %>/<%= @domain %>.key:/etc/revad/tls/<%= @domain %>.key - /opt/reva/<%= @environment %>/<%= @domain %>.key:/etc/revad/tls/<%= @domain %>.key
restart: always restart: always

View file

@ -1,5 +0,0 @@
{
"cs3_org_sciencemesh_site_total_num_users": 2200,
"cs3_org_sciencemesh_site_total_num_groups": 0,
"cs3_org_sciencemesh_site_total_amount_storage": 270000000000000
}

View file

@ -0,0 +1,6 @@
[statistics]
type = webdav
url = https://89.46.20.42/remote.php/dav/files/_script/
vendor = nextcloud
user = _script
pass = <%= @statistics_secret %>