Update ark cookbook

This commit is contained in:
Greg Karékinian
2017-02-24 16:05:31 +01:00
parent 6075167494
commit af1718e44a
19 changed files with 310 additions and 101 deletions

View File

@@ -6,7 +6,7 @@
# Author:: Sean OMeara <someara@chef.io
# Author:: John Bellone <jbellone@bloomberg.net>
# Copyright 2012, Bryan W. Berry
# Copyright 2013, Chef Software, Inc.
# Copyright 2013-2016, Chef Software, Inc.
# Copyright 2014, Bloomberg L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -44,6 +44,7 @@ action :install do
checksum new_resource.checksum if new_resource.checksum
action :create
notifies :run, "execute[unpack #{new_resource.release_file}]"
backup new_resource.backup
end
# unpack based on file extension
@@ -61,7 +62,7 @@ action :install do
action :nothing
end
# usually on windows there is no central directory with executables where the applciations are linked
# usually on windows there is no central directory with executables where the applications are linked
unless node['platform_family'] == 'windows'
# symlink binaries
new_resource.has_binaries.each do |bin|
@@ -80,7 +81,7 @@ action :install do
cookbook 'ark'
source 'add_to_path.sh.erb'
owner 'root'
group 'root'
group node['root_group']
mode '0755'
cookbook 'ark'
variables(directory: "#{new_resource.path}/bin")
@@ -119,6 +120,7 @@ action :put do
checksum new_resource.checksum if new_resource.checksum
action :create
notifies :run, "execute[unpack #{new_resource.release_file}]"
backup new_resource.backup
end
# unpack based on file extension