Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gambol99/clouds
Helper ruby libs for building boxes in the cloud
https://github.com/gambol99/clouds
Last synced: 11 days ago
JSON representation
Helper ruby libs for building boxes in the cloud
- Host: GitHub
- URL: https://github.com/gambol99/clouds
- Owner: gambol99
- Created: 2015-01-19T22:10:57.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-19T22:13:18.000Z (almost 10 years ago)
- Last Synced: 2024-04-17T15:10:30.473Z (9 months ago)
- Language: Ruby
- Size: 105 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Clouds
======Was / is a small library used in our build process for bootstrapping boxes in openstack and rackspace. Checkout the ./tests for examples
c = Clouds::new( {
:config => './config.yaml',
:debug => true,
:verbose => false
} )check "pulling a list of the supported plugins / providers" do
puts c.plugins
endcheck "display the clouds configuration" do
c.clouds.each do |cloud|
puts "cloud: #{cloud}, configuration => #{c.configuration( cloud )}"
end
endcheck 'pulling a list of servers from all the clouds' do
c.clouds.each do |cloud|
c.load_cloud( cloud ).servers.each do |instance|
puts "cloud: #{cloud}, instance: #{instance}"
end
end
endConfigurations
==============clouds:
hq:
provider: Openstack
openstack_tenant: TENANT
openstack_username: USERNAME
openstack_api_key: PASSWORD
openstack_auth_url: http://horizon.domain.com:5000/v2.0/tokens
sbx:
provider: Openstack
openstack_tenant: TENANT
openstack_username: USERNAME
openstack_api_key: PASSWORD
openstack_auth_url: http://horizon.domain.com:5000/v2.0/tokens
rpc:
provider: Rackspace
rackspace_username: USERNAME
rackspace_api_key: TOKEN
rackspace_region: :lon