Hey! I saw this has been indexed by the search engines. It is a first draft of a post I ended up publishing on my blog at: Scaling PostgreSQL With Pgpool and PgBouncer
Thanks for stopping by!
Hey! I saw this has been indexed by the search engines. It is a first draft of a post I ended up publishing on my blog at: Scaling PostgreSQL With Pgpool and PgBouncer
Thanks for stopping by!
# Description: | |
# Executes a taskDeploy command for spinning up task instances | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# HUBOT_DEPLOY_SCRIPT_LOCATION | |
# HUBOT_DEPLOY_USER | |
# HUBOT_DEPLOY_KEY |
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
def make_rules(hosts, ports, proto): | |
return [{"proto": proto, | |
"from_port": port, | |
"to_port": port, | |
"cidr_ip": host} for host in hosts for port in map(int, ports.split(","))] | |
class FilterModule(object): | |
def filters(self): | |
return {'make_rules': make_rules} |
#!/usr/bin/env python | |
import os | |
import re | |
import sys | |
import ansible.errors | |
import ansible.utils.template | |
import ansiblelint | |
import ansiblelint.utils | |
import jinja2 |
#!/bin/bash | |
export vault=/usr/local/bin/vault | |
export VAULT_TOKEN=$(cat /root/.vault-token) | |
vault_cacert='-ca-cert=/path/to/your/ca.pem' | |
local_vault="-address=https://$(hostname -f):8200" | |
unsealed_vault="-address=https://$(getent hosts $(dig +short vault.service.consul | tail -n 1) | awk '{ print $2 }'):8200" | |
leader_vault="-address=https://$($vault status $vault_cacert $unsealed_vault 2> /dev/null | grep Leader | awk '{ print $2 }' | sed 's/^http\(\|s\):\/\///g'):8200" | |
vault_read="$vault read $vault_cacert $leader_vault" | |
vault_unseal="$vault unseal $vault_cacert $local_vault" |
Download the latest ugw3
package from https://github.com/Lochnair/vyatta-wireguard/releases and install it on your USG using dpkg -i wireguard-ugw3-<version>.deb
.
cd /config/auth
umask 077
mkdir wireguard
cd wireguard
wg genkey > wg_private.key
wg pubkey < wg_private.key > wg_public.key