commit | 35ba94a4a16afacd0996bfc3b9b794c62a179d45 | [log] [tgz] |
---|---|---|
author | Vladimir Khlyunev <vkhlyunev@mirantis.com> | Fri Jun 19 20:48:06 2020 +0400 |
committer | Vladimir Khlyunev <vkhlyunev@mirantis.com> | Fri Jun 19 20:48:06 2020 +0400 |
tree | 00a99c4f5acb0d9483bf68e2acd95ba7eb557086 | |
parent | 8b0a4fdc016709492701d2737f4d6549c91bef05 [diff] |
Use local salt 2017.7 for offline image build PROD-35495 Change-Id: Ie93a552fb8e607d7c27f2c331d0d54aac9616209
Packer templates are used to:
PACKER_URL="https://dl.bintray.com/mitchellh/packer/packer_0.8.2_linux_amd64.zip" PACKER_ZIP=$(basename ${PACKER_URL}) PACKER_ZIP_MD5="bc37abe5e183a11bd8c1b2efc385059b" mkdir -p ~/bin/packer cd ~/bin/packer export PATH="${PATH}:~/bin/packer" wget -O ${PACKER_ZIP} ${PACKER_URL} echo "${PACKER_ZIP_MD5} ${PACKER_ZIP}" >> md5sum md5sum -c --status md5sum unzip ${PACKER_ZIP}
Enter build directory by selecting OS type and version. You should see file template.json.
Start building some images:
packer build -only=virtualbox-iso template.json
Directory http/ contains OS installer config files (preseed/kickstart/..)
Directory scripts/ contains set of scripts for provision after image build.