Skip to content

Instantly share code, notes, and snippets.

View WebPlatformDocs's full-sized avatar

WebPlatform Docs WebPlatformDocs

View GitHub Profile
@WebPlatformDocs
WebPlatformDocs / webplatform.json
Created October 26, 2016 00:49
#WebPlatform Freenode IRC Channel log
This file has been truncated, but you can view the full file.
[{"name":"wp-logger","time":"2012-10-07 23:48:36","message":null,"type":"join"},
{"name":"shepazu","time":"2012-10-07 23:50:56","message":"hi, wp-logger","type":"pubmsg"},
{"name":"shepazu","time":"2012-10-07 23:54:32","message":"paul_irish_: how do I make myself channel op? I thought we set that up a while ago...","type":"pubmsg"},
{"name":"Ryan_Lane","time":"2012-10-08 00:00:05","message":"http:\/\/talk.webplatform.org\/chatlogs\/#home","type":"pubmsg"},
{"name":"Ryan_Lane","time":"2012-10-08 00:00:27","message":"I wonder how often it updates","type":"pubmsg"},
{"name":"shepazu","time":"2012-10-08 00:00:39","message":"hmm","type":"pubmsg"},
{"name":"shepazu","time":"2012-10-08 00:00:47","message":"not very often, it seems","type":"pubmsg"},
{"name":"shepazu","time":"2012-10-08 00:01:24","message":"I'll look for another logging solution longer term","type":"pubmsg"},
{"name":"Ryan_Lane","time":"2012-10-08 00:01:59","message":"it's often-ish","type":"pubmsg"},
{"name":"Ryan_Lane","time":"2012-10-08 00:02:09",
@WebPlatformDocs
WebPlatformDocs / lumberjack.php
Last active October 26, 2016 00:46
Export LumberJack IRC log to text
<?php
/**
* Export LumberJack IRC log to text
**/
$username='lumberjack_user';
$password='secretpassword';
$database='lumberjack';
$host='10.10.10.3';
@WebPlatformDocs
WebPlatformDocs / OPENSTACK_GRAINS.md
Created May 22, 2015 16:39
DreamCompute OpenStack meta-data SaltStack grain

Progress executive summary

  1. Migrated to Dreamhost
  2. Set in place a complete, separate, deployment of the site (webplatformstaging.org) and reworked deployment scripts to facilitate infrastructure work without impacting live site.
  3. Brought on Dreamhost as steward
  4. Dramatically increased stability/uptime. We now have about 99.8% uptime compared to frequent and lasting outages.
  5. All servers are using up to date version
  6. Automatic security updates
  7. Added features:
  • Compatibility tables imported from MDN, data editable through github, updates table in wiki
  • Notes server, also loaded from a few w3.org/TR/ documents
@WebPlatformDocs
WebPlatformDocs / Bootstraping_webplatform_network.md
Last active January 11, 2020 22:54
Bootstrapping a network Salt master based on a few git repositories
@WebPlatformDocs
WebPlatformDocs / A_WebPlatformDocs_Local.md
Last active August 29, 2015 14:14
Install MediaWiki Makefile
@WebPlatformDocs
WebPlatformDocs / ssl.cnf
Last active March 24, 2021 01:59
Create MariaDB/MySQL self-signed SSL certificates through Salt. Full procedure at https://renoirboulanger.com/blog/2015/01/create-mariadb-cluster-replication-ssl-salt-stack/
[client]
ssl
ssl-cert=/etc/mysql/client-cert.pem
ssl-key=/etc/mysql/client-key.pem
[mysqld]
ssl
ssl-cipher=DHE-RSA-AES256-SHA
ssl-ca=/etc/mysql/ca-cert.pem
ssl-cert=/etc/mysql/server-cert.pem
@WebPlatformDocs
WebPlatformDocs / ssh-config
Created January 20, 2015 15:22
DreamCompute SSH config
ControlMaster auto
ControlPath ~/.ssh/sockets/%r__%h__%p.sock
TCPKeepAlive no
ServerAliveInterval 60
ServerAliveCountMax 10
Host staging.wpdn
Hostname salt.webplatformstaging.org
ProxyCommand none
@WebPlatformDocs
WebPlatformDocs / 00-monit-configuration.md
Last active January 11, 2020 22:55
Monit configs collection in use within WPD SaltStack configs

Monit configuration on WebPlatform infrastructure

The monit project has two components; Monit, and M/Monit. While monit is open-source and can be used stand alone along with an independent web ui, M/Monit can manage from one place every machine that runs monit.

M/Monit can control monit configuration, creates a global cluster health graph all in "one place".

If the management don’t want to pay for a M/Monit licence its possible to shim a dashboard with a set of well-thought NGINX proxy configuration. While it would allow to control every nodes, there would be no overall network graphs.

Screenshots

@WebPlatformDocs
WebPlatformDocs / procedure.md
Last active August 29, 2015 14:10
Making work fxa-dev Vagrant VM from a vanilla fedora20 VM without database.

The following steps are things that aren’t been handled by Ansible and that were required to do manually so we could run FxA on a Vagrant VM using mozilla/fxa-dev.

Note that this procedure has been made after the steps described in mozilla/fxa-dev#81

Procedure

Database HTTP layer

  1. Inside the VM, create manually the database