Skip to content

Instantly share code, notes, and snippets.

[DEFAULT]
#
# From nova
#
# Number of times to retry live-migration before failing. If == -1, try until
# out of hosts. If == 0, only try once, no retries. (integer value)
#migrate_max_retries=-1
#!/bin/bash
# multi-iso-baseline-gen.sh
# Last updated: 2016-09-11
# Jun Go [email protected]
#
# Given a PATH and PATTERN, this script will search for all
# iso's with filenames matching PATTERN + wildcard within the
# PATH and generate an rpm package baseline for each iso using
# 'create-baseline-pkg-list.sh'. The baseline output files
# will be named 'XXXXYY-baseline.txt' where XXXX denotes the first
#!/bin/bash
# http-rpmlist-parser.sh
# Copyright (C) 2016 Jun Go
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
#!/bin/bash
# rhel68-to-cent68.sh
# This script converts a RHEL 6.8 install into CentOS 6.8
# Copyright (C) 2016 Jun Go
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#!/bin/bash
# rhel511-to-cent511.sh
# This script converts a RHEL 5.11 install into CentOS 5.11
# Copyright (C) 2016 Jun Go
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#!/usr/bin/env python
# rhel-baseline-diff.py
# Jun Go [email protected]
# Last updated: 2016-08-03
# Given a baseline file that contains a list of rpm's
# from a RHEL installation DVD, compare this rpm list with
# the list of rpm's currently installed on a RHEL 5.X or
# RHEL 6.X machine and write any differences to a file.
# Note that the Python 2 version on RHEL 5.11 is 2.4.3
#!/bin/bash
# create-baseline-pkg-list.sh
# Jun Go [email protected]
# Last updated: 2016-08-03
# This script will create a baseline list of all the rpm
# files inside a RHEL installation ISO for RHEL 5.X and
# 6.X.
# In order to make the file list directly comparable to
@gojun077
gojun077 / pxe-default.cfg
Last active February 6, 2016 02:27
Legacy BIOS PXE configuration file for installing Archlinux over http
DEFAULT menu.c32
PROMPT 0
MENU TITLE PXE Boot Menu for Legacy BIOS
LABEL arch64_http
TEXT HELP
Boot the Arch Linux (x86_64) live medium (Using HTTP).
It allows you to install Arch Linux or perform system maintenance.
ENDTEXT
MENU LABEL Boot Arch Linux (x86_64) (HTTP)
@gojun077
gojun077 / UEFI-grub.cfg
Created February 6, 2016 02:02
Grub menu for net install of fedora 23 via UEFI PXE
function load_video {
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
insmod all_video
}
load_video
set gfxpayload=keep
@gojun077
gojun077 / fog.log
Last active January 16, 2016 03:33
Sample output from miq log from adding cloud provider
[----] D, [2016-01-15T13:32:44.351732 #15671:10f1990] DEBUG -- : excon.request
{:uri=>"http://192.168.10.168:8080/v1/AUTH_1e6f3fe16a7b4cb7ad2feb797172a7a0/",
:query=>{"format"=>"json"},
:method=>"GET",
:headers=>
{"User-Agent"=>"fog/2.0.0.pre.0 fog-core/1.34.0",
"Content-Type"=>"application/json",
"Accept"=>"application/json",
"X-Auth-Token"=>"0acf5309c0b6420ca9b075dd698d03d8",
"Host"=>"192.168.10.168:8080"},