This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
import dns.resolver | |
import ipaddress | |
import json | |
import shutil | |
import os | |
# AWSURL = 'https://ip-ranges.amazonaws.com/ip-ranges.json' | |
GCPROOTDNS = '_cloud-netblocks.googleusercontent.com' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
chroot /var/lib/haproxy | |
stats socket /run/haproxy/admin.sock mode 660 level admin | |
stats timeout 30s | |
user haproxy | |
group haproxy | |
daemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
_ "net/http/pprof" | |
"os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: 'Checking that only a single host is in the current play (playbook serial: 1)' | |
assert: { that: "play_hosts | length == 1" } | |
# < --- start httplib2 dependency check, and install if necessary | |
- name: Dummy check to ensure httplib2 is installed | |
uri: | |
url: http://127.0.0.1:9200 | |
ignore_errors: True | |
register: httplib2_check |