This commit is contained in:
parent
050205e95c
commit
4870960b45
6 changed files with 19 additions and 11 deletions
|
@ -1,9 +1,11 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
root_access:
|
root_access:
|
||||||
- blackdragon
|
- blackdragon
|
||||||
- ak
|
- ak
|
||||||
- foobar
|
- foobar
|
||||||
- polyfloyd
|
- polyfloyd
|
||||||
|
|
||||||
nodejs_version: 22.x
|
nodejs_version: 22.x
|
||||||
thelounge_version: "4.4.3"
|
thelounge_version: "4.4.3"
|
||||||
thelounge_ldap_url: ldaps://ldap.bitlair.nl
|
thelounge_ldap_url: ldaps://ldap.bitlair.nl
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
chat_user: thelounge
|
||||||
|
chat_group: thelounge
|
||||||
|
chat_configdir: "/etc/thelounge"
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Reload systemd
|
- name: Reload systemd
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
|
|
@ -19,12 +19,12 @@
|
||||||
- name: Ensure directories are present
|
- name: Ensure directories are present
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item.path }}"
|
path: "{{ item.path }}"
|
||||||
owner: "thelounge"
|
owner: "{{ chat_user }}"
|
||||||
group: "thelounge"
|
group: "{{ chat_group }}"
|
||||||
state: "{{ item.state | default('directory') }}"
|
state: "{{ item.state | default('directory') }}"
|
||||||
mode: "{{ item.mode | default('0770') }}"
|
mode: "{{ item.mode | default('0770') }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { path: "/etc/thelounge" }
|
- { path: "{{ chat_configdir }}" }
|
||||||
- { path: "/var/local/thelounge/users" }
|
- { path: "/var/local/thelounge/users" }
|
||||||
- { path: "/var/local/thelounge/storage" }
|
- { path: "/var/local/thelounge/storage" }
|
||||||
notify:
|
notify:
|
||||||
|
@ -34,8 +34,8 @@
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
owner: "{{ item.owner | default( 'thelounge' ) }}"
|
owner: "{{ item.owner | default( chat_user ) }}"
|
||||||
group: "{{ item.group | default( 'thelounge' ) }}"
|
group: "{{ item.group | default( chat_group ) }}"
|
||||||
mode: "{{ item.mode | default('0640') }}"
|
mode: "{{ item.mode | default('0640') }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { src: "nodesource.list", dest: "/etc/apt/sources.list.d/nodesource.list", owner: root, group: root }
|
- { src: "nodesource.list", dest: "/etc/apt/sources.list.d/nodesource.list", owner: root, group: root }
|
||||||
|
@ -101,8 +101,8 @@
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
owner: "{{ item.owner | default( 'thelounge' ) }}"
|
owner: "{{ item.owner | default( chat_user ) }}"
|
||||||
group: "{{ item.group | default( 'thelounge' ) }}"
|
group: "{{ item.group | default( chat_group ) }}"
|
||||||
mode: "{{ item.mode | default('0640') }}"
|
mode: "{{ item.mode | default('0640') }}"
|
||||||
validate: "{{ item.validate | default([]) }}"
|
validate: "{{ item.validate | default([]) }}"
|
||||||
with_items:
|
with_items:
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
public: false,
|
public: false,
|
||||||
port: 9000,
|
port: 9000,
|
||||||
bind: "0.0.0.0",
|
bind: "127.0.0.1",
|
||||||
reverseProxy: true,
|
reverseProxy: true,
|
||||||
lockNetwork: true,
|
lockNetwork: true,
|
||||||
maxHistory: 10000,
|
maxHistory: 10000,
|
||||||
|
|
|
@ -4,8 +4,8 @@ After=network-online.target
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=thelounge
|
User={{ chat_user }}
|
||||||
Group=thelounge
|
Group={{ chat_group }}
|
||||||
Type=simple
|
Type=simple
|
||||||
Environment=THELOUNGE_HOME=/var/local/thelounge
|
Environment=THELOUNGE_HOME=/var/local/thelounge
|
||||||
ExecStart=/usr/local/bin/thelounge start
|
ExecStart=/usr/local/bin/thelounge start
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue