Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| [mysqladmin] | |
| user=opsmgr | |
| password=monitoring | |
| [mysqldump] | |
| user=backup | |
| password=back_password | |
| [mysql] |
| #!/usr/bin/env python | |
| import argparse | |
| from novaclient.v1_1 import client as novaclient | |
| from keystoneclient.v2_0 import client as keystoneclient | |
| def create_tenant(args): | |
| assert len(args.tenant) < 3, "Tenant may be no longer than 2 characters" | |
| keystone = keystoneclient.Client(username=args.username | |
| ,password=args.password,auth_url=args.auth_url) | |
| assert keystone.authenticate(), "You did NOT successfully authenticate with keystone" |
| sudo ip addr flush dev br-ex | |
| sudo sysctl -w net.ipv4.ip_forward=1 | |
| sudo ip addr add 172.24.4.225/28 dev br-ex | |
| sudo ip link set br-ex up | |
| sudo route add -net 10.0.0.0/24 gw 172.24.4.226 | |
| sudo service rabbitmq-server start | |
| sudo service postgresql start | |
| sudo service apache2 start | |
| export SERVICE_TOKEN=password | |
| export OS_TENANT_NAME=demo |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| class Kombu(object): | |
| def __init__(self): | |
| self.params = { | |
| 'hostname': 'localhost', | |
| 'port': 5672, | |
| 'virtual_host': '/', |
| #!/bin/bash -x | |
| wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb -O /tmp/puppetlabs-release-precise.deb | |
| dpkg -i /tmp/puppetlabs-release-precise.deb | |
| apt-get update | |
| apt-get -y --force-yes -o Dpkg::Options::="--force-confnew" install puppet | |
| apt-get -y --force-yes install rubygems | |
| apt-get -y --force-yes install git | |
| gem install librarian-puppet -v 1.0.3 |
| #!/bin/bash | |
| set -ex | |
| apt-get -yq update | |
| apt-get -yq upgrade | |
| cd /root | |
| # Install DevStack | |
| apt-get -yq install git |
| sudo rm -f /var/lib/cloud/sem/*{defaults,runcmd,userdata,user-scripts}* /var/lib/cloud/data/cache/obj.pkl |
Below is a stream of notes taken when installing CF using bosh-lite on a fresh Ubuntu 14.04 build.
sudo apt-get update
sudo apt-get dist-upgrade
install bosh deps
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties unzip
| #!/bin/bash | |
| sudo apt-get install software-properties-common | |
| sudo add-apt-repository ppa:gophers/go | |
| sudo apt-get update | |
| sudo apt-get install golang-stable |