Skip to content

Instantly share code, notes, and snippets.

WebPlatform Docs WebPlatformDocs

Block or report user

Report or block WebPlatformDocs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@WebPlatformDocs
WebPlatformDocs / webplatform.json
Created Oct 26, 2016
#WebPlatform Freenode IRC Channel log
View webplatform.json
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"},
@WebPlatformDocs
WebPlatformDocs / lumberjack.php
Last active Oct 26, 2016
Export LumberJack IRC log to text
View lumberjack.php
<?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
DreamCompute OpenStack meta-data SaltStack grain
View OPENSTACK_GRAINS.md
View 0_progress_report.md

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 Oct 8, 2018
Bootstrapping a network Salt master based on a few git repositories
View Bootstraping_webplatform_network.md
View A_WebPlatformDocs_Local.md
@WebPlatformDocs
WebPlatformDocs / ssl.cnf
Last active Mar 27, 2018
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/
View ssl.cnf
[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 Jan 20, 2015
DreamCompute SSH config
View 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 Aug 29, 2015
Monit configs collection in use within WPD SaltStack configs
View 00-monit-configuration.md

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 Aug 29, 2015
Making work fxa-dev Vagrant VM from a vanilla fedora20 VM without database.
View procedure.md

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
You can’t perform that action at this time.