summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn <john.mccrae@progress.com>2023-04-07 14:59:55 -0700
committerJohn <john.mccrae@progress.com>2023-04-07 14:59:55 -0700
commitda79eb4611b39c9c4d68a6654f3a557b48bba431 (patch)
treeeda522a71186b50d8b27a9c7d5488e96b6820f4c
parente7f02cf7ee339ebc0ac098e696a056ff6e0f6448 (diff)
downloadchef-jfm/chef17_updating_git_cookbook.tar.gz
Updating the git cookbook versionjfm/chef17_updating_git_cookbook
Signed-off-by: John <john.mccrae@progress.com>
-rw-r--r--kitchen-tests/cookbooks/git/attributes/default.rb40
1 files changed, 40 insertions, 0 deletions
diff --git a/kitchen-tests/cookbooks/git/attributes/default.rb b/kitchen-tests/cookbooks/git/attributes/default.rb
new file mode 100644
index 0000000000..649c056519
--- /dev/null
+++ b/kitchen-tests/cookbooks/git/attributes/default.rb
@@ -0,0 +1,40 @@
+#
+# Author:: Jamie Winsor (<jamie@vialstudios.com>)
+# Cookbook:: git
+# Attributes:: default
+#
+# Copyright:: 2008-2019, Chef Software, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+if platform_family?("windows")
+ default["git"]["version"] = "2.40.0"
+ if node["kernel"]["machine"] == "x86_64"
+ default["git"]["architecture"] = "64"
+ default["git"]["checksum"] = "ff8954afb29814821e9e3759a761bdac49186085e916fa354bf8706e3c7fe7a2"
+ else
+ default["git"]["architecture"] = "32"
+ default["git"]["checksum"] = "9b14e05c3ea00c51dc38838db23fccc6ccb21bfd42ed078bf406857fb47688d6"
+ end
+ default["git"]["url"] = "https://github.com/git-for-windows/git/releases/download/v%{version}.windows.1/Git-%{version}-%{architecture}-bit.exe"
+ default["git"]["display_name"] = "Git version #{node["git"]["version"]}"
+else
+ default["git"]["prefix"] = "/usr/local"
+ default["git"]["version"] = "2.17.1"
+ default["git"]["url"] = "https://nodeload.github.com/git/git/tar.gz/v%{version}"
+ default["git"]["checksum"] = "690f12cc5691e5adaf2dd390eae6f5acce68ae0d9bd9403814f8a1433833f02a"
+ default["git"]["use_pcre"] = false
+end
+
+default["git"]["server"]["base_path"] = "/srv/git"
+default["git"]["server"]["export_all"] = true