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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 831308271c5d157f33c0c90509d9368ed88652aa
4
- data.tar.gz: 87a2972d4ad9e580b8d2d0dfff92a78f8cf28adb
3
+ metadata.gz: 4c2d9f567bd44e3a933c726450c349d5e2934f9d
4
+ data.tar.gz: 15373183e1e134e0494073b28d9ee23ec2a7d443
5
5
  SHA512:
6
- metadata.gz: 68f1b3bcd8ca570402fbb44c0e1d289c65693fc59fd51205625cfe0f58b47f674c53f6faf611f969eda99cd3992b219021e61e4c57d4a4e7d80b49e4316d85e3
7
- data.tar.gz: 868903fced4812feec7cc8e43616c7b9e8d375ab5d7fac49d0a3f1c92c3fa40aa72adaed926dbe9c09ce0729be5d05d7ccb84b9e180c8c89fc6290935f3ebc74
6
+ metadata.gz: 8a69e7cc605360c1012b64a909cb94695e71437809be67e8ddb4b60db2810588d13ea439bf79fc1110fd2f38c604c8bcc39956094745ffef82b162e6e749f448
7
+ data.tar.gz: f31e5eb225111343c722b99ff0f79515c9c7b5ad2b29cc3a787530f4408508f325597666209bc9a6b76e64e1127160fafd138ae611e0ee829b72a47b1bc9fd13
@@ -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
@@ -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 = @vcenter['destfolder'].to_s + "\n"
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, ' ') +
@@ -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.gsub!("\n", '')
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 %>
@@ -1,4 +1,4 @@
1
1
  # simple gem version number tracking
2
2
  module Elevage
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
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.2
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-06-13 00:00:00.000000000 Z
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.2.2
310
+ rubygems_version: 2.4.4
311
311
  signing_key:
312
312
  specification_version: 4
313
313
  summary: vSphere provisioning