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
[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 |
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
#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 |
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 ! [ $# -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 |