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
SHELL := /bin/bash | |
IMG = rhivos9-x86_64.qcow | |
run-vm: | |
qemu-kvm \ | |
-m 8G \ | |
-cpu host \ | |
-smp sockets=2,cores=2 \ | |
-machine q35 \ | |
-nographic \ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
background: lightgray; | |
} | |
.content { |
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 -e | |
# First build the container images | |
# podman build -f distribution/Dockerfile-worker -t osbuild-worker . | |
# podman build -f distribution/Dockerfile-ubi -t osbuild-composer . | |
# podman build -f Dockerfile.composer-cli -t osbuild-composer-cli . | |
podman network create cni-podman1 || true |
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 -e | |
usage=" | |
Usage: | |
${0##* /} <URL to prometheus.jar>|<filename> | |
Examples: | |
${0## /} https://url/of/prometheus.tar | |
${0## /} /path/to/prometheus.tar | |
" |
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
- hosts: localhost | |
gather_facts: no | |
connection: local | |
vars: | |
# customization begin | |
installer: bin/openshift-installer | |
engine_url: https://engine-fqdn/ovirt-engine/api | |
engine_user: admin@internal | |
engine_password: 123 |
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
--- | |
# use a vault with engine_pass rhsub_pass and so on | |
- name: Create a bastion machine | |
hosts: localhost | |
connection: local | |
gather_facts: false | |
vars: | |
engine_url: https://ovirt-engine-fqdn/ovirt-engine/api | |
engine_user: admin@internal |
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
apiVersion: v1 | |
data: | |
connection: | | |
url=https://ovirt-engine-fqdn/ovirt-engine/api | |
username=admin@internal | |
password=123 | |
insecure=True | |
cafile= | |
kind: ConfigMap | |
metadata: |
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
-- extracted from pgcluu https://github.com/darold/pgcluu/blob/0366836dfcbf4285d08bdd36eab58f18b40d2255/pgcluu_collectd#L2473 | |
-- | |
-- dump_missing_indexes generate a ddl scirpt to create missing indexes on foreign keys | |
-- | |
SELECT | |
date_trunc('seconds', | |
now()), | |
current_database(), | |
relname, | |
'CREATE INDEX CONCURRENTLY idx_' || relname || '_' || array_to_string(column_name_list, |
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/sh -x | |
function usage() { | |
echo " | |
USAGE | |
$0 [IN_FILE] | |
IN_FILE=/path/to/in_file $0 | |
ES_ADDRESS=elasticsearch.example.com IN_FILE=/path/to/in_file $0 | |
This is a loader from fluentd file into elastic-search |
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/sh | |
GERRIT_URL=https://gerrit.ovirt.org | |
function gerrit.change_id() { | |
git show --shortstat | grep Change-Id | gawk '{print $2}' | |
} | |
function gerrit.related.change_id() { | |
curl -s ${GERRIT_URL}/changes/$(gerrit.change_id)/revisions/current/related | sed '1d' | jq '.[][0] | .commit.commit' | tr -d '"' |