elevage 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/generate.feature +1 -0
- data/lib/elevage/environment.rb +1 -1
- data/lib/elevage/provisioner.rb +4 -1
- data/lib/elevage/templates/environment.yml.tt +2 -1
- data/lib/elevage/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: 4c2d9f567bd44e3a933c726450c349d5e2934f9d
|
4
|
+
data.tar.gz: 15373183e1e134e0494073b28d9ee23ec2a7d443
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a69e7cc605360c1012b64a909cb94695e71437809be67e8ddb4b60db2810588d13ea439bf79fc1110fd2f38c604c8bcc39956094745ffef82b162e6e749f448
|
7
|
+
data.tar.gz: f31e5eb225111343c722b99ff0f79515c9c7b5ad2b29cc3a787530f4408508f325597666209bc9a6b76e64e1127160fafd138ae611e0ee829b72a47b1bc9fd13
|
data/features/generate.feature
CHANGED
@@ -181,6 +181,7 @@ Feature: GENERATE new environment yml file
|
|
181
181
|
# count The number of components in the load balance pool
|
182
182
|
# compute Size of compute resource to assign, defined in the compute.yml file
|
183
183
|
# network vlan the component nodes are attached
|
184
|
+
# cspec The name of any customization specification to apply
|
184
185
|
#
|
185
186
|
# Additionally, you must specify IP addresses for each node. The generate
|
186
187
|
# command will create array placeholders based on the default Count
|
data/lib/elevage/environment.rb
CHANGED
@@ -42,7 +42,7 @@ module Elevage
|
|
42
42
|
# Returns multiline string = IP, fqdn, runlist
|
43
43
|
# @return [String] Expanded node list
|
44
44
|
def list_nodes
|
45
|
-
nodes =
|
45
|
+
nodes = @vcenter['destfolder'].to_s + "\n"
|
46
46
|
@components.each do |component, _config|
|
47
47
|
(1..@components[component]['count']).each do |i|
|
48
48
|
nodes += @components[component]['addresses'][i - 1].ljust(18, ' ') +
|
data/lib/elevage/provisioner.rb
CHANGED
@@ -124,7 +124,7 @@ module Elevage
|
|
124
124
|
knife_cmd << " --regex #{@vcenter['datastore']}"
|
125
125
|
|
126
126
|
# get result and clean up
|
127
|
-
@options['dry-run'] ? @vcenter['datastore'] : `#{knife_cmd}`.to_s.
|
127
|
+
@options['dry-run'] ? @vcenter['datastore'] : `#{knife_cmd}`.to_s.delete!("\n", '')
|
128
128
|
end
|
129
129
|
# rubocop:enable LineLength
|
130
130
|
|
@@ -181,6 +181,9 @@ module Elevage
|
|
181
181
|
knife_cmd << " --ssh-user #{@options['ssh-user']}"
|
182
182
|
knife_cmd << " --identity-file '#{@options['ssh-key']}'"
|
183
183
|
|
184
|
+
# customization spec if it exists
|
185
|
+
knife_cmd << " --cspec #{@component['cspec']}" if @component['cspec']
|
186
|
+
|
184
187
|
# What the node should be identified as in Chef
|
185
188
|
nodename = String.new(@name)
|
186
189
|
nodename << @vcenter['domain'] if @vcenter['appenddomain']
|
@@ -10,6 +10,7 @@ environment:
|
|
10
10
|
# count The number of components in the load balance pool
|
11
11
|
# compute Size of compute resource to assign, defined in the compute.yml file
|
12
12
|
# network vlan the component nodes are attached
|
13
|
+
# cspec The name of any customization specification to apply
|
13
14
|
#
|
14
15
|
# Additionally, you must specify IP addresses for each node. The generate
|
15
16
|
# command will create array placeholders based on the default Count
|
@@ -17,4 +18,4 @@ environment:
|
|
17
18
|
pools:
|
18
19
|
<%= @env_pools %>
|
19
20
|
components:
|
20
|
-
<%= @env_components %>
|
21
|
+
<%= @env_components %>
|
data/lib/elevage/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elevage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nic Cheneweth
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -307,7 +307,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
307
307
|
version: '0'
|
308
308
|
requirements: []
|
309
309
|
rubyforge_project:
|
310
|
-
rubygems_version: 2.
|
310
|
+
rubygems_version: 2.4.4
|
311
311
|
signing_key:
|
312
312
|
specification_version: 4
|
313
313
|
summary: vSphere provisioning
|