Ops for Hubs by Mozilla
Перейти к файлу
Manuel Martin 6ad862e02a Update bots nodejs version 9.x -> 16.x 2021-09-01 22:35:56 +02:00
ansible Add dev test bots 2021-08-31 20:22:02 +02:00
arbortect Drop DNS ttl to 5 min 2020-04-30 17:43:58 +00:00
bin Remove file on console connect 2020-03-04 17:29:36 +00:00
check_dns Use empty string for name if there are no tags 2021-07-20 07:23:23 -07:00
cloudformation removed unnecessary lines from PR 2021-03-17 14:45:49 -07:00
db Fix revocation of connect 2019-09-04 00:18:28 +00:00
jenkins Add necessary plumbling for reticulum cors proxying 2019-09-06 19:18:58 +00:00
manage_amis Remove unnecessary deps 2021-01-08 11:31:02 -08:00
packer Update bots nodejs version 9.x -> 16.x 2021-09-01 22:35:56 +02:00
plans Use a video we control for test script 2020-11-02 15:24:31 -08:00
terraform Limit the bots test instances to 1 2021-09-01 18:57:08 +02:00
workers Check in modified cloudfront security groups code 2020-06-01 17:10:39 +00:00
.gitignore Add habitat development scripts. 2017-10-02 17:10:53 -07:00
CODE_OF_CONDUCT.md Add Mozilla Code of Conduct file 2019-03-29 23:42:16 -07:00
LICENSE Initial commit 2017-09-26 17:53:57 -07:00
README.md Update README.md 2020-05-29 11:22:37 -07:00
helpers.sh Switch aws filters to json in helpers.sh 2020-05-06 18:59:00 -07:00

README.md

Hubs by Mozilla Ops

This repo contains all the necessary scripts and tools for standing up infrastructure for Hubs by Mozilla on AWS.

Contents:

ansible - Contains scripts for performing configuration deploys to the live Habitat ring, and other runbooks.

bin - Useful scripts for managing Hubs services

Expects ssh-agent to have mozilla mr ssh key registered and present in ~/.ssh/mozilla_mr_id_rsa.

host-types can be any ansible role such as: bots, discord, janus, migrate, postgrest, ret, and ssl. Or ci.

hostnames can be any server host name such as: quixotic-duck

environments include: prod and dev

See the top of each script for usage instructions.

helpers.sh - Functions for managing Hubs services.

Load in your .bashrc or .zshrc file by adding source ~/path/to/hubs-ops/helpers.sh

Expects an ssh config in ~/.ssh/config like the following:

Host *.reticulum.io
User ubuntu
PreferredAuthentications publickey,keyboard-interactive
IdentityFile ~/.ssh/mozilla_mr_id_rsa
ForwardAgent yes%

See the helpers.sh source for more documenation on each command.

Useful commands include:

  • moz-ec2 [env] [asg] Lists active hosts from EC2, displaying environment, ASG, name, private IP, and public IP.
  • moz-ssh target ...cmd-args SSHes into the given target through its bastion host, e.g. moz-ssh dazzling-druid.
  • moz-admin Opens an SSH tunnel to the prod Postgrest admin console.
  • moz-admin-dev Opens an SSH tunnel to the dev Postgrest admin console.
  • moz-iex target ...cmd-args SSHes into a Reticulum host and opens an Elixir console.
  • moz-ci Creates a tunnel to the CI host's web interface on port 8088.
  • moz-scp env ...scp-args Proxies SCP over a bastion host, e.g. moz-scp prod dazzling-druid-local.reticulum.io:~/core core.

packer - Packer AMI definitions

plans - Habitat plans

terraform - Terraform + terragrunt scripts