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
dhostname = "devstack.local" | |
Vagrant::Config.run do |config| | |
config.vm.define :devstack do |devstack_config| | |
devstack_config.vm.box = "precise64" | |
devstack_config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
# devstack_config.vm.boot_mode = :gui |
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
➜ ~ vagrant help | |
Usage: vagrant [-v] [-h] command [<args>] | |
-v, --version Print the version and exit. | |
-h, --help Print this help. | |
Available subcommands: | |
box | |
destroy | |
gem |
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
irb -I lib/ | |
1.9.3p194 :001 > require 'occi' | |
=> true | |
1.9.3p194 :002 > network=OCCI::Core::Entity.new 'http://schemas.ogf.org/occi/infrastructure#network' | |
=> { | |
"kind": "http://schemas.ogf.org/occi/infrastructure#network" | |
} | |
1.9.3p194 :003 > network.class | |
=> Occi::Infrastructure::Network | |
1.9.3p194 :004 > network.class.superclass |
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
#! /bin/sh | |
# | |
FOREMAN_URL="http://192.168.56.2:3000" | |
NAME=$1 | |
MAC=$2 | |
HOSTGROUP_ID=$3 # Change this to your favorite hostgroup | |
curl -s -H "Accept:application/json" \ | |
-d "host[name]=$NAME" -d "host[hostgroup_id]=$HOSTGROUP_ID" \ |
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
require 'rubygems' | |
require 'fog' | |
conn = Fog::Compute.new({ | |
:provider => :openstack, | |
:openstack_api_key => "admin", | |
:openstack_username => "admin", | |
:openstack_auth_url => "http://aio.cloudcomplab.ch:5000/v2.0/tokens" | |
}) |
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 { 'nova::api': | |
enabled => true, | |
admin_password => $nova_user_password, | |
enabled_apis => 'occiapi,ec2,osapi_compute,osapi_volume,metadata' | |
} |
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
sudo apt-get install apt-cacher-ng |
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
sudo /usr/share/apt-cacher/apt-cacher-report.pl |
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
interface=eth1 | |
path_map = ubuntu ch.archive.ubuntu.com/ubuntu; | |
allowed_hosts = * | |
generate_reports = 1 |
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
sudo apt-get install apt-cacher |