Beryllium: Difference between revisions

From SoylentNews
Jump to navigation Jump to search
mNo edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:SystemAdministration/Servers]]
= Beryllium =
{{#lst:SystemAdministration/Special:Includes|server_header}}
{{#lst:SystemAdministration/Special:Includes|server_header}}
== Description ==
== Description ==


This server is a Centos 6.5 server which functions as the primary misc services machine.
This server is a Linode 2G server running Centos 6.5 which functions as the primary misc services machine and as the primary IRC server. The IRC server address is: irc.soylentnews.org and it's available at port 6667 for non-ssl users and 6697 for SSL users.  It houses all of the other IRC related services as well as the url shortener at http://sylnt.us.


== Services running on this host ==
== Services running on this host ==


Any services that is prepended with an exclamation mark is not yet being monitored by our Icinga instance.
 
<section begin=services />
<section begin=services />
* ![[SystemAdministration/Server/Beryllium/MySQL|MySQL]]
* Charybdis, IRC server, http://irc.soylentnews.org - port 6667, 6697(SSL)
* Atheme, IRC services
* Iris, IRC web chat, http://chat.soylentnews.org - port 3989, forwarded from 80 by [[#Apache |apache]]
* Various bots, [[#IRC Services| See IRC Services]]
* ZNC, IRC bouncer for staff, http://irc.soylentnews.org - port 60000
* Yourls, URL shorener service on http://sylnt.us - port 80
* MySQL, used for Yourls.
* [[SystemAdministration/Server/Beryllium/MySQL|MySQL]]
* [[SystemAdministration/Server/Beryllium/Postfix|Postfix]]
* [[SystemAdministration/Server/Beryllium/Postfix|Postfix]]
* ![[SystemAdministration/Server/Beryllium/Mailman|Mailman]]
* [[SystemAdministration/Server/Beryllium/Mailman|Mailman]]
* ![[SystemAdministration/Server/Beryllium/Dovecot|Dovecot]]
* [[SystemAdministration/Server/Beryllium/Dovecot|Dovecot]]
* ![[SystemAdministration/Server/Beryllium/Apache|Apache2/httpd]]
* [[SystemAdministration/Server/Beryllium/Apache|Apache2/httpd]]
* OpenSSH
* OpenSSH
* ntpd
* ntpd
Line 40: Line 44:
== Apache Config ==
== Apache Config ==
All vhost configs are in /etc/httpd/conf.d/<servicename>.soylentnews.org.conf
All vhost configs are in /etc/httpd/conf.d/<servicename>.soylentnews.org.conf
All vhost wwwroots are in /var/www/vhosts/<servicename>
All vhost wwwroots are in /var/www/vhosts/<servicename> (except IRC and Dev ones)
--mailman (lists.soylentnews.org) is the exception since that was installed as a system package via yum
--mailman (lists.soylentnews.org) is the exception since that was installed as a system package via yum


Line 51: Line 55:
*rt (not currently active)
*rt (not currently active)
*000_default (nothing to see here page if no or unrecognized host header is passed)
*000_default (nothing to see here page if no or unrecognized host header is passed)
*chat (redirect to atheme iris server on port 3989)
*irc-stats (/home/sylnt/public_html/stats)
*irc-logs (/home/sylnt/public_html/logs)
*sylnt.us (/srv/sylnt.us YOURLS shortener service)
*vm (/srv/vm.soylentnews.org throttled vhost for Dev VM image)


== Mysql ==
== Mysql ==
Line 60: Line 69:
*forums
*forums
*rt
*rt
 
*yourls


== Mail Config ==
== Mail Config ==
Line 66: Line 75:
This is a nightmare, and will have to spend some time figuring out how to document it in a sane way.
This is a nightmare, and will have to spend some time figuring out how to document it in a sane way.


==IRC Services==
<section begin=ircops />
IRC services are now served up by beryllium. The core IRC services as well as several bots live on this server. They are mostly run from the sylnt user account out of /home/sylnt/
Start and stop scripts are in the ~/bin directory. start.all and stop.all will start and stop each of the services below with the appropriate script in a proper order. start.all is also set in sylnt's crontab to start at reboot. Individual services can be stopped or started with the appropriate script stop.service or start.service where .service is replaced with the suffix listed in the table below.
The services each have a cron.service script, also in ~/bin, that monitors that the service is running and restarts it if it does not find it.  This is done by monitoring the pid, set at startup, and seeing if the job is still running.  cron.all is run at 10 minute intervals from sylnt's crontab as well.
{| class="wikitable" width="100%"
!colspan="6"|'''IRC Services'''
|-
| style="background-color: #f2f2f2;"|
'''Service'''
| style="background-color: #f2f2f2;"|
'''Description'''
| style="background-color: #f2f2f2;"|
'''Path'''
| style="background-color: #f2f2f2;"|
'''DNS'''
| style="background-color: #f2f2f2;"|
'''Ports'''
| style="background-color: #f2f2f2;"|
'''start/stop/cron suffix'''
|-
| Charybids 3.5.2
| ircd services
| ~/charybdis
| irc.soylentnews.org
| 6667, 6697(ssl)
| .charybdis
|-
| Atheme Services 7.2.6
| a modular IRC Services package
| ~/atheme-services
| internal only
|
| .atheme
|-
| Atheme Iris
| web frontend for IRC
| ~/atheme-iris
| chat.soylentnews.org
| 3989 (forwarded from 80)
| .iris
|-
| Bender
| jsonbot bot
| ~/.jsb
| internal only
|
| .bender
|-
| Loggie
| logging bot
| ~/logbot
| logs.sylnt.us
| 80
| .loggie
|-
| NerdRPG
| local Idle RPG
| ~/nerdrpg
| internal only
|
| .nerdrpg
|-
| Regurgitator
| local RSS aggregator based on Eggdrop
| ~/irc-bots/Regurgitator
| internal only
|
| .regurgitator
|-
| WikIRC
| wiki log bot
| ~/wikirc
| internal only
|
| .wikirc
|-
| ZNC
| IRC Bouncer service (n.b. repo install, config in sylnt home)
| ~/.znc
| internal only
|
| .znc
|}
All of /home/sylnt/ started out as a copy from the original server xlefay setup on his systems.  No new files were added to this, only certain services need to be recompiled. Source files for most of the services are found in ~/source, and copies of the original services that ran on original server are in ~/OLD.  Test compiles of some of the services were moved to ~/test before bring up the current versions.
Charybdis was compiled with ./configure --prefix=/home/sylnt/charybdis/ --enable-epoll --enable-openssl --enable-ipv6 --disable-assert. Atheme was compiled with  $ ./configure --prefix=/home/sylnt/atheme-services.  Iris was configure by running ./compile from the ~/atheme-iris directory.  The bots did not require a recompile from what was transferred from original server.


Config files were adjusted to set the proper ip addresses for the new server (both IPv4 and IPv6) and to adjust the staff who had admin access.
<section end=ircops />


== System Packages ==
== System Packages ==


Stuff that was installed from yum will go here
Stuff that was installed from yum will go here
[[Category:SystemAdministration/Servers]]

Latest revision as of 23:40, 20 September 2016

If you're a staff member and unsure how to access this machine, please check our access instructions.

To see if you're able to access this machine please check group permissions.

Description

This server is a Linode 2G server running Centos 6.5 which functions as the primary misc services machine and as the primary IRC server. The IRC server address is: irc.soylentnews.org and it's available at port 6667 for non-ssl users and 6697 for SSL users. It houses all of the other IRC related services as well as the url shortener at http://sylnt.us.

Services running on this host


Please add any services that aren't listed here yet.

Basic Information

This node's ip address: 72.14.184.41

Services set to run at startup (can be restarted via /etc/init.d/<script>):

  • postfix - SMTP server, handles incoming and outgoing mail.
  • dovecot - IMAP server and mail delivery agent.
  • mailmain - listserv, this is just the qrunner service which picks up stuff in the queue to mail out.
  • saslauthd - Mail authentication.
  • mysqld - mysql databases
  • httpd - apache webserver running multiple virtualhosts

Currently, mechanicjay, robind, ncommander, xlefay, and funpika have ssh access to this box.

Apache Config

All vhost configs are in /etc/httpd/conf.d/<servicename>.soylentnews.org.conf All vhost wwwroots are in /var/www/vhosts/<servicename> (except IRC and Dev ones) --mailman (lists.soylentnews.org) is the exception since that was installed as a system package via yum

Current virtual hosts:

  • lists
  • postfixadmin
  • wiki
  • forums
  • webmail (squirrelmail install)
  • rt (not currently active)
  • 000_default (nothing to see here page if no or unrecognized host header is passed)
  • chat (redirect to atheme iris server on port 3989)
  • irc-stats (/home/sylnt/public_html/stats)
  • irc-logs (/home/sylnt/public_html/logs)
  • sylnt.us (/srv/sylnt.us YOURLS shortener service)
  • vm (/srv/vm.soylentnews.org throttled vhost for Dev VM image)

Mysql

Just a basic mysql install.

Current databases:

  • postfix -- handles mail accounts -- all mail services auth against this db
  • wiki
  • forums
  • rt
  • yourls

Mail Config

This is a nightmare, and will have to spend some time figuring out how to document it in a sane way.

IRC Services

IRC services are now served up by beryllium. The core IRC services as well as several bots live on this server. They are mostly run from the sylnt user account out of /home/sylnt/

Start and stop scripts are in the ~/bin directory. start.all and stop.all will start and stop each of the services below with the appropriate script in a proper order. start.all is also set in sylnt's crontab to start at reboot. Individual services can be stopped or started with the appropriate script stop.service or start.service where .service is replaced with the suffix listed in the table below.

The services each have a cron.service script, also in ~/bin, that monitors that the service is running and restarts it if it does not find it. This is done by monitoring the pid, set at startup, and seeing if the job is still running. cron.all is run at 10 minute intervals from sylnt's crontab as well.

IRC Services

Service

Description

Path

DNS

Ports

start/stop/cron suffix

Charybids 3.5.2 ircd services ~/charybdis irc.soylentnews.org 6667, 6697(ssl) .charybdis
Atheme Services 7.2.6 a modular IRC Services package ~/atheme-services internal only .atheme
Atheme Iris web frontend for IRC ~/atheme-iris chat.soylentnews.org 3989 (forwarded from 80) .iris
Bender jsonbot bot ~/.jsb internal only .bender
Loggie logging bot ~/logbot logs.sylnt.us 80 .loggie
NerdRPG local Idle RPG ~/nerdrpg internal only .nerdrpg
Regurgitator local RSS aggregator based on Eggdrop ~/irc-bots/Regurgitator internal only .regurgitator
WikIRC wiki log bot ~/wikirc internal only .wikirc
ZNC IRC Bouncer service (n.b. repo install, config in sylnt home) ~/.znc internal only .znc

All of /home/sylnt/ started out as a copy from the original server xlefay setup on his systems. No new files were added to this, only certain services need to be recompiled. Source files for most of the services are found in ~/source, and copies of the original services that ran on original server are in ~/OLD. Test compiles of some of the services were moved to ~/test before bring up the current versions.

Charybdis was compiled with ./configure --prefix=/home/sylnt/charybdis/ --enable-epoll --enable-openssl --enable-ipv6 --disable-assert. Atheme was compiled with $ ./configure --prefix=/home/sylnt/atheme-services. Iris was configure by running ./compile from the ~/atheme-iris directory. The bots did not require a recompile from what was transferred from original server.

Config files were adjusted to set the proper ip addresses for the new server (both IPv4 and IPv6) and to adjust the staff who had admin access.


System Packages

Stuff that was installed from yum will go here