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/sh | |
# Use this script to install everything *system-wide* (as opposed to using | |
# bundler) to enable development. For example, ruby, rails, deltacloud, | |
# imagefactory, postgres, etc. | |
# | |
# Note: this works well for Fedora 16 and 17. For RHEL 6, some of the | |
# the dependencies may need to be manually downloaded and installed | |
# (e.g., rubygem-paranoia) |
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
## Install master imagefactory (soon to be v2) | |
## To be run as root on fc17 | |
git clone git://github.com/aeolusproject/imagefactory.git | |
cd imagefactory/ | |
make rpm | |
cd imagefactory-plugins/; make rpm | |
cd /root/rpmbuild/RPMS/noarch | |
# install everything *except* imagefactory-secondary which has a yum |
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
# Intended to be run as sudoer (probably the user, test) on Fedora 17 | |
# --------- | |
# Get imagefactory running first, this can help: | |
# https://gist.github.com/4533547 | |
export FACTER_CONDUCTOR_PORT=3011 | |
export WORKDIR=/home/$USER/w1 | |
export RBENV_VERSION=1.9.3-p374 |
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 | |
# only tested on fc17 thus far | |
# we need to obliterate the previous db role to recreate as a | |
# superuser-- this should do it | |
sudo yum -y erase postgres* | |
sudo rm -rf /var/lib/pgsql | |
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
# specify an integer | |
DEV_TOOLS_PULL_REQUEST=xx | |
export FACTER_CONDUCTOR_PORT=3033 | |
export WORKDIR=/home/$USER/pull-request-$DEV_TOOLS_PULL_REQUEST | |
export RBENV_VERSION=1.9.3-p374 | |
rm -rf $WORKDIR | |
mkdir $WORKDIR | |
cd $WORKDIR |
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
# Test builidng fedora 18 ISO for crowbar v1.5.1 | |
# Make sure you have the packages installed: | |
# ruby-devel genisoimage rubygem-kwalify ruby rubygems patch | |
# With all the needed dependencies installed, this script should just work | |
# the build scripts look for the iso in in $ISO_LIBRARY | |
export ISO_LIBRARY=$HOME/iso | |
# If I don't set this, the scripts somehow assume / as the CACHE_DIR |
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 | |
# | |
# This script is intended to ultimately "just work" on RHEL6, setting | |
# up a grizzly openstack implementation on three Fedora 18 guest VM's | |
# using the packstack installer. It currently does not work due to a | |
# dependency error with openstack-nova-conductor not being available. | |
# | |
# It creates 3 Fedora-18 VM's for packstack/openstack-grizzly. Each | |
# has two nic's. The first nic is connected to the virt default | |
# network. The second is connected to the virt openstackvms network |
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 | |
if [[ $# == 0 ]]; then | |
echo Usage: | |
echo "virt <command> <vm> args" | |
echo Command is: ip, ssh, scp, sshfs | |
exit 1 | |
fi | |
cmd="$1"; shift |
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
# On Fedora 18, install libvirt dependencies (and a few more) and | |
# start libvirtd. turn off selinux, enable ip forwarding, turn off | |
# firewall. | |
sudo sysctl -w net.ipv4.ip_forward=1 | |
sudo sed -i 's/net.ipv4.ip_forward = 0/net.ipv4.ip_forward = 1/g' /usr/lib/sysctl.d/00-system.conf | |
sudo setenforce 0 | |
sudo systemctl stop firewalld | |
depends="nfs-utils libguestfs-tools libvirt virt-manager git mysql-server tigervnc-server tigervnc-server-module tigervnc xorg-x11-twm xorg-x11-server-utils" |
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
# quickly bring up a Fedora 18 image. root on host OS should be able | |
# to ssh into the guest without a password. | |
# assumption: libvirtd already running | |
sudo sh -c "cd /var/lib/libvirt/images/ | |
if [ ! -f Fedora18-Cloud-x86_64-20130115.qcow2 ]; then | |
wget http://mattdm.fedorapeople.org/cloud-images/Fedora18-Cloud-x86_64-20130115.qcow2 | |
else | |
echo Fedora18-Cloud-x86_64-20130115.qcow2 already present. | |
fi |
OlderNewer