Skip to content

Instantly share code, notes, and snippets.

View langdon's full-sized avatar

langdon langdon

View GitHub Profile
[drupal]
sitename = drupal_site
image = 192.168.121.202:5000/drupal
drupal_admin_pass = admin_pass
db_pass = password
db_name = drupal_not_drupal_db
db_user = not_drupal_user
[mariadb-app]
db_pass = password
image = 192.168.121.202:5000/mariadb
@langdon
langdon / gist:28f7a0a7d486af474ee6
Last active August 29, 2015 14:06
Get IP from virsh
#add this to your bashrc
virsh_ip(){
mac=`virsh dumpxml $1 | grep "mac address" | tr -s \' ' ' | awk ' { print $3 } '`
for i in `seq 1 10`; do
ip=`arp -na | grep $mac | awk '{ print $2 }' | tr -d \( | tr -d \)`
if [ "$ip" = "" ]; then
sleep 1
else
#!/bin/bash
if ! [ $# -eq 1 ]; then
echo "Usage: $0 <node-name>"
exit 1
fi
# Directory where everything happens
DIR=~/work/virt-install
# The image downloaded from the http://fedoraproject.org/en/get-fedora#clouds site