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 +4 -4
- data/generator_files/cookbooks/infranodes/metadata.rb +1 -1
- data/generator_files/cookbooks/infranodes/recipes/default.rb +11 -8
- data/generator_files/cookbooks/infranodes/templates/default/client.rb.erb +1 -1
- data/lib/wombat/build.rb +10 -5
- data/lib/wombat/version.rb +1 -1
- data/wombat-cli.gemspec +5 -5
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7e9df8f4933709336560bf60e2ba07823ef2f8b
|
4
|
+
data.tar.gz: 30c19c933f5951cb9788b253b7cf838485bce0b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61fa7126bc22a273e87165e786929ef3379e5b72252a7e3374601a5e00ed42d2d6e5d9ff17274e59761eec4b0ede322a2283e6aa442322017e84af80b6946637
|
7
|
+
data.tar.gz: 9d2e9ca9461be8959d6f4862b6697239b55f25b9fb3c932233da152221dfb86a5ce401262ee9dace985f38b5599f4eefda7c1b54a351f4fb4e78b9df857be55f
|
@@ -5,8 +5,9 @@
|
|
5
5
|
# Copyright (c) 2016 The Authors, All Rights Reserved.
|
6
6
|
|
7
7
|
if node['platform'] == 'windows'
|
8
|
-
|
9
|
-
node.default['push_jobs']['
|
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
|
54
|
-
node.set['push_jobs']['chef']['
|
55
|
-
node.
|
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 '
|
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"
|
data/lib/wombat/build.rb
CHANGED
@@ -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' =>
|
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
|
data/lib/wombat/version.rb
CHANGED
data/wombat-cli.gemspec
CHANGED
@@ -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.
|
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', '
|
32
|
-
gem.add_dependency 'azure_mgmt_storage', '
|
33
|
-
gem.add_dependency 'azure_mgmt_network', '
|
34
|
-
gem.add_dependency 'azure-storage', '~> 0.
|
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.
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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.
|
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.
|
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.
|
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.
|
388
|
+
rubygems_version: 2.5.2
|
389
389
|
signing_key:
|
390
390
|
specification_version: 4
|
391
391
|
summary: Make Chef demos delightful with Wombat
|