1.8.2 Update manticore

This commit is contained in:
2026-04-06 17:44:25 +09:00
parent 075b796608
commit 0ad0529095
5 changed files with 73 additions and 0 deletions

View File

@@ -138,6 +138,8 @@ services:
ports:
http: "9200"
subuid: "100999"
manticore:
subuid: "100998"
version:
packages:
@@ -172,3 +174,4 @@ version:
paperless: "2.20.13"
vikunja: "2.2.2"
opencloud: "4.0.4"
manticore: "25.0.0"

View File

@@ -217,6 +217,14 @@
tags: ["site", "opencloud"]
tags: ["site", "opencloud"]
- name: Set manticore
ansible.builtin.include_role:
name: "app"
tasks_from: "services/set_manticore"
apply:
tags: ["site", "manticore"]
tags: ["site", "manticore"]
- name: Flush handlers right now
ansible.builtin.meta: "flush_handlers"

View File

@@ -87,3 +87,14 @@
changed_when: false
listen: "notification_restart_opencloud"
ignore_errors: true # noqa: ignore-errors
- name: Restart manticore
ansible.builtin.systemd:
name: "manticore.service"
state: "restarted"
enabled: true
daemon_reload: true
scope: "user"
changed_when: false
listen: "notification_restart_manticore"
ignore_errors: true # noqa: ignore-errors

View File

@@ -0,0 +1,26 @@
---
- name: Create manticore directory
ansible.builtin.file:
path: "{{ node['home_path'] }}/data/containers/manticore"
state: "directory"
owner: "{{ services['manticore']['subuid'] }}"
group: "svadmins"
mode: "0770"
become: true
- name: Deploy manticore.container file
ansible.builtin.template:
src: "{{ hostvars['console']['node']['config_path'] }}/services/containers/app/manticore/manticore.container.j2"
dest: "{{ node['home_path'] }}/.config/containers/systemd/manticore.container"
owner: "{{ ansible_user }}"
group: "svadmins"
mode: "0644"
notify: "notification_restart_manticore"
- name: Enable manticore.service
ansible.builtin.systemd:
name: "manticore.service"
state: "started"
enabled: true
daemon_reload: true
scope: "user"

View File

@@ -0,0 +1,25 @@
[Quadlet]
DefaultDependencies=false
[Unit]
Description=Manticore
[Container]
Image=docker.io/manticoresearch/manticore:{{ version['containers']['manticore'] }}
ContainerName=manticore_{{ manticore_service }}
HostName=manticore_{{ manticore_service }}
PublishPort={{ services[manticore_service]['ports']['manticore'] }}:9308
Volume=%h/data/containers/manticore/{{ manticore_service }}:/var/lib/manticore:rw
# General
Environment="TZ=Asia/Seoul"
[Service]
Restart=always
RestartSec=10s
TimeoutStopSec=120
[Install]
WantedBy=default.target