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
# as copied from http://stackoverflow.com/a/1695250 | |
def enum(*sequential, **named): | |
enums = dict(zip(sequential, range(len(sequential))), **named) | |
return type('Enum', (), enums) |
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/sh | |
### BEGIN INIT INFO | |
# Provides: calibre | |
# Required-Start: network | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Controls the Calibre content server | |
# Description: Controls the Calibre content web server | |
# |
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
fog-0-1-1 CC/CLC: | |
[root@fog-0-1-1 eucalyptus]# . ~/.euca/eucarc | |
[root@fog-0-1-1 eucalyptus]# ip addr show | |
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN | |
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 | |
inet 127.0.0.1/8 scope host lo | |
inet6 ::1/128 scope host | |
valid_lft forever preferred_lft forever | |
2: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 | |
link/ether 00:26:b9:f9:db:90 brd ff:ff:ff:ff:ff:ff |
This file has been truncated, but you can view the full file.
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
$ uniq -c cc.log | |
1 2013-01-24 16:53:02 INFO | stat() problem with //etc/eucalyptus/faults/en_US/: No such file or directory | |
1 2013-01-24 16:53:02 INFO | initializing CC configuration | |
1 2013-01-24 16:53:02 WARN | VNET_LOCALIP not defined, will attempt to auto-discover (consider setting this explicitly if tunnelling does not function properly.) | |
1 2013-01-24 16:53:02 WARN | private network is not large enough to support all vlans, restricting to max vlan '15' | |
1 2013-01-24 16:53:02 INFO | VNET Configuration: eucahome=//, | |
1 2013-01-24 16:53:02 INFO | path=//var/run/eucalyptus/net, | |
1 2013-01-24 16:53:02 INFO | dhcpdaemon=/usr/sbin/dhcpd41, | |
1 2013-01-24 16:53:02 INFO | dhcpuser=dhcpd, | |
1 2013-01-24 16:53:02 INFO | pubInterface=em1, |
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
[root@fog-0-1-1 ~]# iptables -L | |
Chain INPUT (policy ACCEPT) | |
target prot opt source destination | |
Chain FORWARD (policy DROP) | |
target prot opt source destination | |
EUCA_COUNTERS_OUT all -- anywhere anywhere | |
EUCA_COUNTERS_IN all -- anywhere anywhere | |
ACCEPT all -- anywhere anywhere ctstate ESTABLISHED | |
ACCEPT all -- anywhere !172.31.254.0/23 |