From 7ce7656acae56be8be0fe31ed97fb9cf74d03c08 Mon Sep 17 00:00:00 2001 From: z4yx Date: Sun, 5 Apr 2020 22:52:26 +0800 Subject: [PATCH] add chef --- chef.sh | 21 +++++++++++++++++++++ mongodb.sh | 1 - 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 chef.sh diff --git a/chef.sh b/chef.sh new file mode 100755 index 0000000..76daff1 --- /dev/null +++ b/chef.sh @@ -0,0 +1,21 @@ +#!/bin/bash +set -e +set -o pipefail + +_here=`dirname $(realpath $0)` +apt_sync="${_here}/apt-sync.py" +yum_sync="${_here}/yum-sync.py" + +BASE_PATH="${TUNASYNC_WORKING_DIR}" +UPSTREAM=${TUNASYNC_UPSTREAM_URL:-"https://packages.chef.io/repos"} + +YUM_PATH="${BASE_PATH}/yum" +APT_PATH="${BASE_PATH}/apt" + +"$yum_sync" "${UPSTREAM}/yum/stable/el/@{os_ver}/@{arch}" 6-8 chef x86_64 "stable-el@{os_ver}-@{arch}" "$YUM_PATH" +echo "YUM finished" + +"$apt_sync" "${UPSTREAM}/apt/stable" @ubuntu-lts,@debian-current main amd64,i386,aarch64 "$APT_PATH" +echo "APT finished" + +# vim: ts=4 sts=4 sw=4 diff --git a/mongodb.sh b/mongodb.sh index 49cdc3a..7c6b311 100755 --- a/mongodb.sh +++ b/mongodb.sh @@ -27,7 +27,6 @@ done popd echo "YUM finished" -base_url="http://repo.mongodb.org" for mgver in ${MONGO_VERSIONS[@]}; do "$apt_sync" "$BASE_URL/apt/ubuntu" "@{ubuntu-lts}/mongodb-org/$mgver" multiverse amd64,i386 "$UBUNTU_PATH" "$apt_sync" "$BASE_URL/apt/debian" "@{debian-current}/mongodb-org/$mgver" main amd64,i386 "$DEBIAN_PATH"