wombat-cli 0.6.2 → 0.7.2

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: 7ddc13e35754aab60e7913344910a930269ef07d
4
- data.tar.gz: '04937038b8469411ce9fb940f1082c12a9777e5a'
3
+ metadata.gz: c7e9df8f4933709336560bf60e2ba07823ef2f8b
4
+ data.tar.gz: 30c19c933f5951cb9788b253b7cf838485bce0b4
5
5
  SHA512:
6
- metadata.gz: 69910b1bfd31eaef17499017f17a22b0b206225e5cf11843f96e46aff9aebf9114c384fb2384ac8407b3001c739be04499bc714f2645f7737aeaf323d1268fde
7
- data.tar.gz: 1a8a35304eb0c00f293239da268d63f2e2844fe563d2cd13a4a963f868441a4803166ecd6bc56905d3d4c31b22baf4f05467902cc143c23f7300d59678fdb14b
6
+ metadata.gz: 61fa7126bc22a273e87165e786929ef3379e5b72252a7e3374601a5e00ed42d2d6e5d9ff17274e59761eec4b0ede322a2283e6aa442322017e84af80b6946637
7
+ data.tar.gz: 9d2e9ca9461be8959d6f4862b6697239b55f25b9fb3c932233da152221dfb86a5ce401262ee9dace985f38b5599f4eefda7c1b54a351f4fb4e78b9df857be55f
@@ -4,7 +4,7 @@ maintainer_email 'you@example.com'
4
4
  license 'all_rights'
5
5
  description 'Installs/Configures infranodes'
6
6
  long_description 'Installs/Configures infranodes'
7
- version '0.2.0'
7
+ version '0.2.1'
8
8
 
9
9
  depends 'chef-ingredient'
10
10
  depends 'wombat'
@@ -5,8 +5,9 @@
5
5
  # Copyright (c) 2016 The Authors, All Rights Reserved.
6
6
 
7
7
  if node['platform'] == 'windows'
8
- node.default['push_jobs']['package_url'] = "https://packages.chef.io/stable/windows/2008r2/push-jobs-client-2.1.1-1-x86.msi"
9
- node.default['push_jobs']['package_checksum'] = "b8e76d54bb931949bcc94a6c764ccebda0e6957820b0c3fe62c96e6c3a184d9f"
8
+ # Shouldn't need pushy on windows nodes for the time being, and timeouts are blocking builds.
9
+ # node.default['push_jobs']['package_url'] = "https://packages.chef.io/files/stable/push-jobs-client/2.1.4/windows/2012/push-jobs-client-2.1.4-1-x86.msi"
10
+ # node.default['push_jobs']['package_checksum'] = "3b979f8d362738c8ac126ace0e80122a4cbc53425d5f8cf9653cdd79eca16d62"
10
11
 
11
12
  conf_dir = "C:/chef"
12
13
  tmp_dir = "C:/Windows/Temp"
@@ -33,7 +34,8 @@ template File.join(conf_dir, 'client.rb') do
33
34
  variables({
34
35
  :chef_server_url => node['demo']['chef_server_url'],
35
36
  :name => node['demo']['node-name'],
36
- :automate_fqdn => node['demo']['automate_fqdn']
37
+ :automate_fqdn => node['demo']['automate_fqdn'],
38
+ :conf_dir => conf_dir
37
39
  })
38
40
  end
39
41
 
@@ -50,8 +52,9 @@ directory File.join(conf_dir, 'trusted_certs')
50
52
  end
51
53
  end
52
54
  ###
53
- node.set['push_jobs']['chef']['chef_server_url'] = node['demo']['chef_server_url']
54
- node.set['push_jobs']['chef']['node_name'] = node['demo']['node-name']
55
- node.default['push_jobs']['allow_unencrypted'] = true
56
-
57
- include_recipe 'push-jobs'
55
+ if node['platform'] == 'linux'
56
+ node.set['push_jobs']['chef']['chef_server_url'] = node['demo']['chef_server_url']
57
+ node.set['push_jobs']['chef']['node_name'] = node['demo']['node-name']
58
+ node.default['push_jobs']['allow_unencrypted'] = true
59
+ include_recipe 'push-jobs'
60
+ end
@@ -1,5 +1,5 @@
1
1
  chef_server_url '<%= @chef_server_url %>'
2
- client_key '/etc/chef/client.pem'
2
+ client_key '<%= @conf_dir %>/client.pem'
3
3
  node_name '<%= @name %>'
4
4
  data_collector.server_url "https://<%= @automate_fqdn %>/data-collector/v0/"
5
5
  data_collector.token "93a49a4f2482c64126f7b6015e6b0f30284287ee4054ff8807fb63d9cbd1c506"
@@ -158,7 +158,7 @@ module Wombat
158
158
  # iterate around the log files and get the image location
159
159
  time = Benchmark.measure do
160
160
  logs.each do |log|
161
-
161
+
162
162
  # get the image uri
163
163
  url = File.read(log).split("\n").grep(/OSDiskUri:/) {|x| x.split[1]}.last
164
164
 
@@ -176,10 +176,10 @@ module Wombat
176
176
  # Append the new location for the image to the log file
177
177
  append_text = format("\nManagedDiskOSDiskUri: https://%s.blob.core.windows.net/%s/%s", wombat['azure']['storage_account'], container_name, blob_name)
