1
0
Fork 0
Commit graph

68 commits

Author SHA1 Message Date
Tiz
05a1713402
Update adjust_config.yml - remove type for preview generator
adjust-nextcloud-config tags is returning an error `Unknown type integer`  when setting the type to int or integer for jpeg_quality. 
This workaround proposes to remove the "type=" as the playbook works well without
2024-10-02 11:29:40 +00:00
Slavi Pantaleev
604d1a6e5f Upgrade (29.0.7 -> 30.0.0) 2024-09-21 17:23:24 +03:00
Slavi Pantaleev
110526f68e
Merge pull request #23 from neokyx/main
Update Nextcloud (v.29.0.6 > v.29.0.7)
2024-09-14 17:48:48 +03:00
Spyderfoo
2a9ce7d0a1
Update Nextcloud (v.29.0.6 > v.29.0.7) 2024-09-14 14:19:15 +02:00
Slavi Pantaleev
2a74dd14d8
Merge pull request #22 from neokyx/main
Update Nextcloud (v.29.0.4 > v29.0.6)
2024-09-12 12:15:00 +03:00
Spyderfoo
5422798239
Upgrade v.29.0.4 > v29.0.6 2024-09-12 07:39:55 +02:00
Slavi Pantaleev
0f109cac25 Configure maintenance_window_start to suppress Nextcloud warning 2024-08-08 08:56:47 +03:00
Slavi Pantaleev
ff01e1ac64
Merge pull request #21 from hooger/hg-fix
as an app setting, it needs an app name to be applied to
2024-08-05 22:54:21 +03:00
hooger
fedbb83cff as an app setting, it needs an app name to be applied to 2024-08-05 17:27:51 +02:00
Slavi Pantaleev
4a0ccc3259 Upgrade (29.0.3 -> 29.0.4) 2024-07-30 20:55:48 +03:00
Gergely Horváth
6b3c9b95d5
Change of preview generation default values. (#20)
* Change of preview generation default values.

According to the [docs](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/previews_configuration.html),
some variables are unsupported, while the default of others have changed.

* is defined is not used, changing "null" handling

Luckily it works as numbers as string are accepted.

* check for unused NC variables

* this is an app setting, not a system setting

* Deprecate nextcloud_preview_system_jpeg_quality, not nextcloud_preview_app_jpeg_quality

Ref: https://github.com/mother-of-all-self-hosting/ansible-role-nextcloud/pull/20#discussion_r1686902142

---------

Co-authored-by: Slavi Pantaleev <slavi@devture.com>
2024-07-30 20:55:05 +03:00
Slavi Pantaleev
fd4b567e2b Pass the correct data types when configuring preview feature
Fixes https://github.com/mother-of-all-self-hosting/ansible-role-nextcloud/issues/19
2024-07-11 07:20:34 +03:00
Slavi Pantaleev
6e4a728f6d
Merge pull request #18 from QEDeD/main
Upgrade Nextcloud (29.0.1 -> 29.0.3)
2024-07-05 11:10:21 +03:00
QEDeD
7a92f15e01
Upgrade (29.0.1 -> 29.0.3) 2024-06-27 15:10:14 +02:00
Slavi Pantaleev
462bec0d8a Upgrade (29.0.0 -> 29.0.1) 2024-06-07 10:43:01 +03:00
Slavi Pantaleev
0f9c6a79aa Upgrade (28.0.5 -> 29.0.0) 2024-05-24 08:15:31 +03:00
Slavi Pantaleev
06fcdf92bb Upgrade (28.0.4 -> 28.0.5) 2024-05-08 16:35:29 +03:00
IUCCA
32fe016c40
added optional systemd service + timer for nextcloud app updates (#17)
* added optional systemd service + timer for nextcloud app updates

* added optional systemd service + timer for nextcloud app updates

* added uninstall tasks
2024-05-08 16:34:41 +03:00
Slavi Pantaleev
8e7c13d9ed Upgrade (28.0.2 -> 28.0.4) 2024-04-24 21:39:12 +03:00
Slavi Pantaleev
91ab534944
Merge pull request #16 from hooger/hg-typo
fix typo
2024-04-24 21:37:53 +03:00
hooger
466092f6a0 fix typo 2024-04-24 20:23:25 +02:00
Slavi Pantaleev
a73ce941e5
Merge pull request #15 from PhilippHomann/main
Custom image is always used
2024-03-22 06:49:20 +02:00
Philipp Homann
ff47b6d341
Fix custom image always being written to...
...systemd service file
2024-03-21 11:29:15 +01:00
moanos
9ef63533ea chore: bump version to 28.0.2 2024-02-20 16:11:50 +01:00
Slavi Pantaleev
eaa789ad22 Add nextcloud_config_parameter_mail_* variables 2024-01-06 12:06:57 +02:00
Slavi Pantaleev
3393b651ea Add nextcloud_systemd_wanted_services_list 2024-01-06 12:06:16 +02:00
Slavi Pantaleev
8cb3e23498
Merge pull request #13 from QEDeD/main
Bump Nextcloud to v28.0.1
2023-12-30 07:51:27 +02:00
QEDeD
a7ed7f5e72
Bump Nextcloud to v28.0.1 2023-12-29 19:34:04 +01:00
Slavi Pantaleev
65e75bbbd4 Use empty-string for overwritewebroot when nextcloud_path_prefix is /
Some instances seem to have trouble when overwritewebroot is set to `/`:

> Dec 14 11:51:37 s3 systemd[1]: Starting Runs the cronjobs For Nextcloud (mash-nextcloud)...
> Dec 14 11:51:37 s3 env[1246702]: Sabre\DAV\Exception\Forbidden: Requested uri (/remote.php/dav/) is out of base uri (//remote.php/dav/) in /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php:576
> Dec 14 11:51:37 s3 env[1246702]: Stack trace:
> Dec 14 11:51:37 s3 env[1246702]: #0 /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php(542): Sabre\DAV\Server->calculateUri('/remote.php/dav...')
> Dec 14 11:51:37 s3 env[1246702]: #1 /var/www/html/apps/photos/lib/Listener/SabrePluginAuthInitListener.php(50): Sabre\DAV\Server->getRequestUri()
> Dec 14 11:51:37 s3 env[1246702]: #2 /var/www/html/lib/private/EventDispatcher/ServiceEventListener.php(86): OCA\Photos\Listener\SabrePluginAuthInitListener->handle(Object(OCA\DAV\Events\SabrePluginAuthInitEvent))
> Dec 14 11:51:37 s3 env[1246702]: #3 /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php(230): OC\EventDispatcher\ServiceEventListener->__invoke(Object(OCA\DAV\Events\SabrePluginAuthInitEvent), 'OCA\\DAV\\Events\\...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
> Dec 14 11:51:37 s3 env[1246702]: #4 /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php(59): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'OCA\\DAV\\Events\\...', Object(OCA\DAV\Events\SabrePluginAuthInitEvent))
> Dec 14 11:51:37 s3 env[1246702]: #5 /var/www/html/lib/private/EventDispatcher/EventDispatcher.php(94): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(OCA\DAV\Events\SabrePluginAuthInitEvent), 'OCA\\DAV\\Events\\...')
> Dec 14 11:51:37 s3 env[1246702]: #6 /var/www/html/lib/private/EventDispatcher/EventDispatcher.php(106): OC\EventDispatcher\EventDispatcher->dispatch('OCA\\DAV\\Events\\...', Object(OCA\DAV\Events\SabrePluginAuthInitEvent))
> Dec 14 11:51:37 s3 env[1246702]: #7 /var/www/html/apps/dav/lib/CalDAV/InvitationResponse/InvitationResponseServer.php(76): OC\EventDispatcher\EventDispatcher->dispatchTyped(Object(OCA\DAV\Events\SabrePluginAuthInitEvent))
> Dec 14 11:51:37 s3 env[1246702]: #8 [internal function]: OCA\DAV\CalDAV\InvitationResponse\InvitationResponseServer->__construct(true

It seems like changing overwritewebroot to an empty string solves the
problem there, and doesn't seem to be introducign regressions for
installations that didn't have the problem in the first place.
2023-12-19 10:37:34 +02:00
Slavi Pantaleev
670d7e2cc4 Upgrade (27.1.4 -> 28.0.0) 2023-12-13 16:09:11 +02:00
Slavi Pantaleev
06c2e30867 Remove trailing whitespace in nextcloud_container_image_final
It doesn't seem like this has been causing any (major) issues,
but it's better to have it be correct anyway.
2023-12-10 18:14:46 +02:00
Slavi Pantaleev
f87e761617 Stop the container gracefully, instead of outright killing it 2023-12-06 12:22:41 +02:00
Slavi Pantaleev
1cb3ff73ff Fix typo in variable name (imageick -> imagick) 2023-12-03 12:41:56 +02:00
Slavi Pantaleev
c50f4d614e Fix comparison method in validation check for deprecated variables 2023-12-03 12:41:29 +02:00
Slavi Pantaleev
3c18ed01f2 Add support for installing arbitrary packages in the customized container image
Related to https://github.com/mother-of-all-self-hosting/ansible-role-nextcloud/pull/12
2023-12-03 12:33:08 +02:00
Slavi Pantaleev
c3d5f18024 Move customization variables closer together 2023-12-03 12:28:50 +02:00
brush
738ab37716
add samba customization to dockerfile, if nextcloud_container_image_customizations_samba_enabled: true (#12)
* Update main.yml

set container customizations to enabled if nextcloud_container_image_smb_enabled is set (OR imagemagick)

* nextcloud_container_image_customizations_smb_enabled activates customizations

* add smbclient installation to docker image, if enabled

see https://github.com/nextcloud/docker/blob/master/.examples/dockerfiles/smb/apache/Dockerfile for source

* Set variable default and revise multiline syntax

Integrate suggestions from @spantaleev

* Refactor code to make only a single, one-line package install

Per suggestion @spanteleev;  so that extra files can be deleted without leaving a footprint in the stack of images
2023-12-03 12:25:26 +02:00
Julian-Samuel Gebühr
c97d928215
Merge pull request #10 from brush/patch-1
Correct file location for where {{ nextcloud_container_labels_additio…
2023-11-30 07:41:32 +01:00
brush
1bdf626c18
Correct file location for where {{ nextcloud_container_labels_additional_labels }} is included
(Currently there are no actual "details" there, other than the location of the reference.)
2023-11-29 17:51:38 -08:00
Julian-Samuel Gebühr
1235095096
Merge pull request #9 from mxwmnn/patch-1
bump nextcloud to version 27.1.4
2023-11-29 10:44:09 +01:00
mxwmnn
3436682e71
bump nextcloud to version 27.1.4 2023-11-29 10:42:22 +01:00
Slavi Pantaleev
2404dab609 Upgrade (27.1.1 -> 27.1.3) 2023-11-21 16:25:02 +02:00
Slavi Pantaleev
195fd31ec2 Make container labels configurable and extensible
Fixes https://github.com/mother-of-all-self-hosting/mash-playbook/issues/115
2023-11-21 16:23:58 +02:00
Slavi Pantaleev
4cd3fb7032
Merge pull request #8 from sudo-Tiz/patch-1
Update adjust_config.yml
2023-10-02 06:56:37 +03:00
sudo-Tiz
f4274e2308
Update adjust_config.yml 2023-10-01 09:05:45 +00:00
moanos
a1900348ea Bump version to 27.1.1 2023-09-22 21:51:08 +02:00
moanos
b0f9689d1b Merge branch 'main' of https://github.com/mother-of-all-self-hosting/ansible-role-nextcloud 2023-09-19 10:42:15 +02:00
moanos
d556416c0f Bump to 27.1.0 2023-09-19 10:41:28 +02:00
Gergely Horváth
a877b16c03
Preview generator setup (#7)
* Preview generator setup

Enable the variable nextcloud_preview_enabled and you are good to go.

Some important aspects of usage:
- the preview generator has two stages [according to their readme](https://github.com/nextcloud/previewgenerator)
  - a generate-all phase, which has to be executed only a single time
  - a pre-generate phase, that should be run in a cronjob.
    That runs quite fast if the generate-all phase finishd.
We do not want to run the generate-all phase multiple times, so its execution has to be followed somehow.
This is done by creating a file on the host side and both the task that executes generate-all
and both the cronjob checks its existance.

Multiple vaiables are also defined and the corresponding default values are also set.
These values are based on the [upstream readme](https://github.com/nextcloud/previewgenerator) and also on experience.
Feel free to change anything.

Once installed, the playbook needs to be called with the adjust-nextcloud-config tag.
This tag sets up the variables and calls the generate-all script, that will also create the file---signalling
its finished state---on the host.
*** As this may take a long time, be sure to only call it when you have time to leave it running!!! ***
The playbook calls generate-all asynchronously, but it will timeout after about 27h.
On 60GBs, most if images, it took about 10 minutes to finish.
If it takes more time, you may want to start it from the host by calling
```sh
/usr/bin/env docker exec mash-nextcloud-server php /var/www/html/occ preview:generate-all
```

If the nextcloud_preview_enabled value is set back to false, the host side files are cleaned up
and also the cron job is changed, not to call prevew generation again however, the database and generated
previews are kept intact.

* fix playbook format suggestions by Slavi (see conversation in !7)
2023-09-16 10:01:20 +03:00
moanos
b062764ab7 Fix to actual version 2023-09-16 00:03:39 +02:00