Skip to content

Instantly share code, notes, and snippets.

View mihgen's full-sized avatar

Mike Scherbakov mihgen

View GitHub Profile
@mihgen
mihgen / gist:978466
Created May 18, 2011 12:16
Adding repos and installing CC
# Add repositories
/usr/bin/yum -y install fedora-release-rawhide
/bin/rpm -i http://download.mirantis.com/repo/noarch/openstack-repo-2011.3-1.noarch.rpm
# "node-full" is cloud controller role
/usr/bin/yum -y install nova-node-full
@mihgen
mihgen / gist:978459
Created May 18, 2011 12:09
hostname_bind
# In our case mac-address is easiest way to static bind hostname to server.
HOSTNAME="pmo-cluster"
MAC=`ifconfig eth0 | grep HWaddr | cut -c 39-`
case "$MAC" in
'00:24:1D:CE:71:C1')
HOSTNAME="pmo-cluster1"
;;
'00:24:1D:DD:FC:97')
HOSTNAME="pmo-cluster4"
;;
@mihgen
mihgen / gist:978418
Created May 18, 2011 11:39
CC post install head
%post
#
# HERE SOME POST-INSTALLATION PROCEDURES
#
####################################################################
# Basic settings as credentials for mysql server
####################################################################
# MySQL database, user and password
@mihgen
mihgen / gist:978391
Created May 18, 2011 11:18
yum repo package for OpenStack
rpm -i http://download.mirantis.com/repo/noarch/openstack-repo-2011.3-1.noarch.rpm