-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Waleed Malik <ahmedwaleedmalik@gmail.com>
- Loading branch information
1 parent
f066e05
commit 6290196
Showing
17 changed files
with
152 additions
and
1,146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2020 The Kubernetes Authors. | ||
# | ||
# 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. | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
[[ -n ${DEBUG:-} ]] && set -o xtrace | ||
|
||
source hack/utils.sh | ||
|
||
_version="0.4.2" | ||
|
||
if [[ ${HOSTOS} == "darwin" ]]; then | ||
echo "IMPORTANT: Winrm connection plugin for Ansible on MacOS causes connection issues." | ||
echo "See https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html#what-is-winrm for more details." | ||
echo "To fix the issue provide the enviroment variable 'no_proxy=*'" | ||
echo "Example call to build Windows images on MacOS: 'no_proxy=* make build-<target>'" | ||
fi | ||
|
||
# Change directories to the parent directory of the one in which this | ||
# script is located. | ||
cd "$(dirname "${BASH_SOURCE[0]}")/.." | ||
|
||
# Disable pip's version check and root user warning | ||
export PIP_DISABLE_PIP_VERSION_CHECK=1 PIP_ROOT_USER_ACTION=ignore | ||
|
||
if pip3 show pywinrm >/dev/null 2>&1; then exit 0; fi | ||
|
||
ensure_py3 | ||
pip3 install --user "pywinrm==${_version}" | ||
if ! pip3 show pywinrm ; then exit 1; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2020 The Kubernetes Authors. | ||
# | ||
# 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. | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
[[ -n ${DEBUG:-} ]] && set -o xtrace | ||
|
||
source hack/utils.sh | ||
|
||
_version="2.11.5" | ||
|
||
# Change directories to the parent directory of the one in which this | ||
# script is located. | ||
cd "$(dirname "${BASH_SOURCE[0]}")/.." | ||
|
||
# Disable pip's version check and root user warning | ||
export PIP_DISABLE_PIP_VERSION_CHECK=1 PIP_ROOT_USER_ACTION=ignore | ||
|
||
if ! command -v ansible >/dev/null 2>&1; then | ||
ensure_py3 | ||
pip3 install --user "ansible-core==${_version}" | ||
ensure_py3_bin ansible | ||
ensure_py3_bin ansible-playbook | ||
fi | ||
|
||
ansible-galaxy collection install \ | ||
community.general \ | ||
ansible.posix \ | ||
'ansible.windows:>=1.7.0' \ | ||
community.windows |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2019 The Kubernetes Authors. | ||
# | ||
# 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. | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
[[ -n ${DEBUG:-} ]] && set -o xtrace | ||
|
||
_version="1.8.6" | ||
|
||
# Change directories to the parent directory of the one in which this | ||
# script is located. | ||
cd "$(dirname "${BASH_SOURCE[0]}")/.." | ||
|
||
source hack/utils.sh | ||
|
||
if command -v packer >/dev/null 2>&1; then exit 0; fi | ||
|
||
mkdir -p .local/bin && cd .local/bin | ||
|
||
SED="sed" | ||
if command -v gsed >/dev/null; then | ||
SED="gsed" | ||
fi | ||
if ! (${SED} --version 2>&1 | grep -q GNU); then | ||
echo "!!! GNU sed is required. If on OS X, use 'brew install gnu-sed'." >&2 | ||
exit 1 | ||
fi | ||
|
||
_chkfile="packer_${_version}_SHA256SUMS" | ||
_chk_url="https://releases.hashicorp.com/packer/${_version}/${_chkfile}" | ||
_zipfile="packer_${_version}_${HOSTOS}_${HOSTARCH}.zip" | ||
_zip_url="https://releases.hashicorp.com/packer/${_version}/${_zipfile}" | ||
curl -SsLO "${_chk_url}" | ||
curl -SsLO "${_zip_url}" | ||
${SED} -i -n "/${HOSTOS}_${HOSTARCH}/p" "${_chkfile}" | ||
checksum_sha256 "${_chkfile}" | ||
unzip -o "${_zipfile}" | ||
rm -f "${_chkfile}" "${_zipfile}" | ||
echo "'packer' has been installed to $(pwd), make sure this directory is in your \$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.