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
import random | |
import time | |
from greplin.defer import context | |
context.install() | |
from twisted.internet import defer, reactor, threads | |
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
import functools | |
import random | |
import time | |
from twisted.internet import defer, reactor, threads | |
# Support code for context - to be moved somewhere | |
CONTEXT = None |
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
#!/bin/bash | |
set -ex | |
function checkout { | |
test -d $1 || git clone https://git.openstack.org/openstack/$1 | |
cd $1 | |
git checkout master | |
git pull --ff-only | |
cd .. |
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
[ | |
{ | |
"description": "Set default IPMI credentials", | |
"conditions": [ | |
{"op": "eq", "field": "data://auto_discovered", "value": true} | |
], | |
"actions": [ | |
{"action": "set-attribute", "path": "driver_info/ipmi_username", | |
"value": "admin"}, | |
{"action": "set-attribute", "path": "driver_info/ipmi_password", |
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
Host * | |
IdentitiesOnly yes | |
Host virthost | |
Hostname lab | |
IdentityFile /home/dtantsur/.quickstart/id_rsa_virt_host | |
User stack | |
StrictHostKeyChecking no | |
UserKnownHostsFile=/dev/null |
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
#!/usr/bin/env python | |
from __future__ import print_function | |
import socket | |
import sys | |
import netifaces | |
import zeroconf |
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 python | |
RUN apt update && apt install -y tox |
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
#!/usr/bin/env python3 | |
import json | |
import subprocess | |
import sys | |
try: | |
dev = sys.argv[1] | |
except IndexError: | |
sys.exit('Device required') |
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
# https://gist.github.com/dtantsur/7e614963d48cd929ef39fa60c0b34a3d | |
import os | |
import sys | |
import openstack | |
try: | |
node_id = sys.argv[1] | |
ip = sys.argv[2] |
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
export IRONIC_AGENT_LOCAL_IMAGE=https://github.com/flaper87/ironic-agent-image | |
export IMAGE_CUSTOMIZATION_CONTROLLER_LOCAL_IMAGE=https://github.com/dtantsur/image-customization-controller | |
export CLUSTER_BAREMETAL_OPERATOR_LOCAL_IMAGE=https://github.com/dtantsur/cluster-baremetal-operator | |
export ASSISTED_SERVICE_IMAGE=quay.io/flaper87/assisted-service:no-force-inspection-1 | |
export DRIVER=redfish-virtualmedia | |
export VM_EXTRADISKS=true | |
export VM_EXTRADISKS_LIST="vda vdb" | |
export VM_EXTRADISKS_SIZE="10G" |
OlderNewer