178
178
  File.open(log, 'a') { |f| f.write(append_text) }
179
-
179
+
180
180
  end
181
181
  end
182
-
182
+
183
183
  info (format("Images copied in %s", duration(time.real)))
184
184
 
185
185
  end
@@ -201,8 +201,13 @@ module Wombat
201
201
  if template_name =~ /infranodes/
202
202
  infranodes.each do |name, _rl|
203
203
  next if name.empty?
204
+ if wombat['infranodes'][name]['platform'] == "windows"
205
+ infra_template = template_name + '-windows'
206
+ else
207
+ infra_template = template_name
208
+ end
204
209
  proc_hash[name] = {
205
- 'template' => template_name,
210
+ 'template' => infra_template,
206
211
  'options' => {
207
212
  'node-name' => name,
208
213
  'os' => wombat['infranodes'][name]['platform']
@@ -381,7 +386,7 @@ module Wombat
381
386
  cmd.insert(2, "--var azure_image_sku=#{base_image_parts[2]}")
382
387
  cmd.insert(2, "--var azure_image_version=#{base_image_parts[3]}") if base_image_parts.length == 4
383
388
  end
384
-
389
+
385
390
  cmd.insert(2, "--var azure_resource_group=#{wombat['name']}")
386
391
  cmd.insert(2, "--var azure_storage_account=#{wombat['azure']['storage_account']}")
387
392
  end
@@ -1,3 +1,3 @@
1
1
  module Wombat
2
- VERSION = "0.6.2"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -21,16 +21,16 @@ Gem::Specification.new do |gem|
21
21
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
22
22
  gem.require_paths = ["lib"]
23
23
 
24
- gem.required_ruby_version = ">= 2.3.1"
24
+ gem.required_ruby_version = ">= 2.4.1"
25
25
 
26
26
  gem.add_dependency 'rake', '~> 11.2'
27
27
  gem.add_dependency 'berkshelf', '~> 5.0'
28
28
  gem.add_dependency 'net-ssh', '~> 3.2'
29
29
  gem.add_dependency 'parallel', '~> 1.9'
30
30
  gem.add_dependency 'aws-sdk', '~> 2.5'
31
- gem.add_dependency 'azure_mgmt_resources', '~> 0.9'
32
- gem.add_dependency 'azure_mgmt_storage', '~> 0.9'
33
- gem.add_dependency 'azure_mgmt_network', '~> 0.9'
34
- gem.add_dependency 'azure-storage', '~> 0.11.5.preview'
31
+ gem.add_dependency 'azure_mgmt_resources', '= 0.14.0'
32
+ gem.add_dependency 'azure_mgmt_storage', '= 0.14.0'
33
+ gem.add_dependency 'azure_mgmt_network', '= 0.14.0'
34
+ gem.add_dependency 'azure-storage', '~> 0.14.0.preview'
35
35
  gem.add_dependency 'github_changelog_generator'
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wombat-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andre Elizondo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-27 00:00:00.000000000 Z
12
+ date: 2018-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -85,58 +85,58 @@ dependencies:
85
85
  name: azure_mgmt_resources
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - "~>"
88
+ - - '='
89
89
  - !ruby/object:Gem::Version
90
- version: '0.9'
90
+ version: 0.14.0
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - "~>"
95
+ - - '='
96
96
  - !ruby/object:Gem::Version
97
- version: '0.9'
97
+ version: 0.14.0
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: azure_mgmt_storage
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - "~>"
102
+ - - '='
103
103
  - !ruby/object:Gem::Version
104
- version: '0.9'
104
+ version: 0.14.0
105
105
  type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - "~>"
109
+ - - '='
110
110
  - !ruby/object:Gem::Version
111
- version: '0.9'
111
+ version: 0.14.0
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: azure_mgmt_network
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - "~>"
116
+ - - '='
117
117
  - !ruby/object:Gem::Version
118
- version: '0.9'
118
+ version: 0.14.0
119
119
  type: :runtime
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - "~>"
123
+ - - '='
124
124
  - !ruby/object:Gem::Version
125
- version: '0.9'
125
+ version: 0.14.0
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: azure-storage
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - "~>"
131
131
  - !ruby/object:Gem::Version
132
- version: 0.11.5.preview
132
+ version: 0.14.0.preview
133
133
  type: :runtime
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - "~>"
138
138
  - !ruby/object:Gem::Version
139
- version: 0.11.5.preview
139
+ version: 0.14.0.preview
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: github_changelog_generator
142
142
  requirement: !ruby/object:Gem::Requirement
@@ -377,7 +377,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
377
377
  requirements:
378
378
  - - ">="
379
379
  - !ruby/object:Gem::Version
380
- version: 2.3.1
380
+ version: 2.4.1
381
381
  required_rubygems_version: !ruby/object:Gem::Requirement
382
382
  requirements:
383
383
  - - ">="
@@ -385,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
385
385
  version: '0'
386
386
  requirements: []
387
387
  rubyforge_project:
388
- rubygems_version: 2.6.13
388
+ rubygems_version: 2.5.2
389
389
  signing_key:
390
390
  specification_version: 4
391
391
  summary: Make Chef demos delightful with Wombat