Skip to content
Snippets Groups Projects
Commit 45af848d authored by drebs's avatar drebs
Browse files

Make domain and www root configurable in Nextcloud role

parent 4b6e1da7
No related branches found
No related tags found
No related merge requests found
Pipeline #209919 failed
# A Nextcloud system # A Nextcloud system
class role::nextcloud { class role::nextcloud (
String $domain = lookup('profile::nextcloud::domain', String, 'first', undef),
String $www_root = "/var/www/${domain}",
) {
include profile::nextcloud include profile::nextcloud
include profile::firewall::web include profile::firewall::web
...@@ -31,9 +34,7 @@ class role::nextcloud { ...@@ -31,9 +34,7 @@ class role::nextcloud {
], ],
);" );"
$domain = lookup('profile::nextcloud::domain', String, 'first', undef) file { "${www_root}/config/memory-cache.distributed.config.php":
file { "/var/www/${domain}/config/memory-cache.distributed.config.php":
ensure => 'file', ensure => 'file',
mode => '0640', mode => '0640',
owner => 'www-data', owner => 'www-data',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment