hiera-aws 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.travis.yml ADDED
@@ -0,0 +1,13 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 1.8.7
5
+ - 1.9.3
6
+
7
+ install: bundle install
8
+
9
+ script: bundle exec rake spec
10
+
11
+ branches:
12
+ only:
13
+ - master
data/Gemfile CHANGED
@@ -1,3 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
+
5
+ # Newer versions are not compatible with Ruby 1.8.7
6
+ gem "nokogiri", "~> 1.5.10"
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Hiera AWS Backend
2
2
 
3
+ [![Build Status](https://travis-ci.org/Jimdo/hiera-aws.png?branch=master)](https://travis-ci.org/Jimdo/hiera-aws)
4
+
3
5
  This backend for [Hiera] allows you to retrieve information from AWS that you
4
6
  can use in your Puppet code at runtime. For example, you can ask the backend to
5
7
  get a list of all nodes part of a specific ElastiCache cluster.
@@ -44,7 +46,8 @@ The backend currently supports the following keys that you can pass to the
44
46
 
45
47
  Returns an array of all nodes part of a ElastiCache cluster. The cluster is
46
48
  identified by its physical ID which must be passed to the backend via the Puppet
47
- fact `$cache_cluster_id`.
49
+ fact `$cache_cluster_id`. The returned array has the format `["host1:port",
50
+ "host2:port"]`.
48
51
 
49
52
  ```
50
53
  $cache_cluster_id = "your_cluster_id"
@@ -5,7 +5,7 @@ class Hiera
5
5
  module Aws
6
6
  class ElastiCache < Base
7
7
  def client
8
- region = scope.fetch("location", "eu-west-1")
8
+ region = scope["location"] || "eu-west-1"
9
9
  AWS::ElastiCache::Client.new :region => region
10
10
  end
11
11
 
@@ -1,7 +1,7 @@
1
1
  class Hiera
2
2
  module Backend
3
3
  module Aws
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiera-aws
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mathias Lafeldt
@@ -87,6 +87,7 @@ extra_rdoc_files: []
87
87
 
88
88
  files:
89
89
  - .gitignore
90
+ - .travis.yml
90
91
  - Gemfile
91
92
  - LICENSE
92
93
  - README.md