Catching up IRC -- MOTD colors; servicefile; logging; config

This commit is contained in:
DarkFeather 2023-03-22 17:44:57 -05:00
parent 2f93e03f3a
commit 5fef78f60e
Signed by: DarkFeather
GPG Key ID: 1CC1E3F4ED06F296
7 changed files with 65 additions and 46 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
result="$(find roles/*/{files,templates} -type f -exec file {} \; | grep -Ev ASCII\ text\|empty\|Unicode\ text)"
result="$(find roles/*/{files,templates} -type f -exec file {} \; | grep -Ev ASCII\ text\|empty\|Unicode\ text | grep -v motd.txt.j2)"
if [ -n "$result" ]; then
echo "These files need to be evaluated -- generally, don't commit data files to Git."
echo "$result"

View File

@ -6,9 +6,9 @@ After=network.target
[Service]
Type=forking
PIDFile=/var/lib/inspircd/inspircd.pid
ExecStart=/usr/lib/inspircd/inspircd start
ExecReload=/usr/lib/inspircd/inspircd rehash
ExecStop=/usr/lib/inspircd/inspircd stop
ExecStart=/usr/bin/inspircd
ExecReload=kill -HUP $MAINPID
ExecStop=kill $MAINPID
Restart=always
User=ircd
Group=ircd

View File

@ -27,6 +27,22 @@
group: ircd
mode: 0640
- name: Copy service file
become: yes
register: servicesfile
copy:
src: services/irc.service
dest: /usr/lib/systemd/system/irc.service
owner: root
group: root
mode: 0644
- name: Reload services
when: servicesfile.changed
become: yes
systemd:
daemon_reload: true
- name: Copy config and fill in attributes
register: templatefiles
become: yes
@ -44,21 +60,25 @@
- rules.txt
- motd.txt
- name: Copy service file
- name: Tracking directory
become: yes
register: servicesfile
copy:
src: services/irc.service
dest: /usr/lib/systemd/system/irc.service
owner: root
group: root
mode: 0644
file:
dest: "/etc/inspircd/data/"
owner: ircd
group: ircd
mode: 0750
state: directory
- name: Reload services
when: servicesfile.changed
- name: Ensure tracking files
become: yes
systemd:
daemon_reload: true
file:
dest: "/etc/inspircd/{{ item }}"
owner: ircd
group: ircd
mode: 0600
loop:
- 'data/xline.db'
- 'data/permchannels.conf'
- name: Ensure service running
become: yes

View File

@ -526,7 +526,7 @@
# The following log tag is highly default and uncustomised. It is recommended you
# sort out your own log tags. This is just here so you get some output.
<log method="file" type="* -USERINPUT -USEROUTPUT" level="default" target="/var/log/ircd.log">
<log method="file" type="* -USERINPUT -USEROUTPUT" level="default" target="/var/log/inspircd/inspircd.log" flush="1">
#-#-#-#-#-#-#-#-#-#-#-#-#- WHOWAS OPTIONS -#-#-#-#-#-#-#-#-#-#-#-#-#
# #

View File

@ -518,7 +518,7 @@
# if not specified, and will always have a "-" appended. #
#
<cloak mode="half"
key="aephu5reghufa9riN0lie4ajeesiepa"
key="{{ secrets['IRC']['cloakpass'] }}"
prefix="aninix-">
#-#-#-#-#-#-#-#-#-#-#-#- CLOSE MODULE #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

View File

@ -1,28 +1,27 @@
........................................
........................................
..................HHH...................
................HHHHHHHH................
.............HHHHHHHHHHHHH..............
..........HHHHHHH.....HHHHHHH...........
.......HHHHHHH...........HHHHHHH........
......HHHHH.................HHHHH.......
......HHH.....................HHH.......
......HHH.....HH....#.........HHH.......
......HHH.....HH.....###......HHH.......
......HHH.....HH........##....HHH.......
......HHH.....HH........##....HHH.......
......HHH.....HH.....###......HHH.......
......HHH.....HH....#.........HHH.......
......HHH.....................HHH.......
......HHHHH.................HHHHH.......
.......HHHHHHH...........HHHHHHH........
..........HHHHHHH......HHHHHHH..........
............HHHHHHH.HHHHHHH.............
...............HHHHHHHHH................
..................HHH...................
........................................
........................................
........................................
...........................................
...........................................
.....................4HHH...................
..................4HHHHHHHHH................
...............4HHHHHHHHHHHHHH..............
...........4HHHHHHHH.....4HHHHHHHH...........
........4HHHHHHHH...........4HHHHHHHH........
.......4HHHHHH.................4HHHHHH.......
.......4HHHH.....................4HHHH.......
.......4HHHH....4HHH....#.........4HHHH.......
.......4HHHH....4HHH.....###......4HHHH.......
.......4HHHH....4HHH........##....4HHHH.......
.......4HHHH....4HHH........##....4HHHH.......
.......4HHHH....4HHH.....###......4HHHH.......
.......4HHHH....4HHH....#.........4HHHH.......
.......4HHHH.....................4HHHH.......
.......4HHHHHH.................4HHHHHH.......
........4HHHHHHHH...........4HHHHHHHH........
...........4HHHHHHHH......4HHHHHHHH..........
.............4HHHHHHHH.4HHHHHHHH.............
.................4HHHHHHHHHH................
....................4HHHH...................
...........................................
...........................................
Welcome to the AniNIX/IRC secure chat system!
Reach out to ops and founders in #lobby if you
@ -39,7 +38,7 @@ use the following to authenticate:
"/quote ns identify <password>"
For reference, check out the Wiki:
https://{{ external_domain }}/AniNIX/Wiki
4https://{{ external_domain }}/AniNIX/Wiki
User code of conduct is recorded below:
https://{{ external_domain }}/AniNIX/Wiki/src/branch/main/Policies/User_Ethics.md
4https://{{ external_domain }}/AniNIX/Wiki/src/branch/main/Policies/User_Ethics.md

View File

@ -2,7 +2,7 @@
Description=Certbot
[Service]
ExecStart=certbot renew -w /var/lib/letsencrypt/ --preferred-chain "ISRG Root X1"
ExecStart=certbot renew -w /var/lib/letsencrypt/ --preferred-chain "ISRG Root X1"
ExecStartPost=-/usr/bin/systemctl reload webserver
ExecStartPost=-/usr/bin/systemctl reload irc
KillMode=process