Add rootless Paperless-ngx service to Atlas

This commit is contained in:
Fabio Scotto di Santolo
2026-10-13 17:54:59 +02:00
parent ed2cd1acd5
commit d658fb6595
14 changed files with 662 additions and 100 deletions

View File

@@ -97,6 +97,17 @@ atlas_nextcloud_apps:
url: https://github.com/nextcloud-releases/calendar/releases/download/v6.6.2/calendar-v6.6.2.tar.gz
checksum: sha256:7e83632d4436d3037a34d1c73cbc06d5ccb6e8fc10f096a86a43a0515588529c
# Rootless Gitea was restored from the stopped-source export before production activation.
# Paperless runs rootless on dedicated ZFS datasets; NPM remains on Prometheus.
atlas_manage_paperless: true
atlas_paperless_domain: documents.fscotto.co
# Resolved official amd64 images on 2026-10-12; upgrades remain deliberate.
atlas_paperless_image: ghcr.io/paperless-ngx/paperless-ngx:3.2.1@sha256:5fa76604a81df6945086e0837b14b56543d137e8ce4f311cc5d9ebe907e74e79
atlas_paperless_postgres_image: docker.io/library/postgres:17-bookworm@sha256:3645570cccdfa447589da9f57dd740faa29b30938e861289a5574b6ca6b03826
atlas_paperless_valkey_image: docker.io/valkey/valkey:8-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571
atlas_paperless_tika_image: docker.io/apache/tika:3.3.1.0@sha256:90b7fa1dc018434075fce9e1d9b88b1e3d0ea6979d0cf86e116c79a8073ae973
atlas_paperless_gotenberg_image: docker.io/gotenberg/gotenberg:8.37@sha256:f29984bd1e226bf1b93ba90af06000afa8b315853e99d27b9aaa41b93f15c769
atlas_paperless_ollama_image: docker.io/ollama/ollama:0.40.3@sha256:adca95a12c2b386a8f9a995e7fa0600e187e3323b5e5522f5a6c3b1ec73eff99
atlas_manage_gitea: true
atlas_gitea_production_enabled: true
atlas_gitea_public_domain: git.fscotto.co

View File

@@ -325,3 +325,30 @@ atlas_aria2_rpc_port: 6800
atlas_ariang_web_port: 8091
atlas_aria2_image: CHANGEME_PINNED_ARIA2_IMAGE
atlas_ariang_image: CHANGEME_PINNED_ARIANG_IMAGE
# Rootless Paperless-ngx document management. Secrets live only in the encrypted Vault.
atlas_manage_paperless: false
atlas_paperless_dataset: "{{ atlas_zfs_pool }}/services/data/paperless"
atlas_paperless_root: "{{ atlas_app_data_mountpoint }}/paperless"
atlas_paperless_private_dir: "{{ atlas_admin_home }}/.config/atlas-paperless"
atlas_paperless_quadlet_dir: "{{ atlas_admin_home }}/.config/containers/systemd"
atlas_paperless_domain: ""
atlas_paperless_http_port: 8002
atlas_paperless_network_subnet: 10.90.11.0/24
atlas_paperless_network_gateway: 10.90.11.1
atlas_paperless_ocr_language: ita+eng
atlas_paperless_image: ""
atlas_paperless_postgres_image: ""
atlas_paperless_valkey_image: ""
atlas_paperless_tika_image: ""
atlas_paperless_gotenberg_image: ""
atlas_paperless_ollama_image: ""
atlas_paperless_llm_model: qwen2.5:1.5b-instruct-q4_K_M
atlas_paperless_embedding_model: nomic-embed-text:v1.5
atlas_paperless_services:
- atlas-paperless-db.service
- atlas-paperless-valkey.service
- atlas-paperless-tika.service
- atlas-paperless-gotenberg.service
- atlas-paperless-ollama.service
- atlas-paperless.service

View File

@@ -26,6 +26,9 @@
- name: Import Atlas iCloudPD storage and boot-started Quadlet tasks
ansible.builtin.import_tasks: icloudpd.yml
- name: Import Atlas Paperless-ngx document-management service
ansible.builtin.import_tasks: paperless.yml
- name: Import Atlas torrent service
ansible.builtin.import_tasks: qbittorrent.yml

View File

@@ -0,0 +1,255 @@
---
- name: Manage Atlas rootless Paperless-ngx
tags: [atlas, paperless]
when: atlas_manage_paperless | bool
block:
- name: Require isolated Paperless state, public domain and pinned images
ansible.builtin.assert:
that:
- atlas_manage_storage | bool
- atlas_manage_firewall | bool
- atlas_paperless_root == atlas_app_data_mountpoint ~ '/paperless'
- atlas_paperless_dataset == atlas_zfs_pool ~ '/services/data/paperless'
- atlas_paperless_domain is match('^[a-z0-9]+([.-][a-z0-9]+)+$')
- atlas_paperless_http_port | int > 1024
- atlas_paperless_http_port | int < 65536
- atlas_paperless_network_subnet != atlas_nextcloud_network_subnet
- item is search('@sha256:[0-9a-f]{64}$')
loop:
- "{{ atlas_paperless_image }}"
- "{{ atlas_paperless_postgres_image }}"
- "{{ atlas_paperless_valkey_image }}"
- "{{ atlas_paperless_tika_image }}"
- "{{ atlas_paperless_gotenberg_image }}"
- "{{ atlas_paperless_ollama_image }}"
- name: Require dedicated Paperless Vault secrets without exposing them
ansible.builtin.assert:
that:
- vault_paperless_database_password | default('') is match('^[a-zA-Z0-9]{32,}$')
- vault_paperless_secret_key | default('') | length >= 64
no_log: true
- name: Verify the existing application-data parent is mounted
community.general.zfs_facts:
name: "{{ atlas_zfs_pool }}/{{ atlas_zfs_dataset_app_data }}"
properties: name,mounted,mountpoint
register: atlas_paperless_parent
- name: Require the verified application-data parent
ansible.builtin.assert:
that:
- atlas_paperless_parent.ansible_facts.ansible_zfs_datasets | length == 1
- atlas_paperless_parent.ansible_facts.ansible_zfs_datasets[0].mounted == 'yes'
- atlas_paperless_parent.ansible_facts.ansible_zfs_datasets[0].mountpoint == atlas_app_data_mountpoint
- name: Create dedicated Paperless component datasets
community.general.zfs:
name: "{{ atlas_paperless_dataset }}{{ item }}"
state: present
extra_zfs_properties:
compression: zstd
mountpoint: "{{ atlas_paperless_root }}{{ item }}"
loop: ['', /data, /media, /consume, /database, /cache, /ollama]
- name: Prepare private Paperless paths and Quadlet directory
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: "{{ atlas_admin_username }}"
group: "{{ atlas_admin_group }}"
mode: "0700"
loop:
- "{{ atlas_paperless_root }}"
- "{{ atlas_paperless_root }}/data"
- "{{ atlas_paperless_root }}/media"
- "{{ atlas_paperless_root }}/consume"
- "{{ atlas_paperless_root }}/ollama"
- "{{ atlas_paperless_private_dir }}"
- "{{ atlas_paperless_quadlet_dir }}"
- name: Derive the rootless PostgreSQL host UID
become_user: "{{ atlas_admin_username }}"
ansible.builtin.command:
argv:
- podman
- unshare
- python3
- -c
- >-
print(next(int(host) + 999 - int(container) for container, host, size in
(line.split() for line in open('/proc/self/uid_map'))
if int(container) <= 999 < int(container) + int(size)))
register: atlas_paperless_postgres_host_uid
check_mode: false
changed_when: false
- name: Allow the rootless PostgreSQL UID to traverse its dataset root
ansible.builtin.file:
path: "{{ atlas_paperless_root }}/database"
state: directory
owner: "{{ atlas_paperless_postgres_host_uid.stdout | trim }}"
group: "{{ atlas_admin_group }}"
mode: "0700"
- name: Allow the rootless Valkey UID to write its persistent cache
ansible.builtin.file:
path: "{{ atlas_paperless_root }}/cache"
state: directory
owner: "{{ atlas_paperless_postgres_host_uid.stdout | trim }}"
group: "{{ atlas_admin_group }}"
mode: "0700"
register: atlas_paperless_cache_root
- name: Store Paperless secrets in private mounted files
ansible.builtin.copy:
content: "{{ item.value }}\n"
dest: "{{ atlas_paperless_private_dir }}/{{ item.name }}"
owner: "{{ atlas_admin_username }}"
group: "{{ atlas_admin_group }}"
mode: "0644"
loop:
- {name: postgres-password, value: "{{ vault_paperless_database_password }}"}
- {name: secret-key, value: "{{ vault_paperless_secret_key }}"}
no_log: true
diff: false
register: atlas_paperless_secret_files
- name: Admit only the Aegis gateway to the Paperless listener
ansible.posix.firewalld:
rich_rule: >-
rule family="ipv4" source address="{{ atlas_aegis_ip }}"
port port="{{ atlas_paperless_http_port }}" protocol="tcp" accept
zone: "{{ atlas_firewalld_zone }}"
state: enabled
permanent: true
immediate: true
- name: Keep the Paperless rootless user manager available at boot
ansible.builtin.command:
argv: [loginctl, enable-linger, "{{ atlas_admin_username }}"]
args:
creates: "/var/lib/systemd/linger/{{ atlas_admin_username }}"
- name: Render the private Paperless Quadlets
ansible.builtin.template:
src: "{{ item }}.j2"
dest: "{{ atlas_paperless_quadlet_dir }}/{{ item }}"
owner: "{{ atlas_admin_username }}"
group: "{{ atlas_admin_group }}"
mode: "0644"
loop:
- atlas-paperless.network
- atlas-paperless-db.container
- atlas-paperless-valkey.container
- atlas-paperless-tika.container
- atlas-paperless-gotenberg.container
- atlas-paperless-ollama.container
- atlas-paperless.container
register: atlas_paperless_quadlets
- name: Pull, start and verify Paperless
become_user: "{{ atlas_admin_username }}"
environment:
XDG_RUNTIME_DIR: "/run/user/{{ atlas_admin_uid }}"
DBUS_SESSION_BUS_ADDRESS: "unix:path=/run/user/{{ atlas_admin_uid }}/bus"
when: not ansible_check_mode
block:
- name: Pull the pinned Paperless images before starting services
containers.podman.podman_image:
name: "{{ item }}"
state: present
loop:
- "{{ atlas_paperless_image }}"
- "{{ atlas_paperless_postgres_image }}"
- "{{ atlas_paperless_valkey_image }}"
- "{{ atlas_paperless_tika_image }}"
- "{{ atlas_paperless_gotenberg_image }}"
- "{{ atlas_paperless_ollama_image }}"
- name: Reload the rootless user manager for Paperless
ansible.builtin.systemd:
scope: user
daemon_reload: true
- name: Start Paperless component services
ansible.builtin.systemd:
scope: user
name: "{{ item }}"
state: >-
{{ 'restarted' if
(atlas_paperless_quadlets.results |
selectattr('item', 'equalto', item | replace('.service', '.container')) |
selectattr('changed') | list | length > 0) or
(atlas_paperless_quadlets.results |
selectattr('item', 'equalto', 'atlas-paperless.network') |
selectattr('changed') | list | length > 0) or
(atlas_paperless_secret_files is changed and
item in ['atlas-paperless-db.service', 'atlas-paperless.service']) or
(atlas_paperless_cache_root is changed and
item == 'atlas-paperless-valkey.service') else 'started' }}
enabled: true
loop: "{{ atlas_paperless_services }}"
- name: Verify the Paperless HTTP service through its LAN listener
ansible.builtin.uri:
url: "http://{{ ansible_host }}:{{ atlas_paperless_http_port }}/"
status_code: [200, 302]
register: atlas_paperless_http
retries: 60
delay: 5
until: atlas_paperless_http is succeeded
- name: Verify the private Ollama API from Paperless
ansible.builtin.command:
argv:
- podman
- exec
- atlas-paperless
- python3
- -c
- >-
import urllib.request;
urllib.request.urlopen('http://atlas-paperless-ollama:11434/api/tags', timeout=10).close()
register: atlas_paperless_ollama_health
changed_when: false
retries: 30
delay: 5
until: atlas_paperless_ollama_health.rc == 0
- name: Check whether the local AI models are present
ansible.builtin.command:
argv: [podman, exec, atlas-paperless-ollama, ollama, show, "{{ item }}"]
loop:
- "{{ atlas_paperless_llm_model }}"
- "{{ atlas_paperless_embedding_model }}"
register: atlas_paperless_model_checks
changed_when: false
failed_when: false
- name: Download missing local AI models
ansible.builtin.command:
argv: [podman, exec, atlas-paperless-ollama, ollama, pull, "{{ item.item }}"]
loop: "{{ atlas_paperless_model_checks.results }}"
when: item.rc != 0
loop_control:
label: "{{ item.item }}"
- name: Verify private Office conversion endpoints from Paperless
ansible.builtin.command:
argv:
- podman
- exec
- atlas-paperless
- python3
- -c
- >-
import urllib.request;
urls = ['http://atlas-paperless-tika:9998/version',
'http://atlas-paperless-gotenberg:3000/health'];
[urllib.request.urlopen(url, timeout=10).close() for url in urls]
register: atlas_paperless_office_health
changed_when: false
retries: 30
delay: 5
until: atlas_paperless_office_health.rc == 0

