Skip to content

Commit 67ae5f4

Browse files
committed
Restore jq 1.4 into Ubuntu14 and Centos6
The jq installed from Ubuntu14 and Centos6 repositories is version 1.3 and doesn't allow to merge two json easily like we do for the other OS Signed-off-by: Luca Carrogu <[email protected]>
1 parent ca5ebde commit 67ae5f4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

files/default/jq-1.4

486 KB
Binary file not shown.

recipes/base_install.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,16 @@
189189
mode "0755"
190190
end
191191

192+
if (node['platform'] == 'ubuntu' && node['platform_version'] == "14.04") || (node['platform_family'] == 'rhel' && node['platform_version'].to_i < 7)
193+
# Install jq for manipulating json files
194+
cookbook_file "jq-1.4" do
195+
path "/usr/local/bin/jq"
196+
owner "root"
197+
group "root"
198+
mode "0755"
199+
end
200+
end
201+
192202
# AMI cleanup script
193203
cookbook_file "ami_cleanup.sh" do
194204
path '/usr/local/sbin/ami_cleanup.sh'

0 commit comments

Comments
 (0)