mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
11
roles/unmaintained/odoo/templates/odoo-server.conf.j2
Normal file
11
roles/unmaintained/odoo/templates/odoo-server.conf.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
[options]
|
||||
db_name = {{ odoo_db_name }}
|
||||
db_host = {{ odoo_db_server }}
|
||||
db_user = {{ odoo_db_user }}
|
||||
db_password = {{ odoo_db_pass }}
|
||||
addons_path = {{ odoo_root_dir }}/app/odoo/addons
|
||||
workers = {{ odoo_workers }}
|
||||
http_port = {{ odoo_xmlrpc_port }}
|
||||
longpolling_port = {{ odoo_longpolling_port }}
|
||||
email_from = {{ odoo_email }}
|
||||
smtp_server = localhost
|
17
roles/unmaintained/odoo/templates/odoo-server.service.j2
Normal file
17
roles/unmaintained/odoo/templates/odoo-server.service.j2
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Odoo Server
|
||||
After=network.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User={{ odoo_user }}
|
||||
Group={{ odoo_user }}
|
||||
ExecStart={{ odoo_root_dir }}/bin/python3 {{ odoo_root_dir }}/app/setup/odoo -c {{ odoo_root_dir }}/etc/odoo-server.conf --proxy-mode --no-database-list --without-demo=ALL --data-dir={{ odoo_root_dir }}/data
|
||||
PrivateTmp=yes
|
||||
PrivateDevices=yes
|
||||
ProtectSystem=full
|
||||
ProtectHome=yes
|
||||
NoNewPrivileges=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
3
roles/unmaintained/odoo/templates/post-backup.sh.j2
Normal file
3
roles/unmaintained/odoo/templates/post-backup.sh.j2
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -f {{ odoo_root_dir }}/db_dumps/*
|
11
roles/unmaintained/odoo/templates/pre-backup.sh.j2
Normal file
11
roles/unmaintained/odoo/templates/pre-backup.sh.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
PGPASSWORD={{ odoo_db_pass | quote }} /usr/bin/pg_dump \
|
||||
--format=custom \
|
||||
--clean \
|
||||
--username={{ odoo_db_user }} \
|
||||
--host={{ odoo_db_server }} \
|
||||
--file={{ odoo_root_dir }}/db_dumps/{{ odoo_db_name }}.sqlc \
|
||||
{{ odoo_db_name }}
|
Reference in New Issue
Block a user