Skip to content

Instantly share code, notes, and snippets.

@norcis
norcis / k3os-init
Created September 29, 2020 23:57 — forked from jdbohrman/k3os-init
ssh_authorized_keys:
- github:jdbohrman
write_files:
- encoding: ""
content: |-
#!/bin/bash
mkdir -p '/var/lib/rancher/k3s/server/manifests/'
curl -L https://gist.githubusercontent.com/jdbohrman/714bb13d8b8404f647174d9132f5f320/raw/de0c3825d03aa84c70f95e7a4445802e53dabddb/call-rancher.yaml >> /var/lib/rancher/k3s/server/manifests/call-rancher.yaml
owner: root
path: /etc/rc.local
@norcis
norcis / haproxy.sh
Created January 22, 2020 18:46 — forked from trungv0/haproxy.sh
RabbitMQ cluster with HAProxy & Keepalived for high availability
# install haproxy
yum install -y haproxy
# config haproxy for rabbitmq
cat > /etc/haproxy/haproxy.cfg << "EOF"
global
log 127.0.0.1 local0 notice
maxconn 10000
user haproxy