Skip to content

Instantly share code, notes, and snippets.

View hub-cap's full-sized avatar

Michael Basnight hub-cap

View GitHub Profile
reddwarf-141 (offline)
reddwarf-337 (offline)
reddwarf-360 (offline)
reddwarf-36a (offline)
reddwarf-38a (offline)
reddwarf-3d8 (offline)
reddwarf-486 (offline)
reddwarf-5bf (offline)
reddwarf-5ec (offline)
reddwarf-6e0 (offline)
def create_user(self, context, users):
cur = get_engine().cursor()
for item in users:
user = models.MySQLUser()
user.deserialize(item)
cur.execute("CREATE ROLE %s LOGIN PASSWORD '%s'" %
(user.name, user.password))
for database in user.databases:
mydb = models.MySQLDatabase()
mydb.deserialize(database)
ubuntu@ubuntu:~$ apt-cache depends cloud-init
cloud-init
Depends: cloud-utils
Depends: ifupdown
ifupdown:i386
Depends: mountall
mountall:i386
Depends: procps
procps:i386
Depends: python
Depends: python2.7
Depends: python
Depends: python
Depends: python-apt
Depends: lsb-release
Depends: python-gnupginterface
Depends: unattended-upgrades
Depends: iso-codes
Depends: python-pycurl
ubuntu@ubuntu:~$ apt-get install --dry-run cloud-init
NOTE: This is only a simulation!
apt-get needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
python-oauth python-pycurl python-software-properties unattended-upgrades
for i in accountsservice\
acpid\
apport\
apport-symptoms\
apt-transport-https\
apt-xapian-index\
aptitude\
at\
bash-completion\
bc\
for i in accountsservice\
acpid\
apport\
apport-symptoms\
apt-transport-https\
apt-xapian-index\
aptitude\
at\
bash-completion\
bc\
ubuntu@ubuntu:/mnt/hgfs/db/reddwarf-integration/scripts$ redis-cli -h 10.0.0.3 -p 9000 -a 3c5e4dca-7a1b-44c6-82cf-0d7edb2ed31a
redis 10.0.0.3:9000> ping
PONG
.....
ubuntu@ubuntu:/mnt/hgfs/db/reddwarf-integration/scripts$ redis-cli -h 10.0.0.3 -p 9000
redis 10.0.0.3:9000> ping
(error) ERR operation not permitted
redis 10.0.0.3:9000> auth 3c5e4dca-7a1b-44c6-82cf-0d7edb2ed31a
dbaas-rediscnf (1.0-1) lucid; urgency=low
[ Michael Basnight ]
* Created the initial default redis.conf template
-- DBaaS-Dev <[email protected]> Fri, 11 Mar 2011 14:32:03 +0600
Amy Dang
Anna Shen
Clare Springer
Craig Vyvial
Daniel Morris
Daniel Salinas
Dan Nguyen
Dave Fecker
DJ Johnstone
Dror Kagan