Cube Servers

From
Jump to: navigation, search

Servers that are located at the datacenter at 4220 Commerce Circle

Contents

[edit] ca-vic-cu-router01

  • Mikrotik RB2011 1U Rackmount router
  • Links to Triangle (via L2 tunnel over OOB infrastructure), General Internet (via Cube), Mesh network (rooftop radio) and BCWARN test system
  • Ports 5 through 10 are for the internal network at Cube

[edit] ca-vic-cu-virt01

  • 2U whitebox server, 24GB RAM
  • OS is Proxmox 4.2
  • In case one of the proxmox nodes drops offline:
    • login to effected node via SSH
    • killall -9 corosync
    • systemctl restart pve-cluster
    • service pvestatd restart

[edit] ca-vic-cu-monitor01

  • VM on the ProxMox server
  • OS is Ubuntu 16.04 LTS
  • Runs Nagios (http://monitor.vidigital.ca/nagios3) and cacti (http://monitor.vidigital.ca/cacti)
    • currently Nagios monitors the following: Ping, SSH (where applicable) SSL cert expiration (where applicable), RAID status
  • Runs Bind DNS server (authoritative for int.vidigital.ca), forwards to HamWAN's DNS service (44.24.244.1 and 44.24.245.1)
  • Has a cron job that backs up the configs for the Mikrotik radios and routers every 24 hours
    • Script runs from /data/scripts/retreiveMikrotikBackups.sh
    • There is an array in the script that controls which routers to backup (by hostname NOT fqdn, domain is appended in the script)

[edit] ca-vic-cu-svr01

  • VM on ProxMox
  • OS is Ubuntu 16.04 LTS
  • currently running owncloud (https://hamwan.10vpn.net)
  • Services on this server are:
    1. Owncloud
    2. IRC server
      • Daemon is inspircd
      • Restart by running service inspircd restart
      • config file is at: /etc/inspircd/inspircd.conf
      • Also an interface to Slcak via `slack-irc`
      • Daemon is: /usr/local/bin/slack-irc --config /common/slack-irc.json
      • Can be restarted via a service: service slack-irc restart
    3. web chat server (kiwiirc, if it's not running run `service kiwiirc start` to start it)
    4. authentication system (auth.vidigital.ca)
    5. Video Chat system (video.vidigital.ca)
      • Daemon is./bin/spreed-webrtc-server
      • Restart the server service spreed-webrtc restart

[ // Bot 1 (minimal configuration): { "nickname": "slack-bot", "server": "127.0.0.1", "token": "xoxp-54224050306-54202882388-108904288066-fc465e86be5bbefcc2e954eb16a5bb75", "channelMapping": { "#crd": "#crd" } } ]

    1. nano /lib/systemd/system/slack-irc.service

[Unit] Description=Slack to IRC bridge

[Service] ExecStart=/usr/local/bin/slack-irc --config /common/slack-irc.json

    1. systemctl daemon-reload
  • Steps to install Kiwi IRC Interface
    1. git clone https://github.com/prawnsalad/KiwiIRC.git && cd KiwiIRC
    2. npm install
    3. cp config.js.example config.js
    4. nano config.js
      • if desitred modify the ./client/src/index.html.tmpl file
    5. ./kiwi build

[edit] ca-vic-cu-wiki

  • OS is Turnkey Linux
  • Runs this wiki server

[edit] ca-vic-cu-radio01

  • Runs from Chris' 44 subnet
  • currently runs the dev dispatch program for marathon/10k
  • also an SMTP email gateway (based on postfix) (smtp01.int.vidigital.ca)

[edit] Certificates Installed

  • chat.vidigital.ca (resolves to 44.135.219.19)
  • wiki.vidigital.ca (resolves to 44.135.219.23)
  • cloud.vidigital.ca (resolves to 44.135.219.19)

[edit] Backups

  • Backups are run from virt01 and while initially setup from the GUI have some customization
    • edit /etc/pve/vzdump.cron
    • add --script /mnt/pve/backups/scripts/archiveBackup.sh to end of command
  • /mnt/pve/backups/scripts/archiveBackup.sh contains:
       if [ "$1" == "job-end" ]; then
       touch /mnt/pve/backups/sucessful
       else
       exit 1
       fi
    • This script creates the file /mnt/pve/backups/sucessful if the backup completes
  • nas01 has a script located at /scripts/archiveBackups.sh
    • script looks for /data/backup/sucessful, if the file exists the backups are archived to the USB drive
    • crontab looks like: 0 2,4,6 * * * /scripts/archiveBackups.sh

[edit] Notifications

  • Notifications are sent to alerts@ipaddr.is
  • From: address is set to proxmox@ipaddr.is so the resultant email is parsed by the 10vpn scripts and sent to Slack
  • The archive job sends emails using the shell to alerts@ipaddr.is, there is a script which sends all messages from ca-vic-cu-nas01 to Slack
Personal tools
MediaWiki Appliance - Powered by TurnKey Linux