View File

@@ -0,0 +1,27 @@
[Unit]
Description=Atlas Paperless PostgreSQL
RequiresMountsFor={{ atlas_paperless_root }}/database
[Container]
ContainerName=atlas-paperless-db
Image={{ atlas_paperless_postgres_image }}
Network=atlas-paperless.network
NetworkAlias=atlas-paperless-db
Environment=POSTGRES_DB=paperless
Environment=POSTGRES_USER=paperless
Environment=POSTGRES_PASSWORD_FILE=/run/secrets/postgres-password
Volume={{ atlas_paperless_private_dir }}/postgres-password:/run/secrets/postgres-password:ro,z
Volume={{ atlas_paperless_root }}/database:/var/lib/postgresql/data:Z
PodmanArgs=--memory=1g
HealthCmd=pg_isready -U paperless -d paperless
HealthInterval=30s
HealthStartPeriod=60s
NoNewPrivileges=true
[Service]
Restart=on-failure
RestartSec=10
TimeoutStartSec=900
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,20 @@
[Unit]
Description=Atlas Paperless private Gotenberg
[Container]
ContainerName=atlas-paperless-gotenberg
Image={{ atlas_paperless_gotenberg_image }}
Network=atlas-paperless.network
NetworkAlias=atlas-paperless-gotenberg
# Keep external content and JavaScript disabled for email/Office conversion.
Exec=gotenberg --chromium-disable-javascript=true --chromium-allow-list=^file:///tmp/.*
PodmanArgs=--memory=2g
NoNewPrivileges=true
[Service]
Restart=on-failure
RestartSec=10
TimeoutStartSec=900
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,27 @@
[Unit]
Description=Atlas private Paperless Ollama
RequiresMountsFor={{ atlas_paperless_root }}/ollama
[Container]
ContainerName=atlas-paperless-ollama
Image={{ atlas_paperless_ollama_image }}
UserNS=keep-id:uid={{ atlas_admin_uid }},gid={{ atlas_admin_gid }}
User={{ atlas_admin_uid }}:{{ atlas_admin_gid }}
Network=atlas-paperless.network
Environment=OLLAMA_HOST=0.0.0.0:11434
Environment=OLLAMA_MODELS=/models
Environment=OLLAMA_NUM_PARALLEL=1
Environment=OLLAMA_MAX_LOADED_MODELS=1
Environment=OLLAMA_KEEP_ALIVE=2m
Environment=OLLAMA_NO_CLOUD=true
Volume={{ atlas_paperless_root }}/ollama:/models:Z
PodmanArgs=--memory=3g
NoNewPrivileges=true
DropCapability=all
[Service]
Restart=on-failure
RestartSec=10
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,18 @@
[Unit]
Description=Atlas Paperless private Apache Tika
[Container]
ContainerName=atlas-paperless-tika
Image={{ atlas_paperless_tika_image }}
Network=atlas-paperless.network
NetworkAlias=atlas-paperless-tika
PodmanArgs=--memory=1g
NoNewPrivileges=true
[Service]
Restart=on-failure
RestartSec=10
TimeoutStartSec=900
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,21 @@
[Unit]
Description=Atlas Paperless private Valkey broker
RequiresMountsFor={{ atlas_paperless_root }}/cache
[Container]
ContainerName=atlas-paperless-valkey
Image={{ atlas_paperless_valkey_image }}
Network=atlas-paperless.network
NetworkAlias=atlas-paperless-valkey
Volume={{ atlas_paperless_root }}/cache:/data:Z
Exec=valkey-server --appendonly yes
PodmanArgs=--memory=256m
NoNewPrivileges=true
[Service]
Restart=on-failure
RestartSec=10
TimeoutStartSec=900
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,54 @@
[Unit]
Description=Atlas Paperless-ngx
Requires=atlas-paperless-db.service atlas-paperless-valkey.service atlas-paperless-tika.service atlas-paperless-gotenberg.service atlas-paperless-ollama.service
After=atlas-paperless-db.service atlas-paperless-valkey.service atlas-paperless-tika.service atlas-paperless-gotenberg.service atlas-paperless-ollama.service
RequiresMountsFor={{ atlas_paperless_root }}/data {{ atlas_paperless_root }}/media {{ atlas_paperless_root }}/consume
[Container]
ContainerName=atlas-paperless
Image={{ atlas_paperless_image }}
UserNS=keep-id:uid={{ atlas_admin_uid }},gid={{ atlas_admin_gid }}
Network=atlas-paperless.network
PublishPort={{ ansible_host }}:{{ atlas_paperless_http_port }}:8000
Environment=USERMAP_UID={{ atlas_admin_uid }}
Environment=USERMAP_GID={{ atlas_admin_gid }}
Environment=PAPERLESS_REDIS=redis://atlas-paperless-valkey:6379
Environment=PAPERLESS_DBENGINE=postgresql
Environment=PAPERLESS_DBHOST=atlas-paperless-db
Environment=PAPERLESS_DBNAME=paperless
Environment=PAPERLESS_DBUSER=paperless
Environment=PAPERLESS_DBPASS_FILE=/run/secrets/postgres-password
Environment=PAPERLESS_SECRET_KEY_FILE=/run/secrets/secret-key
Environment=PAPERLESS_URL=https://{{ atlas_paperless_domain }}
Environment=PAPERLESS_TIME_ZONE={{ atlas_timezone }}
Environment=PAPERLESS_OCR_LANGUAGE={{ atlas_paperless_ocr_language }}
Environment=PAPERLESS_CONSUMPTION_DIR=/usr/src/paperless/consume
Environment=PAPERLESS_DATA_DIR=/usr/src/paperless/data
Environment=PAPERLESS_MEDIA_ROOT=/usr/src/paperless/media
Environment=PAPERLESS_TIKA_ENABLED=1
Environment=PAPERLESS_TIKA_ENDPOINT=http://atlas-paperless-tika:9998
Environment=PAPERLESS_TIKA_GOTENBERG_ENDPOINT=http://atlas-paperless-gotenberg:3000
Environment=PAPERLESS_AI_ENABLED=true
Environment=PAPERLESS_AI_LLM_BACKEND=ollama
Environment=PAPERLESS_AI_LLM_ENDPOINT=http://atlas-paperless-ollama:11434
Environment=PAPERLESS_AI_LLM_MODEL={{ atlas_paperless_llm_model }}
Environment=PAPERLESS_AI_LLM_EMBEDDING_BACKEND=ollama
Environment=PAPERLESS_AI_LLM_EMBEDDING_MODEL={{ atlas_paperless_embedding_model }}
Environment=PAPERLESS_AI_LLM_CONTEXT_SIZE=2048
Environment=PAPERLESS_AI_LLM_REQUEST_TIMEOUT=300
Volume={{ atlas_paperless_root }}/data:/usr/src/paperless/data:Z
Volume={{ atlas_paperless_root }}/media:/usr/src/paperless/media:Z
Volume={{ atlas_paperless_root }}/consume:/usr/src/paperless/consume:Z
Volume={{ atlas_paperless_private_dir }}/postgres-password:/run/secrets/postgres-password:ro,z
Volume={{ atlas_paperless_private_dir }}/secret-key:/run/secrets/secret-key:ro,z
PodmanArgs=--memory=2g
NoNewPrivileges=true
DropCapability=all
[Service]
Restart=on-failure
RestartSec=10
TimeoutStartSec=900
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,5 @@
# Managed by Ansible: private rootless Paperless network.
[Network]
NetworkName=atlas-paperless
Subnet={{ atlas_paperless_network_subnet }}
Gateway={{ atlas_paperless_network_gateway }}

