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 quay.io/centos/centos:stream9 | |
RUN dnf install -y 'dnf-command(config-manager)' && \ | |
dnf config-manager --set-enabled crb && \ | |
dnf install -y gcc git-core python3-devel libvirt-devel pkg-config | |
RUN git clone https://opendev.org/openstack/requirements /tmp/reqs -b stable/yoga && \ | |
python3 -m venv /tmp/venv && \ | |
/tmp/venv/bin/pip install libvirt-python -c /tmp/reqs/upper-constraints.txt |
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 sys | |
import yaml | |
def compare(r1, r2, prefix=''): | |
if isinstance(r1, dict): | |
for (k1, v1), (k2, v2) in zip(r1.items(), r2.items()): | |
if k1 != k2: | |
print(prefix, 'key mismatch:', k1, '!=', k2) | |
else: |
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
apiVersion: hive.openshift.io/v1 | |
kind: ClusterImageSet | |
metadata: | |
name: openshift-v4.9.0 | |
spec: | |
releaseImage: quay.io/openshift-release-dev/ocp-release:4.9.9-x86_64 | |
--- | |
apiVersion: extensions.hive.openshift.io/v1beta1 | |
kind: AgentClusterInstall | |
metadata: |
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" |
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
#!/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
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 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
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
[ | |
{ | |
"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", |
NewerOlder