Skip to content

Instantly share code, notes, and snippets.

langdon whitel

Block or report user

Report or block whitel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:28f7a0a7d486af474ee6
#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
View virt-install-fedora
#!/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
View answers.conf
[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
You can’t perform that action at this time.