80
docs/atlas-paperless.md Normal file
View File

@@ -0,0 +1,80 @@
# Paperless-ngx on Atlas
Atlas runs Paperless-ngx as six `admin`-owned rootless Quadlets:
Paperless 3.2.1, PostgreSQL 17, Valkey 8, Apache Tika 3.3.1.0 and
Gotenberg 8.37, and Ollama 0.40.3. State is isolated beneath
`zpool/services/data/paperless` in `data`, `media`, `consume`, `database` and
`cache`, and `ollama` datasets, so recursive ZFS snapshots, Borg and the UUID-bound USB
backup cover it without an application-specific backup job.
The only published listener is `192.168.178.55:8002`; Atlas firewalld admits it
only from Aegis. The database, broker and Office converters have no host
listener. Paperless is
configured with the canonical public URL `https://documents.fscotto.co`.
Ollama has no published host port and is reachable only on the private Paperless
container network. Paperless uses `qwen2.5:1.5b-instruct-q4_K_M` for suggestions
and chat and `nomic-embed-text:v1.5` for local document embeddings. Its context
is capped at 2048 tokens; Ollama is limited to 3 GiB, one loaded
model and one parallel request because Atlas has little spare RAM. Model files
are downloaded once from the Ollama registry; documents are not sent there.
The small language model trades answer quality and speed for resource safety.
Review AI-generated suggestions and answers before relying on them.
After the first deployment, build the LLM index when convenient (it may take
time and CPU proportional to the document count):
```sh
sudo -iu admin XDG_RUNTIME_DIR=/run/user/1000 \
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus \
podman exec atlas-paperless document_llmindex rebuild
```
The scheduled incremental index update runs daily. After changing the
embedding model, rebuild the index again. App Configuration values in the
Paperless database take precedence over environment variables, so avoid setting
AI endpoint/backend overrides in the UI if Ansible should remain authoritative.
Tika and Gotenberg enable DOCX and other Office imports. Paperless retains the
original and produces a PDF rendition; this does not add in-browser editing.
Gotenberg disables Chromium JavaScript and restricts file access for email
conversion. A targeted role run probes both converters from inside Paperless.
## Initial deployment
The required encrypted-Vault fields are `vault_paperless_database_password`
and `vault_paperless_secret_key`; do not place them in host variables or paste
them into chat. Generate unique values through the local Vault workflow before
the first run. The service assertion deliberately rejects absent or weak
values.
Deploy with:
```sh
ANSIBLE_LOCAL_TEMP=/tmp/ansible-local \
ansible-playbook ansible/site.yml --limit atlas --tags paperless --check --diff
ANSIBLE_LOCAL_TEMP=/tmp/ansible-local \
ansible-playbook ansible/site.yml --limit atlas --tags paperless
```
After it is healthy, add an NPM Proxy Host manually on Prometheus for
`documents.fscotto.co` to `http://192.168.178.55:8002`, request its TLS
certificate, and keep Websocket Support enabled. DNS and NPM remain explicit
operations and are not changed by the Paperless role.
Create the initial Paperless administrator interactively from an Atlas SSH
session; do not put an initial user password in the playbook or Vault:
```sh
sudo -iu admin XDG_RUNTIME_DIR=/run/user/1000 \
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus \
podman exec -it atlas-paperless document_index reindex
sudo -iu admin XDG_RUNTIME_DIR=/run/user/1000 \
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus \
podman exec -it atlas-paperless createsuperuser
```
The first command is optional for a new empty instance; it is included as a
safe way to ensure the index is current before using Paperless. Put scanned
files in the private `consume` dataset only via an intentionally configured
source; Paperless consumes and moves them into its managed media store.

