builderator 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13b532b123dc6f16f2ee5e0745fe8cce7b017796
|
4
|
+
data.tar.gz: 8e9a775c7957c148d800722292a02e1d3522b93c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd75b03cc02eb3ed839a6e296234a08a2cb6988f8e0a87435c273d6616197e01f2e67d606816170827eb994168add38d033de61f356b1b1df617c40bbe5384be
|
7
|
+
data.tar.gz: 7743193cdbfbacd0b27abb7328c7ad433787dbf0ad2e9000f867d5c34c2a991ce7e07eca24f927690346c1e420ece1185de1a8100a00284e31c87ffcb9bcef7d
|
@@ -74,6 +74,11 @@ module Builderator
|
|
74
74
|
|
75
75
|
build.ssh_username 'ubuntu'
|
76
76
|
|
77
|
+
# Packer default is 300 seconds. Specify as a string to give units
|
78
|
+
# such as s (seconds), ms (milliseconds), ns (nanoseconds), etc.
|
79
|
+
# Ints will be interpreted as ns. Buyer beware.
|
80
|
+
build.ssh_timeout '300s'
|
81
|
+
|
77
82
|
build.ami_name [Config.build_name, Config.version, Config.build_number].reject(&:nil?).join('-')
|
78
83
|
build.ami_description Config.description
|
79
84
|
end
|
@@ -252,6 +252,7 @@ module Builderator
|
|
252
252
|
|
253
253
|
## Access parameters
|
254
254
|
attribute :ssh_username
|
255
|
+
attribute :ssh_timeout
|
255
256
|
attribute :ssh_keypair_name
|
256
257
|
attribute :ssh_private_key_file
|
257
258
|
attribute :ssh_private_ip
|
@@ -315,6 +316,7 @@ module Builderator
|
|
315
316
|
attribute :user_data
|
316
317
|
|
317
318
|
attribute :ssh_username
|
319
|
+
attribute :ssh_timeout
|
318
320
|
attribute :keypair_name
|
319
321
|
attribute :private_key_path
|
320
322
|
|
@@ -158,12 +158,20 @@ module Builderator
|
|
158
158
|
:environments_path => Config.local.environment_path,
|
159
159
|
:chef_environment => Config.profile.current.chef.environment,
|
160
160
|
:json => Config.profile.current.chef.node_attrs,
|
161
|
+
:staging_directory => Config.chef.staging_directory,
|
162
|
+
:execute_command => _chef_execute_command(true),
|
163
|
+
:install_command => _chef_install_command(true)
|
161
164
|
}
|
162
165
|
end
|
163
166
|
|
167
|
+
def _chef_execute_command(sudo = true)
|
168
|
+
template = sudo ? 'sudo ' : ''
|
169
|
+
"#{template}chef-solo --no-color -c #{Config.chef.staging_directory}/solo.rb -j #{Config.chef.staging_directory}/node.json"
|
170
|
+
end
|
171
|
+
|
164
172
|
def _chef_install_command(sudo = true)
|
165
|
-
template = sudo ? 'sudo' : ''
|
166
|
-
|
173
|
+
template = sudo ? 'sudo ' : ''
|
174
|
+
"curl -L https://www.chef.io/chef/install.sh | #{template}bash -s -- -v #{Config.chef.version}"
|
167
175
|
end
|
168
176
|
end
|
169
177
|
end
|
@@ -31,7 +31,7 @@ module Builderator
|
|
31
31
|
desc 'build [PROFILE=default *ARGS]', 'Run a build with the installed version of packer'
|
32
32
|
def build(profile = :default, *args)
|
33
33
|
invoke :configure, [profile], options
|
34
|
-
run_with_input "#{Interface.packer.command} build - #{
|
34
|
+
run_with_input "#{Interface.packer.command} build #{options['debug'] ? '-debug -on-error=abort' : ''} - #{args.join('')}", Interface.packer.render
|
35
35
|
end
|
36
36
|
|
37
37
|
desc 'copy PROFILE', 'Copy AMIs generated by packer to other regions'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: builderator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Manero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.49'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
54
|
+
version: '0.49'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: thor-scmversion
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|