Skip to content

Instantly share code, notes, and snippets.

Abacus Planning Group Inc.
Abbot Financial Management Inc.
Abbrea Capital LLC
Abdiel Capital Advisors LP
Abingworth LLP
Abner Herrman & Brock LLC
Abrams Bison Investments LLC
Abrams Capital Management L.P.
ABS Capital Partners V Trust
Academy Capital Management Inc. TX
@calsaviour
calsaviour / terraform.md
Created July 13, 2022 13:59 — forked from yankcrime/terraform.md
Terraform for Kubernetes and Rancher on existing nodes

Terraform example for deploying Kubernetes and Rancher on existing infrastructure

main.tf

resource "rke_cluster" "rancher" {
  ssh_agent_auth        = true
  ignore_docker_version = true
  kubernetes_version    = var.kubernetes_version

  dynamic "nodes" {
@calsaviour
calsaviour / awslogs.conf
Last active July 9, 2022 13:37
awslogs.conf
#
# ------------------------------------------
# CLOUDWATCH LOGS AGENT CONFIGURATION FILE
# ------------------------------------------
#
# --- DESCRIPTION ---
# This file is used by the CloudWatch Logs Agent to specify what log data to send to the service and how.
# You can modify this file at any time to add, remove or change configuration.
#
# NOTE: A running agent must be stopped and restarted for configuration changes to take effect.
# Routage/multiplexage HTTP dans kubernetes avec des Ingress et Traefik.
#
# On lance deux apps, sur les domaines, respectivement, foo.local et bar.local.
#
# Devant l'ingress controller, on utilise un service de type 'NodePort', qui
# choisir un port dans le range 30000-32767 et l'exposera sur les nodes.
#
# Si on commente la ligne 'NodePort' et on decommente la ligne 'LoadBalancer',
# kubernetes vas configurer un ELB AWS automatiquement pour renvoyer tout les
# flux http sur le service kubernetes traefik-lb-svc.
@calsaviour
calsaviour / docker-compose.yml
Created February 3, 2021 08:19 — forked from maparent/docker-compose.yml
Example docker-compose file for conversence/idealoom:latest
version: "3"
networks:
my_net:
volumes:
idealoom_static:
pgdata:
redisdata:
@calsaviour
calsaviour / Ansible CloudFormation Macros.md
Created October 28, 2020 09:29 — forked from jheller/Ansible CloudFormation Macros.md
Using Ansible/Jinja macros to generate CloudFormation templates

Generating CloudFormation Templates from YAML Dictionaries

The security group and Network ACLs parts of CloudFormation templates can be difficult to read. This template containing Jinja macros converts easier-to-read YAML dictionaries of security group and NACL rules into JSON.

Here ais a generic macro template and some example files showing how to use it.

  • cloudformation.macros.j2 - the macros
  • cf_vars.yml - YAML dictionaly of security groups and NACLs, including some complex rules for both
  • test.template.j2 - a simple CloudFormation template that uses the macro file
  • cf_test.yml - a simple Ansible playbook that generates CloudFormation JSON from thr previous file.