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 -e | |
# to run this script: | |
# curl -s https://gist.githubusercontent.com/jonathanelbailey/cc5f118c6750c6976305c98aec43a2f7/raw/ \ | |
# | sudo bash /dev/stdin | |
# Create the working and mount directories | |
mkdir -p /tmp/work/bootiso | |
# Download the ISO artifact from the ovirt jenkins link. | |
curl \ |
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
# this function grabs the iso image from the user supplied http location. | |
function get-isoimage{ | |
[CmdletBinding()] | |
param( | |
$uri, | |
$workingfolder | |
) | |
begin{ | |
$file_name = $uri -replace "http://[\s\S]+\/([\s\S]+\.iso)$",'$1' | |
$out_file = Join-Path $workingfolder -ChildPath $file_name |
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 -e | |
# to run this script: | |
# curl -s https://gist.githubusercontent.com/jonathanelbailey/1274ad29a8cdcc9a74d9a994571afdf0/raw/ \ | |
# | sudo bash /dev/stdin | |
# comment out previous rpcmountdopts key. | |
sed -i '/RPCMOUNTDOPTS=--manage-gids --no-nfs-version 4/a # RPCMOUNTDOPTS=--manage-gids --no-nfs-version 4' \ | |
/etc/default/nfs-kernel-server | |
# append new key with manage-gids option removed. |
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
#version=DEVEL | |
# to run this script enter the following: | |
# linux ks=https://gist.githubusercontent.com/jonathanelbailey/b2ba868d39491f4e6a7497010b0f6b18/raw/ | |
# System authorization information | |
auth --enableshadow --passalgo=sha512 | |
# SELinux configuration | |
selinux --permissive |
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
# action=setup | |
[environment:default] | |
OVESETUP_DIALOG/confirmSettings=bool:True | |
OVESETUP_CONFIG/applicationMode=str:both | |
OVESETUP_CONFIG/remoteEngineSetupStyle=none:None | |
OVESETUP_CONFIG/sanWipeAfterDelete=bool:False | |
OVESETUP_CONFIG/storageIsLocal=bool:False | |
OVESETUP_CONFIG/firewallManager=str:firewalld | |
OVESETUP_CONFIG/remoteEngineHostRootPassword=none:None | |
OVESETUP_CONFIG/firewallChangesReview=none: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 -e | |
# start ovirt-engine without installing the service again. | |
su -m -s /bin/python ovirt /usr/share/ovirt-engine/services/ovirt-engine/ovirt-engine.py start |
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 | |
# to run this script, use the following command: | |
# curl -s \ | |
# https://gist.githubusercontent.com/jonathanelbailey/0bc55ade9aafe6191e92a12c5c65fc87/raw \ | |
# | sudo bash /dev/stdin | |
yum -y install python-setuptools epel-release gcc libxslt-devel \ | |
libxml++-devel libxml2-devel python-devel | |
yum -y install python-pip python-wheel python-lxml | |
pip install ovirt-engine-sdk-python |
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 -e | |
# run this script using the following command: | |
# curl -s \ | |
# https://gist.githubusercontent.com/jonathanelbailey/784e54452723e5294f456ce46f907cf7/raw/ \ | |
# | sudo bash /dev/stdin --postgres-password param1 --ovirt-password param2 | |
# getopt is used to create long params for the script. | |
params=`getopt -o dp:o: --long debug,postgres-password:,ovirt-password: -n 'ovirt_engine_bootstrap' -- "$@"` | |
# unrecognized params terminate the script. |
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
#version=DEVEL | |
# System authorization information | |
auth --enableshadow --passalgo=sha512 | |
# Use CDROM installation media | |
cdrom | |
# Automate install | |
autostep | |
# Use graphical install | |
#graphical | |
# Run the Setup Agent on first boot |
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 | |
# to run, use the following command: | |
# curl -s \ | |
# https://gist.githubusercontent.com/jonathanelbailey/b1aeb43bc59c0330c0b9bfa9a26565eb/raw/ \ | |
# | sudo bash /dev/stdin | |
# perform initial package update | |
echo "updating packages..." | |
yum -y update |
NewerOlder