View File

@@ -1,101 +1,113 @@
$ANSIBLE_VAULT;1.1;AES256
36616436366637373963326235323736623235633666353235383933663230616532613131636466
3132633562663861353835633633653764376634636638620a636662316234316164626635646539
63343233373531373833626437656630363330363932353136653834313830646431343961386237
3166323135376665620a383334616634356361326134313930613266333136393238366566343233
33366335353639316164346239336539636335393130663261333065363733323163613437396332
35663339623338363737383332396238346430353730356632623964323134663434336363613564
63306464623331643738666234343162643630353061363231313933633733626165333763653461
39663066376637623939383964333663306137663433313334313132323465623534666133393533
36633036376538623764363165663861383135663437343230366165636530663165643538376161
62653335666463653538356635333339353165336333306462373233316438386539613361383039
34663336636565343035626238633139356638636535373239386463663738633036383861633062
35313735333530306666313966333061326338393533333936633634633136353237643464376563
35626266363237613037663934666538356639366637643037386336316131343965616137336330
64623432663033653066353661613366313065366264663138643965346363626562366433326461
65316661346631343330633033326630306536633831366231363066323861366662363861666364
38623438633235646430613935363932386237303132343236303439633939373862366565313864
35306332636562636466333739343663343762343163343738646234353638303134643763636639
36613662633135303733376333613235333637646661326235373732306139363363623632666262
38366436613733316465623438343334333861313161363131376132613232376663623230623533
38303061386639616631383636303966666338353865626464363434353661393665613862303130
62303664653362336433356239626661353864363537346234613331376331313038633138363565
31616232653265343430646537373835643163396530353832366337663363386635306665643432
66393838363266383230363633313235376130356436633137636637666562383165643862313931
63346633343334333662363334373865653232623938363162363362646361383961376532626339
30643537356436346161353161626232303962396463323037653235343633643261396134373061
61323463653962363639373531366130326431353635346463396434393336313730373431316334
37313032666231383536363535326239383363346137363037653930373261326338303936663234
36326635346465316233363266383337343335653239393830356262346530363734383532303936
38633065633135666438333832333336636365326430656534313332356662356165616563333035
35363833363636346430356461306337396561366536326139623131303638333733616663653336
65623062626366386364343036386633626236363638393565323163623936663930363864656264
61323566376464356532316366633663623031613439653635323339363730366231326531303163
62313638393962653064303934663436376335663763333965366230323466646463653665656466
62643164616331636464613934376335353437653662363433363533613633633536346662656339
62353565303464373438383234353237636239313062643036383161303735386539613533383334
63383065613236316633623936383130353466383865376336393733663434663636333463336334
37356233306333366463303839643363393463636630306632326339646661643162323334633331
66613731313733646362396534356236363361363330383230303731356261333336653930303161
35353336326438376563616534616361353233373232303034623465656261326664393962326632
36373936393261616338396630383034323462646664623566663064316438363065646330353362
32633566666263333863383264363762323964356430336539623633643537336538353037396566
63396537626465363531393161653939633461366231326234663161646364616338636236313332
35646664333763623532306637383961623538643164633939303561316262316463646665353633
66313164646134646132653338356531303435623130343864326236353939356433396164336236
36623066396435323532356663326163636637346463626235616132353932326438303233393830
64326563303365646664376337303539643032363537633139623665346130636631386662373762
66336565303334303561386134343730306566303036313933613134366238303636316238363165
66373531633430363730376236353939626137323862623538356233616363376330366433633032
37363538393331376665623230623233343065653139313431323966326238636663633030393734
32643635326266646636663539353537623062633130386532373638396366353038663861333033
63343031383238306139653932366433346564643233323937316134306666623030623137313736
39623537346564623236353131656465326632303038366261626661333931323265396262636661
35313739306432323034643832623831373831666231643862613736393135383561386365323835
35623863396339653038316262303263313262616361666666343331393666663530363764643639
31353564633835323031303835636261613839353031373334366335323465326536323762626633
37343633376666323963336436623533346261396438343336663630366434383961393738383263
65383036333031643336393835303835363733663634653463313639313939636539386634663464
32643034383835333533343434656234343134313934323462643631653337383536363165613835
63393437653261653966313237633939626330316631633335386235346465663332336337613865
30626332353130326430316266363062353636356663663439346662313461393835663864656561
62633131323937656239383531373863393865386265663038346535616463326630646565663463
64393861366635656130386434633431393661656438333832633366333730643639333036613935
31363764396466333964343136363630386530343662656362316137306634383032363962616530
38393731346236353530626263336366376466343430316235653363396565656435323531393438
61356464333539636637363632626661663634333331643734316230663736333134383664376231
37613339613266663831613030633466326439323635626638343430383230333639333561646431
66313634373365373137613134373635333535333164353134623937633066613330393430633438
35366261633739623963623331373262313865326264386334633630653263343637343633313366
33303036623333633365373830333465333931633761636366323939363463303239363461333139
33396663376335646137393436323463383461336233646236306331636361653964346536666637
36376133326431333234613435613535316263313364396362386537343565393533356564633338
64363261323838343531326234343138303133626636653732313234383662326131313431323332
32636539323033376434323939666437373936383763323762636439323836656432303833363362
35646235653839303838363936613166643662393131373438633265316136663264316332663638
32613535643565303566376530373065646333356136613462666465396566313933323261663736
66396565396261306139396364393962393361326363666439333566376561366466626335363461
34356232353664346234316330363962656332396236383136353461333234313662633234346565
34376365356133396239383333643163386133316461633032373035323131663139336339346633
32373633663231373361393762396632383738616330333038646439336532303461663430613133
37633833393762303035353566633736353130663136626666613061383732326233303831386466
38313162623836373533326361313031303636393564656634393263306262376336303663363933
30643266626632366333323434383063356363646264363133306566316533356438633135336130
62663335386335636364313234633965373961353135373339316337626665323761336133653364
33393733383330656432356231313236646163666565373666633637373765346636336235316534
64613536333433626261646333373539383862366334376137373862323232653362346431386164
36643536613133396162653132616134663538393566323363353038383464663638303865376336
30333833313764643130366533646234343339356562663036373137356565643762306261316632
33323134633562303263383931623565383766653536353565303266353862643234346637653132
63646130646339663035333963323366373331616462613236623133646239363134333165646133
64643433373134656161653130323537613361643731653938623036383331633861666332376361
39373962653630326561323662303664636161386461383833363865663935303132353637386633
37346566626439323863393064643765636337616231363066636539306439356632633032663065
66363839616430666233373033376362623862383066396565633632306534623036626335393039
32343132616465383961373432336233376339393863663136663435303266333038333566313665
61303561376366306331633730616265343662333833633533643465373663663634636632666234
31373332323234376430306538386138316431623133626636633034333735303337663335646461
61653439653663653930666332313334623264323539613037323534666137616165373865306531
36306137663164316534373738383865363333316363323538356139646139363064383666626536
66653363393433316335623063633436353761313065636631623366646633353735326362366162
64613736343363333834
65653930623235356266653933303931353435396332656139636338376565336361376130623561
3933386332396439346537323330353664643635326561350a386363633637313731356430336261
62316335306166396265643166613639633835616332666165383963323764376333643038656630
6539373837333638620a313737373963626237626332316464393966396637643430643064643933
63336565306466383535643833323038373034623939313264643935663433343232313065323836
66313736646163643430653930356130303532663134656331303261356133326561383939663634
39613137623564643865636339663439356563623161656536306239343534376561613432616530
33393564636331386561613339666161666331313365653535303962643564633964383736393462
37303935376537623634303439353633356537613666386530343936616439343537336564643037
61303064646533343562666361306361383031356331626635323831383361653039646438636338
64386565323237643166343036646636356135616635396163623337613864303362356266636430
37353834653536366137616462623737646565363932363361336530383366376636333032653562
37613830363935313763353363633664633565643465643336376665653461613461343263303339
64323261616563346230633830633739376135623531366136383831663032373961383430623437
62613439616663343336633964306234343731396564633233663765353936666332623932306366
30656665323862353264346638663365633363336464663233323431633336323030323530663739
33326562373039633337373038363763636639666432386235336131306139333033633534643635
62343233663532613033346263643362313739313536663861623436363130613962663233303437
31383937323066623964333930336331383961636261646531396263663639663834343631623365
33303165656134376161636663323137613964393861346136306139656139376566353137383035
32363164656536353635656464333466316434646139613063623762303763663263316262623562
35336433316632363835316437316238353030376331633965336336633164653035643139336639
30376238633861643738343130343365326662663264316265396666313063333038386464396162
32636462636462613862383464623934623930353561383433316432626465333538316262316536
30393862343138343135353662383865633832623433316464353830323538393064653639623236
64643733663861666334656631376461303462633731653963356437636662393536616664663232
35636664643533656439646639363338303438663936643935623935356662643439636261643738
61373961643862383866353137323636336364633963333136363364303561373739316464336131
39306537373431326331623066386431356236323135663130373162323931393033653366323137
37613933613065323639303965356464356436333464313763386630353632623863653236303533
37393532356131303636666663646661666163663638323136353562356463626435366339636262
35353534633032376362633730396163343835636134666137653430663465616463643134616664
66633437653738383939323264333237636232663430666234383038396337326430376435363636
66323737373636343535613836663231316632636262393738613062373936346563626532343730
37636138643932336233366564336235356338343136373261353631333039356662616135613231
61306330626537653032356465303639373132303631356531373832366637653262366631303032
35383832633939643163393331313735343035346361393635356562333261643266383331333962
34616566393036326336396636313834663834643664363663653737383638306331383432343339
65663433313562326537623263393662376636306563363230376338386361386366613163343635
32333330353539656165356336366439653930636263326634303663616130656337653339336166
33616132373537373032323037373733353362653565343761363638636434373566643738393830
35373566643535306535346631663062643561663435346634313237613164643061336432373337
38346233393039656633633666386339386161336363386539626137383363336139396432376531
32303036643537393233333636343539653761353034333739633638656366346337396661636535
61313664353962363731653535616562383031313535313431353063663139663737663631393361
30613762653537383563373964646564386666393935376130613263663163373236383431343031
38633761663438643439386634393330313736663237323834306530613430636536626630306561
32313232346166613733633031646362616438646332383963326537633031663562336566306431
32396634353135366432323461353738376237356338373364333136383262353462623431646361
33333333373730393239366464396334353162396139333437366466616537653038626339383232
61313335396637323334666466323234353931346263613238643539646662346564666661393634
35646266343131653133373162623031316434313734353635333366623264366534326335366435
64393832666431653038653663356236373934636466303963336661303736316638316361333065
33636266393865643466386265656265316361663636353463313364653166393065653261363337
63336464396164626561303462353731373664396132643162336634393838386339393666393262
64386135663536336565393733346166343261656534353435346336353637306662386436313430
37613337353438326566346536646462343963386330356233373866383262333831333533623665
30656566643239616464373936333033323834363032376439616662396666383738316634346365
36633065313934383961353130373431323735356163393662343337376633323563616637643431
30653336333066626565383961623462623937613565383736353530356333626636353536363937
31333939356166323931623064633266363761323164613132313862613937303732393064353634
66343439336338636465376431636238346636356235643938326337623930643435626265613366
39666631353331616334366130383330653366633831303365386636373534343432313139633531
61653437656537346662643236626335653166613833616233646664663565613438393734613331
65353633653031353664393232613062633331336163386638333662343862366365386433353065
61346237323964333937616364323463646433646462636530393435386464336164333166313538
35323663336363383836646132613166353464323130346566626436653766383766353436383831
62623639396534353632643437373234373961653662316163613935333239323433643961346463
35633038393766343930336338636662306236613239323262373830623231363132613037656337
65363233643261353333343564663465303062633336313764383136626238636662623335303531
66623039623435623339393362616335303265653730643765656163333739376234636665393436
65656161343864363735646232346266656435626134663463386134633733343437643230626636
34386133633736323662313332623630613937663266623030303065623065613434616238373961
31373431356233393435303539646436613835366336636533613061613834303764393763386235
62656261626334386638653035306131346131353866373163643937376536343630353630376364
64613162326164366139636438383363373861653034306361373630663465326433653536663761
34393635616464343932346534613030386363343866623837623634326630343930666335376535
39383430636531343934616237373664383935323064656665623965346162393433316231326134
66343437386663643563393039666132343237666663343535363539353731313661326166386236
61343236646635386237366239383364623366366563306238376562336433633438653832343931
30623165356133376264396137366164633538386631333965386332633236303261373535666230
34636161393435356130323637373039306435393032396161363963663936396235333862666236
66326639396463626137613639316264633837363561633935663038383535626661613235623231
37653239613362633736376430343734653662656362363566393766623638316630626335356130
37363161393931633335376533333438393838326133623338343039636534663363353763643361
35613537313038653736643935666530383632376630346663323334343932633138376230373937
34336263303631643031336365613765343134393661623637376339656634393134303865313432
61643730306662323239373065346664316537396136373138326464633865623134643835313264
65616361613538653533383364623565316237306531623230666230643131356238356132623136
61666635396566316464386363373332633036356435383333616363333436663366343436646136
32366337333366343435633261326465363164333730376136343762373264373938373539663437
31396262386462643239346533303433643064383064313831333630383061346566653436313239
63646465643630323938643262386438303132623635643931373663623736376539336638343734
37306535633339663833363765343138663336303036623932333462363434346134623165313331
65326338616462353764333735313833663032663965306666316262653963633430346337616333
65613933333630653435623437396234316230633335363134666536363865666362636534306135
37383433393665326466623333363264333439383739623130636439383035376531633664623564
61663838316566323064643931643465333163616431633362663661396238346230396439653637
31633264376534373164373265356564636334373339623331333336313833376436633934653739
31326162376533333562396563396539663163653634396666653331343132383462343461383937
38626565313165346165633865323765323962663062316336343638326134393832646463666137
61356233386431333664636365663436646633343132646535613863663639626461636261306531
32333335333634363233373534356334323532333237396331363963393363623935303130323639
33313939316562653765383933373234666266316339333233346363393236393265613835656538
64643231666333356163303035663732613131373434376632313133616135313131376335633630
38386337343734653766653662653231653235623733643365313335623863356166623035383061
38633862383436343036313632386665663561623262643435346434666234623635333437316233
31393331333736373335353434626163656265663165363363323834623964393738333962313537
63646231663535326563303566316231386331623233653231303032626365356162653063636139
32353666613235623037656533316338323238343038393764666334633837623538663163353839
31396262626464646564363466313463613562373633333332393432346333626263323036326239
64613361323230653036

View File

@@ -11,6 +11,8 @@ vault_atlas_icloudpd_apple_id: "REPLACE_ME"
vault_atlas_admin_password_hash: "REPLACE_WITH_A_SHADOW_COMPATIBLE_HASH"
vault_atlas_samba_password: "REPLACE_ME"
vault_atlas_immich_db_password: "REPLACE_ME"
vault_paperless_database_password: "REPLACE_WITH_A_UNIQUE_RANDOM_ALPHANUMERIC_SECRET"
vault_paperless_secret_key: "REPLACE_WITH_A_UNIQUE_RANDOM_SECRET_AT_LEAST_64_CHARACTERS"
vault_nextcloud_database_password: "REPLACE_WITH_A_UNIQUE_RANDOM_ALPHANUMERIC_SECRET"
vault_nextcloud_redis_password: "REPLACE_WITH_A_UNIQUE_RANDOM_ALPHANUMERIC_SECRET"
vault_nextcloud_onlyoffice_jwt: "REPLACE_WITH_A_UNIQUE_RANDOM_ALPHANUMERIC_SECRET"