joyent-provisioner 0.3.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +1 -1
- data/README.md +1 -0
- data/lib/provisioner/host_ip.rb +2 -1
- data/lib/provisioner/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33d28c32418f1e5abbc65a54d0242185a094ba58
|
4
|
+
data.tar.gz: 933399339375a8492b5980f8f14a1966f1870338
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a2a605f1fdaa06960e82747a1451c6aa8b72b4d76246b29e1bc160f085b5b57d2b338c76c8237c04a9cc808434250c53d9bb923871f791e36f2b37792be4ca7
|
7
|
+
data.tar.gz: 49feecebd6015a3481e12128a37daea0795e10f566aea5b96a169a9f50956d4dbe1577b8bdc437983123d367467f006745a83c6e27ce21f4e39c692d64ff0520
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/joyent-provisioner.png)](http://badge.fury.io/rb/joyent-provisioner)
|
4
4
|
[![Build status](https://secure.travis-ci.org/wanelo/joyent-provisioner.png)](http://travis-ci.org/wanelo/joyent-provisioner)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/wanelo/joyent-provisioner.png)](https://codeclimate.com/github/wanelo/joyent-provisioner)
|
5
6
|
|
6
7
|
This gem provides a ruby class and a command line tool to simplify provisioning of clusters of hosts in the
|
7
8
|
cloud environment, based on rules defined in a convenient yml file. It specifically supports Joyent Cloud,
|
data/lib/provisioner/host_ip.rb
CHANGED
@@ -15,13 +15,14 @@ module Provisioner
|
|
15
15
|
# example line
|
16
16
|
# 4330e738-2bca-ee10-f9a6-e9a1b3fcfdec vpn001.prod running virtualmachine sdc:jpc:ubuntu-12.04:2.4. g3-highcpu-1.75-kvm 9.12.42.172,10.100.114.217 1.75 GB 75 GB
|
17
17
|
zone, hostname, status, type, image, flavor, ips = server.split(/\s+/).compact
|
18
|
+
next if ips.nil?
|
18
19
|
@ips[hostname] = (ips.split(',') || []).first
|
19
20
|
end
|
20
21
|
@ips
|
21
22
|
end
|
22
23
|
|
23
24
|
def self.server_list
|
24
|
-
@server_list ||= `knife joyent server list | tail +2`.split("\n")
|
25
|
+
@server_list ||= `knife joyent server list | tail -n +2 | grep -v "Total "`.split("\n")
|
25
26
|
end
|
26
27
|
end
|
27
28
|
end
|
data/lib/provisioner/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: joyent-provisioner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Gredeskoul
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2014-01-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mixlib-cli
|
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
216
|
version: '0'
|
217
217
|
requirements: []
|
218
218
|
rubyforge_project:
|
219
|
-
rubygems_version: 2.0.
|
219
|
+
rubygems_version: 2.0.3
|
220
220
|
signing_key:
|
221
221
|
specification_version: 4
|
222
222
|
summary: Wrapper gem around provisioning clusters of servers on Joyent cloud
|