Skip to content

Commit 0013e0d

Browse files
committed
Merge pull request #170 from strider/juno
Add https://github.com/aimonb/puppet_aviator to OPM (JUNO)
2 parents 0577d93 + 8fc3837 commit 0013e0d

File tree

139 files changed

+8466
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+8466
-0
lines changed

Puppetfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ mod 'apache',
22
:commit => '769ff363a8a3c51e24f63a2494217d2d029289c6',
33
:git => 'https://github.com/puppetlabs/puppetlabs-apache.git'
44

5+
mod 'aviator',
6+
:commit => '5f1429fecf755692d6056fce3f3af08d1d97e763',
7+
:git => 'https://github.com/aimonb/puppet_aviator.git'
8+
59
mod 'ceilometer',
610
:commit => 'ee2f3cd4498b2ef3a6633991206b7185c1d32897',
711
:git => 'https://github.com/stackforge/puppet-ceilometer.git'

aviator/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pkg

aviator/Aviator_README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
![Aviator](https://raw.github.com/aviator/www/gh-pages/images/logo-small.png)
2+
<br/>A lightweight library for communicating with the OpenStack API.
3+
4+
[![Build Status](https://travis-ci.org/aviator/aviator.png?branch=master)](https://travis-ci.org/aviator/aviator)
5+
[![Coverage Status](https://coveralls.io/repos/aviator/aviator/badge.png?branch=master)](https://coveralls.io/r/aviator/aviator?branch=master)
6+
[![Code Climate](https://codeclimate.com/github/aviator/aviator.png)](https://codeclimate.com/github/aviator/aviator)
7+
[![Gem Version](https://badge.fury.io/rb/aviator.png)](http://badge.fury.io/rb/aviator)
8+
[![Dependency Status](https://gemnasium.com/aviator/aviator.png)](https://gemnasium.com/aviator/aviator)
9+
10+
11+
<a href="http://aviator.github.io/www/">Usage and Installation</a>

aviator/Gemfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# A sample Gemfile
2+
source "https://rubygems.org"
3+
4+
gem 'ci_reporter'
5+
gem 'simplecov'
6+
gem 'simplecov-rcov'
7+
gem "rspec", '~> 2.0'
8+
gem "mocha"
9+
gem 'puppet', '= 3.5.1'
10+
gem 'puppet-lint'
11+
gem 'facter', '>= 1.6.10'
12+
gem 'rspec-puppet', :git => 'https://github.com/rodjek/rspec-puppet.git', :branch => 'master'
13+
gem 'rake', '>= 0.9.2'
14+
gem 'puppetlabs_spec_helper', '0.3.0'
15+
gem 'test-unit'
16+
gem 'rspec_junit_formatter'
17+
gem 'rspec-puppet-utils'

aviator/Gemfile.lock

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
GIT
2+
remote: https://github.com/rodjek/rspec-puppet.git
3+
revision: 389f99ef666521fec1b4530fe69dc1ab84a060a8
4+
branch: master
5+
specs:
6+
rspec-puppet (1.0.1)
7+
rspec
8+
9+
GEM
10+
remote: https://rubygems.org/
11+
specs:
12+
CFPropertyList (2.2.8)
13+
builder (3.2.2)
14+
ci_reporter (2.0.0)
15+
builder (>= 2.1.2)
16+
diff-lcs (1.2.5)
17+
docile (1.1.5)
18+
facter (2.2.0)
19+
CFPropertyList (~> 2.2.6)
20+
hiera (1.3.4)
21+
json_pure
22+
json_pure (1.8.1)
23+
metaclass (0.0.4)
24+
mocha (1.1.0)
25+
metaclass (~> 0.0.1)
26+
multi_json (1.10.1)
27+
power_assert (0.1.3)
28+
puppet (3.5.1)
29+
facter (> 1.6, < 3)
30+
hiera (~> 1.0)
31+
json_pure
32+
rgen (~> 0.6.5)
33+
puppet-lint (1.0.1)
34+
puppetlabs_spec_helper (0.3.0)
35+
mocha (>= 0.10.5)
36+
rake
37+
rspec (>= 2.9.0)
38+
rspec-puppet (>= 0.1.1)
39+
rake (10.3.2)
40+
rgen (0.6.6)
41+
rspec (2.99.0)
42+
rspec-core (~> 2.99.0)
43+
rspec-expectations (~> 2.99.0)
44+
rspec-mocks (~> 2.99.0)
45+
rspec-core (2.99.2)
46+
rspec-expectations (2.99.2)
47+
diff-lcs (>= 1.1.3, < 2.0)
48+
rspec-mocks (2.99.2)
49+
rspec-puppet-utils (2.0.4)
50+
rspec_junit_formatter (0.2.0)
51+
builder (< 4)
52+
rspec (>= 2, < 4)
53+
rspec-core (!= 2.12.0)
54+
simplecov (0.9.0)
55+
docile (~> 1.1.0)
56+
multi_json
57+
simplecov-html (~> 0.8.0)
58+
simplecov-html (0.8.0)
59+
simplecov-rcov (0.2.3)
60+
simplecov (>= 0.4.1)
61+
test-unit (3.0.1)
62+
power_assert
63+
64+
PLATFORMS
65+
ruby
66+
67+
DEPENDENCIES
68+
ci_reporter
69+
facter (>= 1.6.10)
70+
mocha
71+
puppet (= 3.5.1)
72+
puppet-lint
73+
puppetlabs_spec_helper (= 0.3.0)
74+
rake (>= 0.9.2)
75+
rspec (~> 2.0)
76+
rspec-puppet!
77+
rspec-puppet-utils
78+
rspec_junit_formatter
79+
simplecov
80+
simplecov-rcov
81+
test-unit

aviator/LICENSE.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2014 Mark Maglana
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

aviator/Modulefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name 'aimonb-aviator'
2+
version '0.4.4'
3+
source 'https://github.com/aimonb/puppet_aviator'
4+
author 'aimonb'
5+
license 'MIT License'
6+
summary 'Puppet feature wrapper for the Aviator OpenStack API library for Ruby'
7+
description 'UNKNOWN'
8+
project_page 'https://github.com/aimonb/puppet_aviator'
9+
10+
## Add dependencies, if any:
11+
# dependency 'username/name', '>= 1.2.0'

aviator/README

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
session = Aviator::Session.new(
41+
:config => configuration,
42+
:log_file => '/var/log/aviator.log'
43+
)
44+
45+
session.authenticate
46+
keystone = session.identity_service
47+
response = keystone.request(:list_tenants, :endpoint_type =>
48+
'admin')
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Add the parent dir to the load path. This is for when
2+
# Aviator is not installed as a gem
3+
lib_path = File.dirname(__FILE__)
4+
$LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include? lib_path
5+
6+
require 'aviator/core'
7+
require "aviator/openstack/provider"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
require 'yaml'
2+
require 'json'
3+
require 'faraday'
4+
require 'pathname'
5+
6+
require "aviator/version"
7+
require "aviator/core/utils/string"
8+
require "aviator/core/utils/compatibility"
9+
require "aviator/core/utils/hashish"
10+
require "aviator/core/request"
11+
require "aviator/core/request_builder"
12+
require "aviator/core/response"
13+
require "aviator/core/service"
14+
require "aviator/core/session"
15+
require "aviator/core/logger"

0 commit comments

Comments
 (0)