]> xn--ix-yja.es Git - alex.git/commitdiff
Migrate nextcloud
authoralex <alex@pdp7.net>
Fri, 13 Oct 2023 11:19:14 +0000 (13:19 +0200)
committeralex <alex@pdp7.net>
Fri, 13 Oct 2023 11:19:14 +0000 (13:19 +0200)
personal_infra/puppet/modules/nextcloud/manifests/init.pp
personal_infra/puppet/site/h1.pdp7.net.pp
personal_infra/puppet/site/nextcloud.h1.int.pdp7.net.pp

index fb2871b841d0908b56827e810d1402f4e0497e00..38fb2c790ffe3f4ae583d219bff8436c29eb7271 100644 (file)
@@ -2,8 +2,6 @@ class nextcloud(
   $database_name,
   $database_user,
   $database_host,
-  $admin_pass,
-  $data_dir,
 ) {
 
     file {'/etc/yum.repos.d/koalillo-nextcloud-epel-9.repo':
index ccdd15f06cc469404ad8b92f1d7c76a554023cc1..54e91aedee4d2d55093c73a8fd37172efb870fcb 100644 (file)
@@ -52,6 +52,10 @@ node 'h1.pdp7.net' {
     target => 'http://miniflux.h1.int.pdp7.net:8080/',
   }
 
+  proxmox::proxy_host {'nextcloud.pdp7.net':
+    target => 'http://nextcloud.h1.int.pdp7.net/',
+  }
+
   package {'haproxy':}
   ->
   file {'/etc/haproxy/haproxy.cfg':
index 5f21981f04de60de91464d8e18c6c4d26b4874e7..29753d5b77ef5a199a2aae6fac795fcb443eb667 100644 (file)
@@ -3,7 +3,20 @@ node 'nextcloud.h1.int.pdp7.net' {
     database_name => 'nextcloud',
     database_user => 'nextcloud',
     database_host => 'pg.h1.int.pdp7.net',
-    admin_pass => 'foo',
-    data_dir => '/var/lib/nextcloud/data',
+  }
+
+  file {'/var/lib/nextcloud/apps':
+    ensure => 'link',
+    target => '/nextcloud/apps/',
+  }
+
+  file {'/var/lib/nextcloud/data':
+    ensure => 'link',
+    target => '/nextcloud/data/',
+  }
+
+  file {'/etc/nextcloud/config.php':
+    ensure => 'link',
+    target => '/nextcloud/config.php',
   }
 }