image_builder 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/image_builder/provisioners/chef_base.rb +5 -2
- data/lib/image_builder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 690fa3f0bd68eada1510fc714e3455430d6be51a
|
4
|
+
data.tar.gz: 434f6184986ea8d455a0038a7b87bed14e2e9946
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a593a50eadbf19c77e35f8702a80a4bcdba41965229f7404ee5e4fa43d999563b1fb5e987ff860d4e65be80c6399744cdfbe39cac8560b9dce02969b37b6650
|
7
|
+
data.tar.gz: d003f07ea5bbede50d25bb509d82170e7be5add7675a15884811bab738e2be16e35f6d94769345ee59a21f62cf31d5bd4acf3d4a1c824e5438e23e2197b410c5
|
@@ -60,8 +60,11 @@ module ImageBuilder
|
|
60
60
|
def packer_hash
|
61
61
|
hash = { type: @type }
|
62
62
|
|
63
|
-
@
|
64
|
-
|
63
|
+
unless @chef_version.nil? && @install_command.nil?
|
64
|
+
@install_command = 'curl -L https://www.opscode.com/chef/install.sh | '
|
65
|
+
@install_command += 'sudo ' unless @prevent_sudo
|
66
|
+
@install_command += 'bash -s -- -v ' + @chef_version
|
67
|
+
end
|
65
68
|
|
66
69
|
attr_to_hash(hash, :config_template)
|
67
70
|
attr_to_hash(hash, :execute_command)
|