This file contains hidden or 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
import json | |
import urlparse | |
import requests | |
from storyboardclient.v1 import client | |
# Trello Constants | |
TRELLO_BOARD_ID = 'TRELLOBOARD_ID' |
This file contains hidden or 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
heat_template_version: rocky | |
description: > | |
Configure tuned | |
parameters: | |
ServiceData: | |
default: {} | |
description: Dictionary packing service data | |
type: json |
This file contains hidden or 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
{ | |
"nodes": [ | |
{ | |
"name": "controller-node1", | |
"pm_type": "ipmi", | |
"ports": [ | |
{ | |
"address": "52:54:00:e6:db:01", | |
"physical_network": "ctlplane" | |
} |
This file contains hidden or 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
#hostname setup | |
hostnamectl --static --pretty --transient set-hostname compute2.rk-home | |
# Storage for my nvme drive | |
parted --script --align=optimal /dev/nvme0n1 mklabel gpt -- mkpart libvirt XFS 0% 100% | |
parted --script /dev/nvme0n1 print | |
mkfs.xfs -f -i size=2048 -L libvirt /dev/nvme0n1 |
This file contains hidden or 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
# install tripleo repos | |
# This will pull the latest version RPM | |
PKG=$(curl https://trunk.rdoproject.org/centos7/current/ | grep python2-tripleo-repos- | awk -F'"' '{print $8}') | |
# This will install it | |
yum install -y https://trunk.rdoproject.org/centos7/current/${PKG} | |
yum -y upgrade |
This file contains hidden or 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
# ansible-playbook -i $THISFILE network_config.yml | |
all_systems: | |
vars: | |
rax_systemd_resolved: | |
DNS: "69.20.0.164" | |
FallbackDNS: "69.20.0.196 208.67.222.222 8.8.8.8" | |
Cache: yes | |
children: |
This file contains hidden or 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 __future__ import absolute_import | |
__metaclass__ = type | |
import socket | |
import time | |
from traceroute.core import Tracer | |
from ansible import constants as C | |
from ansible.plugins.callback import CallbackBase |
This file contains hidden or 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 __future__ import absolute_import | |
__metaclass__ = type | |
import socket | |
import time | |
from traceroute.core import Tracer | |
from ansible import constants as C | |
from ansible.plugins.callback import CallbackBase |
This file contains hidden or 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
sysctl -w net.ipv4.ip_forward=1 | tee /etc/sysctl.d/10-wireguard.conf | |
sysctl -w net.ipv4.conf.all.proxy_arp=1 | tee -a /etc/sysctl.d/10-wireguard.conf | |
pushd /etc/wireguard | |
wg genkey | tee privatekey | wg pubkey > publickey | |
wg genpsk > preshared | |
popd | |
This file contains hidden or 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
# osquery | |
## DOCS - https://osquery.readthedocs.io/en/stable/ | |
osqueryi "select * from deb_packages where name like 'linux-image%';" | |
osqueryi "select * from os_version;" | |
# fleet | |
## DOCS - https://github.com/kolide/fleet/tree/master/docs | |
fleetctl query --query "select * from deb_packages where name like 'linux-image%';" --labels='All Hosts' |