This file contains hidden or 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
class AccessRecorder: | |
def __init__(self, original_dict): | |
self.original_dict = original_dict | |
self.accessed_keys = set() | |
self.accessed_values = {} | |
self._is_list = isinstance(original_dict, list) | |
def _log_key_value(self, key, value): | |
self.accessed_keys.add(key) | |
self.accessed_values[key] = value |
This file contains hidden or 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
<table border=0 width=100% cellspacing=10> | |
<tr><td width=40% valign=top> | |
* Status: Proposed | |
<BR> | |
</td><td> | |
<table border="1" cellpadding="4" cellspacing="0"> | |
<tr bgcolor=#eeeeee style="text-align:center"><td colspan="3">'''Week''' <span style="font-size: smaller">(Thursday)</span></td> | |
<td>OpenStack</td> | |
<td>Fuel</td> | |
</tr> |
This file contains hidden or 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
cp $CONF $CONF.dist | |
/bin/sed -e "s/MYBASE/$MYBASE/; s/MYUSER/$MYUSER/; s/MYPASS/$MYPASS/" -i $CONF | |
/bin/sed -e "s/127\.0\.0\.1/$CC_IP/" -i $CONF | |
%end |
This file contains hidden or 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
/usr/bin/yum -y install fedora-release-rawhide | |
/bin/rpm -i http://download.mirantis.com/repo/noarch/openstack-repo-2011.3-1.noarch.rpm | |
/usr/bin/yum -y install nova-node-compute | |
/usr/bin/yum -y --disablerepo=* --enablerepo=rawhide install qemu libvirt | |
cat >> /etc/libvirt/libvirtd.conf << EOF | |
# Enable "nova" user write to libvirt unix socket | |
unix_sock_group = "nova" |
This file contains hidden or 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
%post | |
# | |
# HERE SOME POST-INSTALLATION PROCEDURES | |
# | |
#################################################################### | |
# Basic settings as credentials for mysql server | |
#################################################################### | |
This file contains hidden or 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
# make | |
/sbin/chkconfig libvirtd on | |
/sbin/chkconfig rabbitmq-server on | |
/sbin/chkconfig mysqld on | |
/etc/init.d/mysqld start | |
/usr/bin/mysqladmin create $MYBASE | |
/usr/bin/mysql $MYBASE -u root -e "grant all on $MYBASE.* to '$MYUSER'@'%' identified by '$MYPASS';" | |
/usr/bin/mysql $MYBASE -u root -e "grant all on $MYBASE.* to '$MYUSER'@'localhost' identified by '$MYPASS';" | |
/usr/bin/nova-manage --flagfile /etc/nova/nova.conf db sync |
This file contains hidden or 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
cp $CONF $CONF.dist | |
/bin/sed -e "s/MYBASE/$MYBASE/; s/MYUSER/$MYUSER/; s/MYPASS/$MYPASS/" -i $CONF | |
cd /var/lib/nova/CA/ | |
./genrootca.sh |
This file contains hidden or 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
cp $CONF $CONF.dist | |
/bin/sed -e "s/MYBASE/$MYBASE/; s/MYUSER/$MYUSER/; s/MYPASS/$MYPASS/" -i $CONF | |
cd /var/lib/nova/CA/ | |
./genrootca.sh |
This file contains hidden or 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
# Make libvirt accesible over tcp for live migration support. Note that in this example used totally insecure way! | |
cat >> /etc/libvirt/libvirtd.conf << EOF | |
# Enable "nova" user write to libvirt unix socket | |
unix_sock_group = "nova" | |
unix_sock_rw_perms = "0770" | |
auth_unix_rw = "none" | |
# Support live migration | |
listen_tls = 0 | |
listen_tcp = 1 | |
auth_tcp = "none" |
This file contains hidden or 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
# update qemu and libvirt to latest versions for supporting snapshots | |
/usr/bin/yum -y --disablerepo=* --enablerepo=rawhide install qemu libvirt |
NewerOlder