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
add_host: | |
groups: | |
aliases: | |
- group | |
- groupname | |
type: list | |
name: | |
aliases: | |
- host | |
- hostname |
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 print_function | |
import time | |
from pylibsshext.errors import LibsshSessionException | |
from pylibsshext.session import Session | |
host = '172.16.27.26' | |
user = 'centos' | |
password = 'secrete' | |
key_file = "/home/centos/.ssh/id_rsa" |
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
# Make sure you load the v4l2 kernel module | |
# $ modprobe v4l2loopback exclusive_caps=1 max_buffer=2 | |
alias m200-webcam='gphoto2 --set-config="/main/capturesettings/liveviewsize=Medium" --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -deinterlace -threads 0 -vf lut3d=${HOME}/Documents/GC_Cinestyle-Rec709.cube -f v4l2 $1' |
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 argparse | |
import collections | |
import json | |
import os | |
import subprocess | |
import yaml | |
from yaml import scanner |
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
diff --git a/README.md b/README.md | |
new file mode 100644 | |
index 0000000..e48d6ef | |
--- /dev/null | |
+++ b/README.md | |
@@ -0,0 +1,44 @@ | |
+# TripleO Deployment Templates | |
+ | |
+These templates are used to deploy my home cloud environment which I use for | |
+development purposes. While this is a development cloud, and small, it does |
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 multiprocessing | |
ITEM_CONTAINER = dict(a=0, b=1,) | |
CONTROL_CONTAINER = dict(a=0, b=1, c=2, d=3, e=4, f=5) | |
def _acquire_in_thread_inheritance(test, d): | |
d[test] = len(d.keys()) | |
print(d, type(d), id(d)) |
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
#!/usr/bin/env bash | |
set -ev | |
set -o pipefail | |
# Install dependencies | |
apt update | |
apt -y install apt-transport-https ca-certificates wget dirmngr gnupg gnupg2 software-properties-common | |
# Install old mongo (requried). |
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
export PW=$(sudo podman exec -ti $(sudo podman ps | awk '/heat_api$/ {print $1}') grep '^connection=mysql' /etc/heat/heat.conf | awk -F':' '{print $3}' | awk -F'@' '{print $1}') | |
export STACK=${STACK:-overcloud} | |
sudo podman exec -ti mysql bash -c "mysql -u heat -p${PW} heat -e \"delete from resource_data where resource_id in (select id from resource where stack_id in (select id from stack where name = '$STACK'));\"" | |
sudo podman exec -ti mysql bash -c "mysql -u heat -p${PW} heat -e \"delete from resource where stack_id in (select id from stack where name = '$STACK);\"" | |
sudo podman exec -ti mysql bash -c "mysql -u heat -p${PW} heat -e \"delete from event where stack_id in (select id from stack where name = '$STACK');\"" | |
sudo podman exec -ti mysql bash -c "mysql -u heat -p${PW} heat -e \"delete from stack where name = '$STACK';\"" |
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
#!/bin/bash | |
set -ev | |
set -o pipefail | |
if [[ -f "/etc/default/vm-defaults" ]]; then | |
source /etc/default/vm-defaults | |
fi | |
export NAME=${NAME:-TargetVM} |