Use rclone for reva
This commit is contained in:
parent
a21ea6fdd5
commit
37863c7a17
|
@ -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',
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
6
templates/reva/rclone.conf.erb
Normal file
6
templates/reva/rclone.conf.erb
Normal 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 %>
|
Loading…
Reference in a new issue