]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/aviator/README
add aimonb/aviator to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / aviator / README
1 Puppet Aviator
2
3 A feature module for the Aviator project.
4
5 Aviator is a lightweight library for communicating with the OpenStack
6 API
7
8 See Aviator_README.md for more information on Aviator.
9
10 License
11 -------
12 MIT License
13
14 Contact
15 -------
16 Aimon Bustardo <me at aimon dot net>
17
18 Example Usage:
19 -------
20     
21     $LOAD_PATH.push(File.join(File.dirname(__FILE__), '..', '..',
22 '..'))
23     require 'puppet/feature/aviator'
24    
25     configuration = {
26         :provider => 'openstack',
27         :auth_service => {
28             :name      => 'identity',
29             :host_uri  => 'http://devstack:5000/v2.0',
30             :request   => 'create_token',
31             :validator => 'list_tenants'
32         },
33         :auth_credentials => {
34             :username    => 'myusername',
35             :password    => 'mypassword',
36             :tenant_name => 'myproject'
37         }
38     }
39
40     openstack = Aviator::Session.new(:config => configuration)
41
42     openstack.authenticate
43     response = openstack.request :identity_service, :list_tenants, :endpoint_type => 'admin'
44
45     puts response[:body]