Skip to content

Instantly share code, notes, and snippets.

View ketzacoatl's full-sized avatar

Ketzacoatl ketzacoatl

View GitHub Profile
@ketzacoatl
ketzacoatl / deployment.yml
Created September 18, 2017 17:04
Grafana on Kubernetes, based on deployments (no operator)
# Grafana deployment
#
# TODO: Auto-import data sources and dashboards. See for example:
# https://raw.githubusercontent.com/giantswarm/kubernetes-prometheus/master/manifests-all.yaml
#
# After bringing up:
# * add datasource: prometheus http://prometheus
# * import dashboard: https://grafana.net/dashboards/315
#
apiVersion: extensions/v1beta1
@ketzacoatl
ketzacoatl / alb.tf
Created October 6, 2017 11:41
Terraform example ALB w/ target groups for an ASG
# Security Group for ALB
resource "aws_security_group" "atlassian-alb" {
name = "${var.name}-load-balancer"
description = "allow HTTPS to ${var.name} Load Balancer (ALB)"
vpc_id = "${module.vpc.vpc_id}"
ingress {
from_port = "443"
to_port = "443"
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
locals {
# we have to fixup the master username before we use it, the AWS API will error out otherwise
# RDS expects the username to be without hyphens and 16 characters at max. 'rdsadmin' is also
# a forbidden username, though we don't validate that here.
db_master_user_unsanitized = "${var.app_db_master_user}"
# truncate to 16 characters, but deal with the fact that substr() will error out if you ask
# for more characters than are in the string
default_master_user_max_length = "16"

Install ruby-build

dep

sudo apt-get install -y libreadline-dev

src

ᐅ git clone https://github.com/rbenv/ruby-build.git