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 #!/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 if [ -n "$result" ]; then
echo "These files need to be evaluated -- generally, don't commit data files to Git." echo "These files need to be evaluated -- generally, don't commit data files to Git."
echo "$result" echo "$result"

View File

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

View File

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

View File

@ -526,7 +526,7 @@
# The following log tag is highly default and uncustomised. It is recommended you # 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. # 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 -#-#-#-#-#-#-#-#-#-#-#-#-# #-#-#-#-#-#-#-#-#-#-#-#-#- WHOWAS OPTIONS -#-#-#-#-#-#-#-#-#-#-#-#-#
# # # #

View File

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

View File

@ -1,28 +1,27 @@
........................................ ...........................................
........................................ ...........................................
..................HHH................... .....................4HHH...................
................HHHHHHHH................ ..................4HHHHHHHHH................
.............HHHHHHHHHHHHH.............. ...............4HHHHHHHHHHHHHH..............
..........HHHHHHH.....HHHHHHH........... ...........4HHHHHHHH.....4HHHHHHHH...........
.......HHHHHHH...........HHHHHHH........ ........4HHHHHHHH...........4HHHHHHHH........
......HHHHH.................HHHHH....... .......4HHHHHH.................4HHHHHH.......
......HHH.....................HHH....... .......4HHHH.....................4HHHH.......
......HHH.....HH....#.........HHH....... .......4HHHH....4HHH....#.........4HHHH.......
......HHH.....HH.....###......HHH....... .......4HHHH....4HHH.....###......4HHHH.......
......HHH.....HH........##....HHH....... .......4HHHH....4HHH........##....4HHHH.......
......HHH.....HH........##....HHH....... .......4HHHH....4HHH........##....4HHHH.......
......HHH.....HH.....###......HHH....... .......4HHHH....4HHH.....###......4HHHH.......
......HHH.....HH....#.........HHH....... .......4HHHH....4HHH....#.........4HHHH.......
......HHH.....................HHH....... .......4HHHH.....................4HHHH.......
......HHHHH.................HHHHH....... .......4HHHHHH.................4HHHHHH.......
.......HHHHHHH...........HHHHHHH........ ........4HHHHHHHH...........4HHHHHHHH........
..........HHHHHHH......HHHHHHH.......... ...........4HHHHHHHH......4HHHHHHHH..........
............HHHHHHH.HHHHHHH............. .............4HHHHHHHH.4HHHHHHHH.............
...............HHHHHHHHH................ .................4HHHHHHHHHH................
..................HHH................... ....................4HHHH...................
........................................ ...........................................
........................................ ...........................................
........................................
Welcome to the AniNIX/IRC secure chat system! Welcome to the AniNIX/IRC secure chat system!
Reach out to ops and founders in #lobby if you Reach out to ops and founders in #lobby if you
@ -39,7 +38,7 @@ use the following to authenticate:
"/quote ns identify <password>" "/quote ns identify <password>"
For reference, check out the Wiki: For reference, check out the Wiki:
https://{{ external_domain }}/AniNIX/Wiki 4https://{{ external_domain }}/AniNIX/Wiki
User code of conduct is recorded below: 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 Description=Certbot
[Service] [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 webserver
ExecStartPost=-/usr/bin/systemctl reload irc ExecStartPost=-/usr/bin/systemctl reload irc
KillMode=process KillMode=process