Fabian Ohler
fc4b2094c4
add visibility of PAPERLESS_PRE_CONSUME_SCRIPT
2022-01-26 10:48:05 +01:00
Alex Kavanagh
3e868c40d4
Fix PAPERLESS_TIKA_GOTENBERG_ENDPOINT in a/t/main.yml
...
This fixes the ansible role for installing paperless-ng where the config
item PAPERLESS_TIKA_GOTENBERG_ENDPOINT derived from the wrong ansible
variable "paperlessng_tika_endpoint". This patch corrects that to
"paperlessng_tika_gotenberg_endpoint".
2021-08-30 18:01:33 +01:00
Fabian Ohler
e80852bcb3
Adjusted paperlessng_version variable explanation
2021-05-26 08:30:17 +02:00
Fabian Ohler
cc62695cc3
adjust ansible README to installation instructions
...
and fix some typos
2021-05-24 15:10:41 +02:00
Fabian Koller
884d85de56
Fix GitHub actions
...
Follow-up to #630 .
The check for the target git sha can does not work in the molecule step.
Instead expose the sha through an env variable in GitHub actions.
2021-02-26 19:39:44 +01:00
Fabian Koller
bd41efe868
Use local HEAD hash as installation target
...
GitHub actions' GITHUB_SHA provides unexpected hashes for manually
re-run pipelines. Instead rely on the commit as seen from the current
git history.
2021-02-25 06:59:27 +01:00
Fabian Koller
3c8df1194d
Handle OCR languages with hyphens
...
See https://github.com/jonaswinkler/paperless-ng/issues/584#issuecomment-782830878
2021-02-23 08:48:46 +01:00
Fabian Koller
659dcbb3c1
Update exposed configuration variables
...
Include the newly added OCR clean and deskew parameters
2021-02-23 08:35:10 +01:00
jonaswinkler
bcad9c2ce4
update dependencies
2021-02-21 00:24:33 +01:00
jonaswinkler
65b832c964
possible fix for the ansible roles
2021-02-07 00:49:53 +01:00
jonaswinkler
9cd07445eb
Merge branch 'master' into dev
2021-02-03 15:24:38 +01:00
Fabian Koller
7d2666148e
Apply consistent name structure to vars
2021-02-03 08:06:34 +01:00
jonaswinkler
0d49b2dc87
adjust ansible scripts to use gunicorn.conf.py
2021-01-31 15:36:52 +01:00
jonaswinkler
43d60f4bbe
Merge branch 'feature-websockets-status' into dev
2021-01-31 14:37:15 +01:00
Fabian Koller
1ba1b3a946
Switch CI target to sha instead of ref
2021-01-31 11:28:54 +01:00
jonaswinkler
fce76d0671
Merge branch 'dev' into feature-websockets-status
2021-01-30 16:08:50 +01:00
Fabian Koller
45c4fe4709
DEBUG - use very long txt file
2021-01-30 14:13:03 +01:00
Fabian Koller
169eae0b7b
DEBUG - force flush 2nd try
2021-01-30 12:50:49 +01:00
Fabian Koller
c309da2603
DEBUG - force newline in .txt
2021-01-30 12:20:55 +01:00
Fabian Koller
88c2c8df53
force flush on temp file during consumption
...
file.write() does not guarantee that a file handle contains anything
without calling an accompanying file.flush()
For typical files that are larger than the OS-file buffer, this is no
problem
For small files (e.g. 64 characters in a .TXT), this race condition
leads to `inode/x-empty` because the file inode is created, but no
content is written to it
2021-01-30 11:51:43 +01:00
jonaswinkler
89cb41d564
update configuration
2021-01-27 19:57:04 +01:00
Fabian Koller
a272f82796
Build source package in paperlessng_directory
...
Avoids permission problems in /tmp
2021-01-25 21:57:20 +01:00
Fabian Koller
e2ce565bc3
Simplify building from source
...
Do not package app, instead copy directly into expected directory
2021-01-24 09:59:54 +01:00
Fabian Koller
2fd8b4d56b
Simplify molecule tests
...
"Upgrade" path includes multiple paths anyway:
- installing the latest official release package
- builing the current PR from source
- upgrading between the two versions
2021-01-23 22:55:46 +01:00
Fabian Koller
8dd127a249
Fully prepare release package
2021-01-23 22:45:32 +01:00
Fabian Koller
e3c49ac78d
Determine installed version by git commit hash
2021-01-22 16:28:13 +01:00
Fabian Koller
db605d6a86
Adapt github action to build PR version
2021-01-22 11:10:56 +01:00
Fabian Koller
6f3e7473f6
Build release archive when version is not avail
...
Default ansible installation version to "latest" (pulls the latest
published release archive).
2021-01-22 10:49:59 +01:00
Jonas Winkler
06d3f8aa07
Merge pull request #367 from C0nsultant/ansible-verifyupdates
...
Ansible - Verify that updates between versions work
2021-01-19 16:53:49 +01:00
Fabian Koller
e1d903a6df
molecule scenario to test upgrading from releases
...
Provide a separate scenario to install the last release, then update to
the current one.
Also includes improved deployment verification (check if uploading a
.txt through the API works).
2021-01-18 22:51:40 +01:00
Fabian Koller
88ad813bc6
Make update ansible role paths explicit
2021-01-18 22:51:40 +01:00
Jonas Winkler
0a9adfdc34
Merge pull request #355 from C0nsultant/ansible-documentation
...
Ansible - Provide documentation
2021-01-16 14:30:07 +01:00
Fabian Koller
9832215d49
Update ansible README.md
2021-01-14 21:50:07 +01:00
Fabian Koller
690b22c489
Update to 0.9.14
2021-01-14 21:23:44 +01:00
Fabian Koller
f0b2dbbe94
Update to 0.9.13
2021-01-09 11:52:39 +01:00
Fabian Koller
b436102a72
Deploy role to ansible galaxy
...
Happens only when a new tag is pushed
2021-01-04 06:42:34 +01:00
Fabian Koller
cbfd106293
Update to 0.9.11
2020-12-31 11:47:54 +01:00
Fabian Koller
0a66b9ff8c
Change default OCRmyPDF args
...
Clean is hardcoded as True, anyway
Deskew breaks tesseract redo
2020-12-31 10:01:57 +01:00
Fabian Koller
61e6819b33
Update to 0.9.10
2020-12-31 09:53:29 +01:00
Fabian Koller
6b16307636
Fix creation of user arg
...
json.loads is picky in that is expects true json, not yaml from ansible
2020-12-29 23:54:22 +01:00
Fabian Koller
4d07690890
Harden systemd service files, drop perms further
2020-12-29 23:30:59 +01:00
Fabian Koller
ce8c968c79
Integrate OCRmyPDF args into ansible config
2020-12-29 22:43:52 +01:00
Fabian Koller
f1bd6f1a4c
Move paperless.conf to /etc, drop permissions
2020-12-29 21:55:59 +01:00
Fabian Koller
dd3d55c6b9
Make role compatible with ansible 2.7
...
Recursive remote copy is supported starting with 2.8 only
Indentation behaviour in literal yaml strings seems to have changed
Regex logic for ImageMagic was flawed (no idea why this worked before)
2020-12-29 20:59:49 +01:00
Fabian Koller
39dc72b36d
Verify role for Ubuntu 20.04
2020-12-28 12:51:49 +01:00
Fabian Koller
c9d90d8ae0
Add molecule test for role
...
Only test default installation with jbig2enc and sqlite
2020-12-28 11:28:19 +01:00
Fabian Koller
2b761cb3c6
Drop all permissions to paperlessng user
...
Also make role idempotent
2020-12-28 11:18:24 +01:00
Fabian Koller
36ac1eeb57
Do not clear static files on every run
...
Django collectstatic knows when files change.
2020-12-23 14:05:35 +01:00
Fabian Koller
76e95d75f8
Fix fresh installation
...
We can't backup a nonexistent folder.
2020-12-23 13:39:16 +01:00
Fabian Koller
f4e2c46d92
Allow running role on all Debian releases
...
Dynamically template current release string where required.
2020-12-23 13:31:30 +01:00