hocho-ec2 0.2.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -14
  3. data/lib/hocho-ec2/version.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51c129620328777a9815f34fb6231b5240295d256a38e26a3f51a75821e4744f
4
- data.tar.gz: 9518a6da4b6437293c7531d397d665162055d4e316311cc75962b08380350a5d
3
+ metadata.gz: e6be38211c3a8251117b1f3d61f6efb61a9067f16cd734ae4eb2feb43cf8e37d
4
+ data.tar.gz: 20d6ede54ddf6fafdece395d1a36311ff1a7caadedbfd3c195151f0ca4582bf4
5
5
  SHA512:
6
- metadata.gz: f8febe9892932bfec8fc1fcbe7275e0cf32b862aa68dda935d4434ab383910156c0c4b094ad589fb191af5e02d005ef678b5a6bf110ebd78c589a9ea33536733
7
- data.tar.gz: c6904281b1b6b611a1fbdf1aaa882f2d3989d50a299d2e096bb6ec64786239683369954557448c250e2fa7e4d922494f67e81159c5043dac177f7a6bdb67c2ff
6
+ metadata.gz: e46953fe3b2de3ea5772c07f31bf34882be36cf9ddfecc0726e6483d0424ff8f987fa611186a33dc1c7ac7e11244c02935af0de413710bcf438411347b46fa28
7
+ data.tar.gz: 9d2533ddfb5c5f3adbaf9e3003787fd92a1d361be845e9a9bdfc24399ad37faf2958c4c8a23cb7ffecae0f706f02e6369f19a1f09ad581ddab56b776213701da
data/README.md CHANGED
@@ -1,28 +1,40 @@
1
- # Hocho::Ec2
1
+ # hocho-ec2: Host inventory for Amazon EC2
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/hocho/ec2`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ This is a [sorah/hocho](https://github.com/sorah/hocho) inventory provider plugin that retrieves EC2 instance information as host data.
6
4
 
7
5
  ## Installation
8
6
 
9
- Add this line to your application's Gemfile:
7
+ Add this line to your Gemfile:
10
8
 
11
9
  ```ruby
12
10
  gem 'hocho-ec2'
13
11
  ```
14
12
 
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install hocho-ec2
22
-
23
13
  ## Usage
24
14
 
25
- TODO: Write usage instructions here
15
+ ```yaml
16
+ # hocho.yml
17
+ inventory_providers:
18
+ - ec2:
19
+ ## AWS Region
20
+ region: ap-northeast-1
21
+ ## ec2:DescribeInstances API filters
22
+ filters:
23
+ - name: instance-state-name
24
+ values: ['running']
25
+ ## ERB Template for host.name. You can use `tag(instance, "NAME")` and `tag(vpc, "NAME")` helper.
26
+ hostname_template: '<%= tag(instance, "Name") %>.<%= tag(vpc, "Name") %>.compute.nkmi.me'
27
+ ## Template - Ruby script for host.properties.template. Expected to return an Array.
28
+ runlist_template: '%w(site.rb entry_ec2.rb entry_ec2_role.rb)'
29
+ ## Cache the result for specified duration.
30
+ cache_path: tmp/hocho-ec2-cache.apne1.yml
31
+ cache_duration: 3600
32
+
33
+ ## You can add multiple instnaces of a provider to cover more regions:
34
+ # - ec2:
35
+ # region: us-west-2
36
+ # ...
37
+ ```
26
38
 
27
39
  ## Development
28
40
 
@@ -1,3 +1,3 @@
1
1
  module HochoEc2
2
- VERSION = '0.2.0'
2
+ VERSION = '1.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hocho-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sorah Fukumori
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-27 00:00:00.000000000 Z
11
+ date: 2020-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-ec2
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
- rubygems_version: 3.0.3
108
+ rubygems_version: 3.1.2
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: Hocho gem plugin to discover hosts in EC2