zeus
2 years ago
191 changed files with 9839 additions and 229 deletions
@ -0,0 +1,12 @@ |
|||||
|
This is not your normal Bento box. Instead of building a system from an ISO we're building a system from an Amazon provided VirtualBox VDI file. This means the process is a bit different than usual. |
||||
|
|
||||
|
# Building this box |
||||
|
|
||||
|
Simply run the AMZ_build_virtualbox-ovf.sh script |
||||
|
|
||||
|
This script will: |
||||
|
|
||||
|
1. Download the VirtualBox .vdi file for Amazon Linux 2 and place it in the amz_working_files directory. Amazon hosts these at <https://cdn.amazonlinux.com/os-images/latest/virtualbox/>. It will name it amazon.vdi instead of the version specific name that Amazon gives it on their site |
||||
|
1. It will prepare this VDI file for packer and export it as a OVF file |
||||
|
1. It will run the packer build |
||||
|
1. Lastly it will clean up the leftover files in the working directory |
@ -0,0 +1,67 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
# Getting script directory location |
||||
|
SCRIPT_RELATIVE_DIR=$(dirname "${BASH_SOURCE[0]}") |
||||
|
cd "$SCRIPT_RELATIVE_DIR" || exit |
||||
|
|
||||
|
# set tmp dir for files |
||||
|
AMZDIR="$(pwd)/packer_templates/amz_working_files" |
||||
|
|
||||
|
# Get virtualbox vdi file name with latest version number |
||||
|
IMG="$(wget -q https://cdn.amazonlinux.com/os-images/latest/virtualbox/ -O - | grep ".vdi" | cut -d "\"" -f 2)" |
||||
|
|
||||
|
# Download vbox vdi |
||||
|
wget -q -O "$AMZDIR"/amazon.vdi -c https://cdn.amazonlinux.com/os-images/latest/virtualbox/"$IMG" |
||||
|
|
||||
|
if [ ! -f "$AMZDIR"/amazon.vdi ]; then |
||||
|
echo There must be a file named amazon.vdi in "$AMZDIR"! |
||||
|
echo You can download the vdi file at https://cdn.amazonlinux.com/os-images/latest/virtualbox/ |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
echo "Cleaning up old files" |
||||
|
rm -f "$AMZDIR"/*.iso "$AMZDIR"/*.ovf "$AMZDIR"/*.vmdk |
||||
|
|
||||
|
echo "Creating ISO" |
||||
|
hdiutil makehybrid -o "$AMZDIR"/seed.iso -hfs -joliet -iso -default-volume-name cidata "$AMZDIR"/../amz_seed_iso |
||||
|
|
||||
|
VM="AmazonLinuxBento" |
||||
|
echo Powering off and deleting any existing VMs named $VM |
||||
|
VBoxManage controlvm $VM poweroff --type headless 2> /dev/null |
||||
|
VBoxManage unregistervm $VM --delete 2> /dev/null |
||||
|
sleep 5 |
||||
|
|
||||
|
echo "Creating the VM" |
||||
|
# from https://www.perkin.org.uk/posts/create-virtualbox-vm-from-the-command-line.html |
||||
|
VBoxManage createvm --name $VM --ostype "RedHat_64" --register |
||||
|
VBoxManage storagectl $VM --name "SATA Controller" --add sata --controller IntelAHCI |
||||
|
VBoxManage storageattach $VM --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium "$AMZDIR"/amazon.vdi |
||||
|
VBoxManage storagectl $VM --name "IDE Controller" --add ide |
||||
|
VBoxManage storageattach $VM --storagectl "IDE Controller" --port 0 --device 0 --type dvddrive --medium "$AMZDIR"/seed.iso |
||||
|
VBoxManage modifyvm $VM --memory 1024 |
||||
|
VBoxManage modifyvm $VM --cpus 2 |
||||
|
VBoxManage modifyvm $VM --audio none |
||||
|
VBoxManage modifyvm $VM --ioapic on |
||||
|
sleep 5 |
||||
|
|
||||
|
echo Sleeping for 120 seconds to let the system boot and cloud-init to run |
||||
|
VBoxManage startvm $VM --type headless |
||||
|
sleep 120 |
||||
|
VBoxManage controlvm $VM poweroff --type headless |
||||
|
VBoxManage storageattach $VM --storagectl "IDE Controller" --port 0 --device 0 --type dvddrive --medium none |
||||
|
sleep 5 |
||||
|
|
||||
|
echo Exporting the VM to an OVF file |
||||
|
vboxmanage export $VM -o "$AMZDIR"/amazon2.ovf |
||||
|
sleep 5 |
||||
|
|
||||
|
echo Deleting the VM |
||||
|
vboxmanage unregistervm $VM --delete |
||||
|
|
||||
|
echo starting packer build of amazonlinux |
||||
|
if packer build -timestamp-ui -only=virtualbox-ovf.amazonlinux -var-file="$AMZDIR"/../../os_pkrvars/amazonlinux/amazonlinux-2-x86_64.pkrvars.hcl "$AMZDIR"/../../packer_templates; then |
||||
|
echo "Cleaning up files" |
||||
|
rm -f "$AMZDIR"/*.ovf "$AMZDIR"/*.vmdk "$AMZDIR"/*.iso |
||||
|
else |
||||
|
exit 1 |
||||
|
fi |
File diff suppressed because it is too large
@ -0,0 +1 @@ |
|||||
|
Please refer to <https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD> |
@ -1,235 +1,201 @@ |
|||||
GNU AFFERO GENERAL PUBLIC LICENSE |
Apache License |
||||
Version 3, 19 November 2007 |
Version 2.0, January 2004 |
||||
|
http://www.apache.org/licenses/ |
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
|
||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION |
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. |
|
||||
|
1. Definitions. |
||||
Preamble |
|
||||
|
"License" shall mean the terms and conditions for use, reproduction, |
||||
The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software. |
and distribution as defined by Sections 1 through 9 of this document. |
||||
|
|
||||
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. |
"Licensor" shall mean the copyright owner or entity authorized by |
||||
|
the copyright owner that is granting the License. |
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. |
|
||||
|
"Legal Entity" shall mean the union of the acting entity and all |
||||
Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software. |
other entities that control, are controlled by, or are under common |
||||
|
control with that entity. For the purposes of this definition, |
||||
A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public. |
"control" means (i) the power, direct or indirect, to cause the |
||||
|
direction or management of such entity, whether by contract or |
||||
The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version. |
otherwise, or (ii) ownership of fifty percent (50%) or more of the |
||||
|
outstanding shares, or (iii) beneficial ownership of such entity. |
||||
An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license. |
|
||||
|
"You" (or "Your") shall mean an individual or Legal Entity |
||||
The precise terms and conditions for copying, distribution and modification follow. |
exercising permissions granted by this License. |
||||
|
|
||||
TERMS AND CONDITIONS |
"Source" form shall mean the preferred form for making modifications, |
||||
|
including but not limited to software source code, documentation |
||||
0. Definitions. |
source, and configuration files. |
||||
|
|
||||
"This License" refers to version 3 of the GNU Affero General Public License. |
"Object" form shall mean any form resulting from mechanical |
||||
|
transformation or translation of a Source form, including but |
||||
"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. |
not limited to compiled object code, generated documentation, |
||||
|
and conversions to other media types. |
||||
"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. |
|
||||
|
"Work" shall mean the work of authorship, whether in Source or |
||||
To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. |
Object form, made available under the License, as indicated by a |
||||
|
copyright notice that is included in or attached to the work |
||||
A "covered work" means either the unmodified Program or a work based on the Program. |
(an example is provided in the Appendix below). |
||||
|
|
||||
To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. |
"Derivative Works" shall mean any work, whether in Source or Object |
||||
|
form, that is based on (or derived from) the Work and for which the |
||||
To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. |
editorial revisions, annotations, elaborations, or other modifications |
||||
|
represent, as a whole, an original work of authorship. For the purposes |
||||
An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. |
of this License, Derivative Works shall not include works that remain |
||||
|
separable from, or merely link (or bind by name) to the interfaces of, |
||||
1. Source Code. |
the Work and Derivative Works thereof. |
||||
The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. |
|
||||
|
"Contribution" shall mean any work of authorship, including |
||||
A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. |
the original version of the Work and any modifications or additions |
||||
|
to that Work or Derivative Works thereof, that is intentionally |
||||
The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. |
submitted to Licensor for inclusion in the Work by the copyright owner |
||||
|
or by an individual or Legal Entity authorized to submit on behalf of |
||||
The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those |
the copyright owner. For the purposes of this definition, "submitted" |
||||
subprograms and other parts of the work. |
means any form of electronic, verbal, or written communication sent |
||||
|
to the Licensor or its representatives, including but not limited to |
||||
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. |
communication on electronic mailing lists, source code control systems, |
||||
|
and issue tracking systems that are managed by, or on behalf of, the |
||||
The Corresponding Source for a work in source code form is that same work. |
Licensor for the purpose of discussing and improving the Work, but |
||||
|
excluding communication that is conspicuously marked or otherwise |
||||
2. Basic Permissions. |
designated in writing by the copyright owner as "Not a Contribution." |
||||
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. |
|
||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity |
||||
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. |
on behalf of whom a Contribution has been received by Licensor and |
||||
|
subsequently incorporated within the Work. |
||||
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. |
|
||||
|
2. Grant of Copyright License. Subject to the terms and conditions of |
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law. |
this License, each Contributor hereby grants to You a perpetual, |
||||
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. |
worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
||||
|
copyright license to reproduce, prepare Derivative Works of, |
||||
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. |
publicly display, publicly perform, sublicense, and distribute the |
||||
|
Work and such Derivative Works in Source or Object form. |
||||
4. Conveying Verbatim Copies. |
|
||||
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. |
3. Grant of Patent License. Subject to the terms and conditions of |
||||
|
this License, each Contributor hereby grants to You a perpetual, |
||||
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. |
worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
||||
|
(except as stated in this section) patent license to make, have made, |
||||
5. Conveying Modified Source Versions. |
use, offer to sell, sell, import, and otherwise transfer the Work, |
||||
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: |
where such license applies only to those patent claims licensable |
||||
|
by such Contributor that are necessarily infringed by their |
||||
a) The work must carry prominent notices stating that you modified it, and giving a relevant date. |
Contribution(s) alone or by combination of their Contribution(s) |
||||
|
with the Work to which such Contribution(s) was submitted. If You |
||||
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". |
institute patent litigation against any entity (including a |
||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work |
||||
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. |
or a Contribution incorporated within the Work constitutes direct |
||||
|
or contributory patent infringement, then any patent licenses |
||||
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. |
granted to You under this License for that Work shall terminate |
||||
|
as of the date such litigation is filed. |
||||
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. |
|
||||
|
4. Redistribution. You may reproduce and distribute copies of the |
||||
6. Conveying Non-Source Forms. |
Work or Derivative Works thereof in any medium, with or without |
||||
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: |
modifications, and in Source or Object form, provided that You |
||||
|
meet the following conditions: |
||||
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. |
|
||||
|
(a) You must give any other recipients of the Work or |
||||
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. |
Derivative Works a copy of this License; and |
||||
|
|
||||
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. |
(b) You must cause any modified files to carry prominent notices |
||||
|
stating that You changed the files; and |
||||
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. |
|
||||
|
(c) You must retain, in the Source form of any Derivative Works |
||||
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. |
that You distribute, all copyright, patent, trademark, and |
||||
|
attribution notices from the Source form of the Work, |
||||
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. |
excluding those notices that do not pertain to any part of |
||||
|
the Derivative Works; and |
||||
A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. |
|
||||
|
(d) If the Work includes a "NOTICE" text file as part of its |
||||
"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. |
distribution, then any Derivative Works that You distribute must |
||||
|
include a readable copy of the attribution notices contained |
||||
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). |
within such NOTICE file, excluding those notices that do not |
||||
|
pertain to any part of the Derivative Works, in at least one |
||||
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. |
of the following places: within a NOTICE text file distributed |
||||
|
as part of the Derivative Works; within the Source form or |
||||
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. |
documentation, if provided along with the Derivative Works; or, |
||||
|
within a display generated by the Derivative Works, if and |
||||
7. Additional Terms. |
wherever such third-party notices normally appear. The contents |
||||
"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. |
of the NOTICE file are for informational purposes only and |
||||
|
do not modify the License. You may add Your own attribution |
||||
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. |
notices within Derivative Works that You distribute, alongside |
||||
|
or as an addendum to the NOTICE text from the Work, provided |
||||
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: |
that such additional attribution notices cannot be construed |
||||
|
as modifying the License. |
||||
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or |
|
||||
|
You may add Your own copyright statement to Your modifications and |
||||
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or |
may provide additional or different license terms and conditions |
||||
|
for use, reproduction, or distribution of Your modifications, or |
||||
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or |
for any such Derivative Works as a whole, provided Your use, |
||||
|
reproduction, and distribution of the Work otherwise complies with |
||||
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or |
the conditions stated in this License. |
||||
|
|
||||
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or |
5. Submission of Contributions. Unless You explicitly state otherwise, |
||||
|
any Contribution intentionally submitted for inclusion in the Work |
||||
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. |
by You to the Licensor shall be under the terms and conditions of |
||||
|
this License, without any additional terms or conditions. |
||||
All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. |
Notwithstanding the above, nothing herein shall supersede or modify |
||||
|
the terms of any separate license agreement you may have executed |
||||
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. |
with Licensor regarding such Contributions. |
||||
|
|
||||
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. |
6. Trademarks. This License does not grant permission to use the trade |
||||
|
names, trademarks, service marks, or product names of the Licensor, |
||||
8. Termination. |
except as required for reasonable and customary use in describing the |
||||
|
origin of the Work and reproducing the content of the NOTICE file. |
||||
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). |
|
||||
|
7. Disclaimer of Warranty. Unless required by applicable law or |
||||
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. |
agreed to in writing, Licensor provides the Work (and each |
||||
|
Contributor provides its Contributions) on an "AS IS" BASIS, |
||||
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
||||
|
implied, including, without limitation, any warranties or conditions |
||||
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. |
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A |
||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the |
||||
9. Acceptance Not Required for Having Copies. |
appropriateness of using or redistributing the Work and assume any |
||||
|
risks associated with Your exercise of permissions under this License. |
||||
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. |
|
||||
|
8. Limitation of Liability. In no event and under no legal theory, |
||||
10. Automatic Licensing of Downstream Recipients. |
whether in tort (including negligence), contract, or otherwise, |
||||
|
unless required by applicable law (such as deliberate and grossly |
||||
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. |
negligent acts) or agreed to in writing, shall any Contributor be |
||||
|
liable to You for damages, including any direct, indirect, special, |
||||
An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. |
incidental, or consequential damages of any character arising as a |
||||
|
result of this License or out of the use or inability to use the |
||||
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. |
Work (including but not limited to damages for loss of goodwill, |
||||
|
work stoppage, computer failure or malfunction, or any and all |
||||
11. Patents. |
other commercial damages or losses), even if such Contributor |
||||
|
has been advised of the possibility of such damages. |
||||
A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". |
|
||||
|
9. Accepting Warranty or Additional Liability. While redistributing |
||||
A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. |
the Work or Derivative Works thereof, You may choose to offer, |
||||
|
and charge a fee for, acceptance of support, warranty, indemnity, |
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. |
or other liability obligations and/or rights consistent with this |
||||
|
License. However, in accepting such obligations, You may act only |
||||
In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. |
on Your own behalf and on Your sole responsibility, not on behalf |
||||
|
of any other Contributor, and only if You agree to indemnify, |
||||
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent |
defend, and hold each Contributor harmless for any liability |
||||
license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. |
incurred by, or claims asserted against, such Contributor by reason |
||||
|
of your accepting any such warranty or additional liability. |
||||
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. |
|
||||
|
|
||||
A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. |
|
||||
|
|
||||
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. |
|
||||
|
|
||||
12. No Surrender of Others' Freedom. |
|
||||
|
|
||||
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may |
|
||||
not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. |
|
||||
|
|
||||
13. Remote Network Interaction; Use with the GNU General Public License. |
|
||||
|
|
||||
Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph. |
|
||||
|
|
||||
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License. |
|
||||
|
|
||||
14. Revised Versions of this License. |
|
||||
|
|
||||
The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. |
|
||||
|
|
||||
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. |
|
||||
|
|
||||
If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. |
|
||||
|
|
||||
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. |
|
||||
|
|
||||
15. Disclaimer of Warranty. |
|
||||
|
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
|
||||
|
|
||||
16. Limitation of Liability. |
|
||||
|
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
|
||||
|
|
||||
17. Interpretation of Sections 15 and 16. |
|
||||
|
|
||||
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. |
|
||||
|
|
||||
END OF TERMS AND CONDITIONS |
END OF TERMS AND CONDITIONS |
||||
|
|
||||
How to Apply These Terms to Your New Programs |
APPENDIX: How to apply the Apache License to your work. |
||||
|
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. |
|
||||
|
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. |
|
||||
|
|
||||
<one line to give the program's name and a brief idea of what it does.> |
|
||||
Copyright (C) <year> <name of author> |
|
||||
|
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. |
|
||||
|
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. |
To apply the Apache License to your work, attach the following |
||||
|
boilerplate notice, with the fields enclosed by brackets "[]" |
||||
|
replaced with your own identifying information. (Don't include |
||||
|
the brackets!) The text should be enclosed in the appropriate |
||||
|
comment syntax for the file format. We also recommend that a |
||||
|
file or class name and description of purpose be included on the |
||||
|
same "printed page" as the copyright notice for easier |
||||
|
identification within third-party archives. |
||||
|
|
||||
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. |
Copyright [yyyy] [name of copyright owner] |
||||
|
|
||||
Also add information on how to contact you by electronic and paper mail. |
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 |
||||
|
|
||||
If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements. |
http://www.apache.org/licenses/LICENSE-2.0 |
||||
|
|
||||
You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <http://www.gnu.org/licenses/>. |
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. |
||||
|
@ -0,0 +1,11 @@ |
|||||
|
# Bento NOTICE |
||||
|
|
||||
|
Chef Bento |
||||
|
Copyright 2019-2023, Progress Software Corporation |
||||
|
Copyright 2012-2019, Chef Software, Inc. |
||||
|
|
||||
|
The baseboxes in the "definitions" directory is from Tim Dysinger's |
||||
|
"basebox" project. |
||||
|
|
||||
|
Author: Tim Dysinger (<tim@dysinger.net>) |
||||
|
Copyright 2011-2012, Tim Dysinger (<tim@dysinger.net>) |
@ -1,3 +1,173 @@ |
|||||
# create-iso |
# Bento |
||||
git clone |
|
||||
|
|
||||
|
Bento is a project that encapsulates [Packer](https://www.packer.io/) templates for building [Vagrant](https://www.vagrantup.com/) base boxes. A subset of templates are built and published to the [bento org](https://app.vagrantup.com/bento) on Vagrant Cloud. These published boxes serve as the default boxes for [kitchen-vagrant](https://github.com/test-kitchen/kitchen-vagrant/). |
||||
|
|
||||
|
***NOTE:** |
||||
|
|
||||
|
- Virutalbox 6.x requires disabling nat config that allows vbox 7.x guests to connect to the host. To use comment out lines #161 and #162 in bento/packer_templates/pkr-variables.pkr.hcl or add variable `vboxmanage = []` to os_pkrvars files. |
||||
|
- When running packer build command the output directory is relative to the working directory the command is currently running in. Suggest running packer build commands from bento root directory for build working files to be placed in bento/builds/(build_name) directory by default. If the output_directory variable isn't overwritten a directory called builds/(build_name) will be created in the current working directory that you are running the command from |
||||
|
|
||||
|
## Using Public Boxes |
||||
|
|
||||
|
Adding a bento box to Vagrant |
||||
|
|
||||
|
```bash |
||||
|
vagrant box add bento/ubuntu-18.04 |
||||
|
``` |
||||
|
|
||||
|
Using a bento box in a Vagrantfile |
||||
|
|
||||
|
```ruby |
||||
|
Vagrant.configure("2") do |config| |
||||
|
config.vm.box = "bento/ubuntu-18.04" |
||||
|
end |
||||
|
``` |
||||
|
|
||||
|
### Building Boxes |
||||
|
|
||||
|
#### Requirements |
||||
|
|
||||
|
- [Packer](https://www.packer.io/) >= 1.7.0 |
||||
|
- [Vagrant](https://www.vagrantup.com/) |
||||
|
- At least one of the following virtualization providers: |
||||
|
- [VirtualBox](https://www.virtualbox.org/) |
||||
|
- [VMware Fusion](https://www.vmware.com/products/fusion.html) |
||||
|
- [VMware Workstation](https://www.vmware.com/products/workstation-pro.html) |
||||
|
- [Parallels Desktop](https://www.parallels.com/products/desktop/) also requires [Parallels Virtualization SDK](https://www.parallels.com/products/desktop/download/) |
||||
|
- [qemu](https://www.qemu.org/) * |
||||
|
- [Hyper-V](https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/about/) * |
||||
|
|
||||
|
***NOTE:** support for these providers is considered experimental and corresponding Vagrant Cloud images may or may not exist. |
||||
|
|
||||
|
#### Using `packer` |
||||
|
|
||||
|
To build a Ubuntu 22.04 box for only the VirtualBox provider |
||||
|
|
||||
|
```bash |
||||
|
cd <path/to>/bento |
||||
|
packer init -upgrade ./packer_templates |
||||
|
packer build -only=virtualbox-iso.vm -var-file=os_pkrvars/ubuntu/ubuntu-22.04-x86_64.pkrvars.hcl ./packer_templates |
||||
|
``` |
||||
|
|
||||
|
To build latest Debian 11 boxes for all possible providers (simultaneously) |
||||
|
|
||||
|
```bash |
||||
|
cd <path/to>/bento |
||||
|
packer init -upgrade ./packer_templates |
||||
|
packer build -var-file=os_pkrvars/debian/debian-11-x86_64.pkrvars.hcl ./packer_templates |
||||
|
``` |
||||
|
|
||||
|
To build latest CentOS 7 boxes for all providers except VMware and Parallels |
||||
|
|
||||
|
```bash |
||||
|
cd <path/to>/bento |
||||
|
packer init -upgrade ./packer_templates |
||||
|
packer build -except=parallels-iso.vm,vmware-iso.vm -var-file=os_pkrvars/centos/centos-7-x86_64.pkrvars.hcl ./packer_templates |
||||
|
``` |
||||
|
|
||||
|
To use an alternate url |
||||
|
|
||||
|
````bash |
||||
|
cd <path/to>/bento |
||||
|
packer init -upgrade ./packer_templates |
||||
|
packer build -var 'iso_url=http://mirror.utexas.edu/fedora/linux' -var-file=os_pkrvars/fedora/fedor-37-x86_64.pkrvars.hcl ./packer_templates |
||||
|
```` |
||||
|
|
||||
|
To build a Windows 10 Enterprise Gen 2 box for the Hyper-V provider |
||||
|
|
||||
|
```bash |
||||
|
cd <path/to>/bento |
||||
|
packer init -upgrade ./packer_templates |
||||
|
packer build -var-file=os_pkrvars/windows/windows-10gen2-x86_64.pkrvars.hcl ./packer_templates |
||||
|
``` |
||||
|
|
||||
|
If the build is successful, your box files will be in the `builds` directory at the root of the repository. |
||||
|
|
||||
|
#### KVM/qemu support for Windows |
||||
|
|
||||
|
You must download [the iso image with the Windows drivers for paravirtualized KVM/qemu hardware](https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso). You can do this from the command line: `wget -nv -nc https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso -O virtio-win.iso` and place it in the packer_templates/win_answer_files/ directory. |
||||
|
|
||||
|
You can use the following sample command to build a KVM/qemu Windows box: |
||||
|
|
||||
|
```bash |
||||
|
packer init -upgrade ./packer_templates |
||||
|
packer build --only=qemu.vm -var-file=os_pkrvars/windwos/windows-2022-x86_64.pkrvars.hcl ./packer_templates |
||||
|
``` |
||||
|
|
||||
|
### Proprietary Templates |
||||
|
|
||||
|
Templates for operating systems only available via license or subscription are also available in the repository, these include but are not limited to: Red Hat Enterprise Linux, and SUSE Linux Enterprise. As the ISOs are not publicly available the URL values will need to be overridden as appropriate. We rely on the efforts of those with access to licensed versions of the operating systems to keep these up-to-date. |
||||
|
|
||||
|
### Networking/Firewalls |
||||
|
|
||||
|
Most of the providers expect unrestricted access to networking in order to build as expected. We can't enumerate all possible firewall configurations but include some snippets below that might be useful to users. |
||||
|
|
||||
|
#### Windows |
||||
|
|
||||
|
```powershell |
||||
|
$VS = "Standardswitch" |
||||
|
$IF_ALIAS = (Get-NetAdapter -Name "vEthernet ($VS)").ifAlias |
||||
|
New-NetFirewallRule -Displayname "Allow incomming from $VS" -Direction Inbound -InterfaceAlias $IF_ALIAS -Action Allow |
||||
|
``` |
||||
|
|
||||
|
#### Hyper-V Generation 2 VM's |
||||
|
|
||||
|
Hyper-V Gen 2 VMs do not support floppy drives. If you previously provided resources using a floppy drive, you must add those files to your Gen 2 iso images, in particular: |
||||
|
|
||||
|
- `autounattend.xml`: The Gen 2 `autounattend.xml` file supports EFI partitions. Update the `autounattend.xml` with the correct Windows version for your systems and ensure that the partitions are correct for your situation. You also need to manage the driver disk that holds the hyper-v guest services drivers and adjust the `autounattend.xml` file as appropriate. |
||||
|
- `base_setup.ps1` |
||||
|
|
||||
|
### Testing the build with the test-kitchen |
||||
|
|
||||
|
If you have successfully built a vagrant box using the bento tool, you should have the vagrant box and a metadata file in the `builds` folder. You can use these files to test the build with a test-kitchen configuration. Place your `kitchen.yml` and `bootstrap.sh` files inside the `templates` directory and run the following command to test the build. |
||||
|
|
||||
|
```bash |
||||
|
kitchen test |
||||
|
``` |
||||
|
|
||||
|
## Bugs and Issues |
||||
|
|
||||
|
Please use GitHub issues to report bugs, features, or other problems. |
||||
|
|
||||
|
## Related projects |
||||
|
|
||||
|
A huge thank you to these related projects from which we've taken inspiration and often used as a source for workarounds in complex world of base box building. |
||||
|
|
||||
|
- <https://github.com/boxcutter> |
||||
|
- <https://github.com/lavabit/robox> |
||||
|
- <https://github.com/mcandre/packer-templates> |
||||
|
- <https://github.com/timsutton/osx-vm-templates> |
||||
|
- <https://github.com/ferventcoder/vagrant-windows-puppet/tree/master/baseboxes> |
||||
|
|
||||
|
## License & Authors |
||||
|
|
||||
|
These basebox templates were converted from [veewee](https://github.com/jedi4ever/veewee) definitions originally based on [work done by Tim Dysinger](https://github.com/dysinger) to make "Don't Repeat Yourself" (DRY) modular baseboxes. Thanks Tim! |
||||
|
|
||||
|
- Author: Chris McClimans ([chris@hippiehacker.org](mailto:chris@hippiehacker.org)) |
||||
|
- Author: Fletcher Nichol ([fnichol@nichol.ca](mailto:fnichol@nichol.ca)) |
||||
|
- Author: Joshua Timberman ([joshua@chef.io](mailto:joshua@chef.io)) |
||||
|
- Author: Julian Dunn ([jdunn@chef.io](mailto:jdunn@chef.io)) |
||||
|
- Author: Ross Timson ([ross@rosstimson.com](mailto:ross@rosstimson.com)) |
||||
|
- Author: Seth Chisamore ([schisamo@chef.io](mailto:schisamo@chef.io)) |
||||
|
- Author: Stephen Delano ([stephen@chef.io](mailto:stephen@chef.io)) |
||||
|
- Author: Tim Dysinger ([tim@dysinger.net](mailto:tim@dysinger.net)) |
||||
|
- Author: Tim Smith ([tsmith@chef.io](mailto:tsmith@chef.io)) |
||||
|
- Author: Tom Duffield ([tom@chef.io](mailto:tom@chef.io)) |
||||
|
- Author: Corey Hemminger ([corey.hemminger@progress.com](mailto:corey.hemminger@progress.com)) |
||||
|
|
||||
|
```text |
||||
|
Copyright 2012-2023, Progress Software, Inc. (<legal@chef.io>) |
||||
|
Copyright 2011-2012, Tim Dysinger (<tim@dysinger.net>) |
||||
|
|
||||
|
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. |
||||
|
``` |
||||
|
@ -0,0 +1 @@ |
|||||
|
Please refer to <https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD> |
@ -0,0 +1,5 @@ |
|||||
|
|
||||
|
#git clone https://github.com/chef/bento.git |
||||
|
#cd ./bento |
||||
|
packer init -upgrade ./packer_templates |
||||
|
packer build -only=virtualbox-iso.vm -var-file=os_pkrvars/ubuntu/ubuntu-22.04-x86_64.pkrvars.hcl ./packer_templates |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "almalinux" |
||||
|
os_version = "8.7" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://repo.almalinux.org/almalinux/8/isos/aarch64/AlmaLinux-8.7-update-1-aarch64-minimal.iso" |
||||
|
iso_checksum = "file:https://repo.almalinux.org/almalinux/8/isos/aarch64/CHECKSUM" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up>e<wait><down><down><end><wait> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/8ks.cfg <leftCtrlOn>x<leftCtrlOff>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "almalinux" |
||||
|
os_version = "8.7" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://repo.almalinux.org/almalinux/8/isos/x86_64/AlmaLinux-8.7-update-1-x86_64-minimal.iso" |
||||
|
iso_checksum = "file:https://repo.almalinux.org/almalinux/8/isos/x86_64/CHECKSUM" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/8ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "almalinux" |
||||
|
os_version = "9.1" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://repo.almalinux.org/almalinux/9/isos/aarch64/AlmaLinux-9.1-aarch64-dvd.iso" |
||||
|
iso_checksum = "file:https://repo.almalinux.org/almalinux/9/isos/aarch64/CHECKSUM" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up>e<wait><down><down><end><wait> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg <leftCtrlOn>x<leftCtrlOff>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "almalinux" |
||||
|
os_version = "9.1" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://repo.almalinux.org/almalinux/9/isos/x86_64/AlmaLinux-9.1-x86_64-dvd.iso" |
||||
|
iso_checksum = "file:https://repo.almalinux.org/almalinux/9/isos/x86_64/CHECKSUM" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg<enter><wait>"] |
@ -0,0 +1,21 @@ |
|||||
|
os_name = "amazonlinux" |
||||
|
os_version = "2" |
||||
|
os_arch = "x86_64" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
sources_enabled = [ |
||||
|
"source.virtualbox-ovf.amazonlinux" |
||||
|
] |
||||
|
vboxmanage = [ |
||||
|
[ |
||||
|
"modifyvm", |
||||
|
"{{ .Name }}", |
||||
|
"--memory", |
||||
|
"2048", |
||||
|
"--cpus", |
||||
|
"2", |
||||
|
"--audio", |
||||
|
"none", |
||||
|
"--nat-localhostreachable1", |
||||
|
"on", |
||||
|
] |
||||
|
] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "centos" |
||||
|
os_version = "7.9" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://quantum-mirror.hu/mirrors/pub/centos-altarch/7.9.2009/isos/aarch64/CentOS-7-aarch64-Minimal-2009.iso" |
||||
|
iso_checksum = "1bef71329e51f9bed12349aa026b3fe0c4bb27db729399a3f9addae22848da9b" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up>e<wait><down><down><end><wait> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/7ks.cfg <leftCtrlOn>x<leftCtrlOff>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "centos" |
||||
|
os_version = "7.9" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "http://mirrors.kernel.org/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso" |
||||
|
iso_checksum = "07b94e6b1a0b0260b94c83d6bb76b26bf7a310dc78d7a9c7432809fb9bc6194a" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/7ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "centos-stream" |
||||
|
os_version = "8" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://mirrors.edge.kernel.org/centos/8-stream/isos/aarch64/CentOS-Stream-8-aarch64-latest-boot.iso" |
||||
|
iso_checksum = "file:https://mirrors.edge.kernel.org/centos/8-stream/isos/aarch64/CHECKSUM" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up>e<wait><down><down><end><wait> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/8ks.cfg <leftCtrlOn>x<leftCtrlOff>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "centos-stream" |
||||
|
os_version = "8" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "http://mirrors.kernel.org/centos/8-stream/isos/x86_64/CentOS-Stream-8-x86_64-latest-dvd1.iso" |
||||
|
iso_checksum = "file:https://mirrors.edge.kernel.org/centos/8-stream/isos/x86_64/CHECKSUM" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/8ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "centos-stream" |
||||
|
os_version = "9" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://mirror.stream.centos.org/9-stream/BaseOS/aarch64/iso/CentOS-Stream-9-latest-aarch64-dvd1.iso" |
||||
|
iso_checksum = "file:https://mirror.stream.centos.org/9-stream/BaseOS/aarch64/iso/CentOS-Stream-9-latest-aarch64-dvd1.iso.SHA256SUM" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up>e<wait><down><down><end><wait> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg <leftCtrlOn>x<leftCtrlOff>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "centos-stream" |
||||
|
os_version = "9" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-latest-x86_64-dvd1.iso" |
||||
|
iso_checksum = "file:https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-latest-x86_64-dvd1.iso.SHA256SUM" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "debian" |
||||
|
os_version = "10.13" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://cdimage.debian.org/cdimage/archive/10.13.0/arm64/iso-dvd/debian-10.13.0-arm64-DVD-1.iso" |
||||
|
iso_checksum = "5c6f6df5febf691e95c08b630db3b1c13b9c5b3d19ea4b1515207f09385e186d" |
||||
|
parallels_guest_os_type = "debian" |
||||
|
vbox_guest_os_type = "Debian_64" |
||||
|
vmware_guest_os_type = "debian-64" |
||||
|
boot_command = ["<wait><up>e<wait><down><down><down><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><wait>install <wait> preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian/preseed.cfg <wait>debian-installer=en_US.UTF-8 <wait>auto <wait>locale=en_US.UTF-8 <wait>kbd-chooser/method=us <wait>keyboard-configuration/xkb-keymap=us <wait>netcfg/get_hostname={{ .Name }} <wait>netcfg/get_domain=vagrantup.com <wait>fb=false <wait>debconf/frontend=noninteractive <wait>console-setup/ask_detect=false <wait>console-keymaps-at/keymap=us <wait>grub-installer/bootdev=/dev/sda <wait><f10><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "debian" |
||||
|
os_version = "10.13" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://cdimage.debian.org/cdimage/archive/10.13.0/amd64/iso-dvd/debian-10.13.0-amd64-DVD-1.iso" |
||||
|
iso_checksum = "07d493c305aa5313e767181af5ef2c2b2758a4a3f57e78fb4a4fcba1dcefb198" |
||||
|
parallels_guest_os_type = "debian" |
||||
|
vbox_guest_os_type = "Debian_64" |
||||
|
vmware_guest_os_type = "debian-64" |
||||
|
boot_command = ["<wait><esc><wait>auto preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian/preseed.cfg netcfg/get_hostname={{ .Name }}<enter>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "debian" |
||||
|
os_version = "11.6" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://cdimage.debian.org/debian-cd/current/arm64/iso-dvd/debian-11.6.0-arm64-DVD-1.iso" |
||||
|
iso_checksum = "b27ff768c10808518790d72d670c5588cdc60cf8934ef92773a89274a193a65f" |
||||
|
parallels_guest_os_type = "debian" |
||||
|
vbox_guest_os_type = "Debian_64" |
||||
|
vmware_guest_os_type = "debian-64" |
||||
|
boot_command = ["<wait><up>e<wait><down><down><down><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><right><wait>install <wait> preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian/preseed.cfg <wait>debian-installer=en_US.UTF-8 <wait>auto <wait>locale=en_US.UTF-8 <wait>kbd-chooser/method=us <wait>keyboard-configuration/xkb-keymap=us <wait>netcfg/get_hostname={{ .Name }} <wait>netcfg/get_domain=vagrantup.com <wait>fb=false <wait>debconf/frontend=noninteractive <wait>console-setup/ask_detect=false <wait>console-keymaps-at/keymap=us <wait>grub-installer/bootdev=/dev/sda <wait><f10><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "debian" |
||||
|
os_version = "11.6" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/debian-11.6.0-amd64-DVD-1.iso" |
||||
|
iso_checksum = "55f6f49b32d3797621297a9481a6cc3e21b3142f57d8e1279412ff5a267868d8" |
||||
|
parallels_guest_os_type = "debian" |
||||
|
vbox_guest_os_type = "Debian_64" |
||||
|
vmware_guest_os_type = "debian-64" |
||||
|
boot_command = ["<wait><esc><wait>auto preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian/preseed.cfg netcfg/get_hostname={{ .Name }}<enter>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "fedora" |
||||
|
os_version = "36" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://na.edge.kernel.org/fedora/releases/36/Server/aarch64/iso/Fedora-Server-dvd-aarch64-36-1.5.iso" |
||||
|
iso_checksum = "sha256:0ab4000575ff8b258576750ecf4ca39b266f0c88cab5fe3d8d2f88c9bea4830d" |
||||
|
parallels_guest_os_type = "fedora-core" |
||||
|
vbox_guest_os_type = "Fedora_64" |
||||
|
vmware_guest_os_type = "fedora-64" |
||||
|
boot_command = ["<wait><up><wait>e<down><down><end> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/fedora/ks.cfg<enter><wait><f10>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "fedora" |
||||
|
os_version = "36" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://ftp-nyc.osuosl.org/pub/fedora/linux/releases/36/Server/x86_64/iso/Fedora-Server-dvd-x86_64-36-1.5.iso" |
||||
|
iso_checksum = "sha256:5edaf708a52687b09f9810c2b6d2a3432edac1b18f4d8c908c0da6bde0379148" |
||||
|
parallels_guest_os_type = "fedora-core" |
||||
|
vbox_guest_os_type = "Fedora_64" |
||||
|
vmware_guest_os_type = "fedora-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/fedora/ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "fedora" |
||||
|
os_version = "37" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/37/Server/aarch64/iso/Fedora-Server-dvd-aarch64-37-1.7.iso" |
||||
|
iso_checksum = "sha256:1c2deba876bd2da3a429b1b0cd5e294508b8379b299913d97dd6dd6ebcd8b56f" |
||||
|
parallels_guest_os_type = "fedora-core" |
||||
|
vbox_guest_os_type = "Fedora_64" |
||||
|
vmware_guest_os_type = "fedora-64" |
||||
|
boot_command = ["<wait><up><up>e<wait><down><down><end> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/fedora/ks.cfg<F10><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "fedora" |
||||
|
os_version = "37" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/37/Server/x86_64/iso/Fedora-Server-dvd-x86_64-37-1.7.iso" |
||||
|
iso_checksum = "sha256:0a4de5157af47b41a07a53726cd62ffabd04d5c1a4afece5ee7c7a84c1213e4f" |
||||
|
parallels_guest_os_type = "fedora-core" |
||||
|
vbox_guest_os_type = "Fedora_64" |
||||
|
vmware_guest_os_type = "fedora-64" |
||||
|
boot_command = ["<wait><up>e<wait><down><down><end> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/fedora/ks.cfg<F10><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "freebsd" |
||||
|
os_version = "12.4" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://download.freebsd.org/releases/amd64/amd64/ISO-IMAGES/12.4/FreeBSD-12.4-RELEASE-amd64-disc1.iso" |
||||
|
iso_checksum = "606435637b76991f96df68f561badf03266f3d5452e9f72ed9b130d96b188800" |
||||
|
parallels_guest_os_type = "freebsd" |
||||
|
vbox_guest_os_type = "FreeBSD_64" |
||||
|
vmware_guest_os_type = "freedsd-64" |
||||
|
boot_command = ["<wait><esc><wait>boot -s<wait><enter><wait><wait10><wait10>/bin/sh<enter><wait>mdmfs -s 100m md1 /tmp<enter><wait>mdmfs -s 100m md2 /mnt<enter><wait>dhclient -p /tmp/dhclient.em0.pid -l /tmp/dhclient.lease.em0 em0<enter><wait>fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/freebsd/installerconfig \u0026\u0026 bsdinstall script /tmp/installerconfig<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "freebsd" |
||||
|
os_version = "13.1" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://download.freebsd.org/releases/amd64/amd64/ISO-IMAGES/13.1/FreeBSD-13.1-RELEASE-amd64-disc1.iso" |
||||
|
iso_checksum = "697d81653fa246b921ddfcf1d15562c55249cc727b11fa3e47f470e2cf2b6a40" |
||||
|
parallels_guest_os_type = "freebsd" |
||||
|
vbox_guest_os_type = "FreeBSD_64" |
||||
|
vmware_guest_os_type = "freedsd-64" |
||||
|
boot_command = ["<wait><esc><wait>boot -s<wait><enter><wait><wait10><wait10>/bin/sh<enter><wait>mdmfs -s 100m md1 /tmp<enter><wait>mdmfs -s 100m md2 /mnt<enter><wait>dhclient -p /tmp/dhclient.em0.pid -l /tmp/dhclient.lease.em0 em0<enter><wait><wait5>fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/freebsd/installerconfig && bsdinstall script /tmp/installerconfig<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "opensuse" |
||||
|
os_version = "15.4" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "http://sfo-korg-mirror.kernel.org/opensuse/distribution/leap/15.4/iso/openSUSE-Leap-15.4-DVD-x86_64-Media.iso" |
||||
|
iso_checksum = "4683345f242397c7fd7d89a50731a120ffd60a24460e21d2634e783b3c169695" |
||||
|
parallels_guest_os_type = "opensuse" |
||||
|
vbox_guest_os_type = "OpenSUSE_64" |
||||
|
vmware_guest_os_type = "opensuse-64" |
||||
|
boot_command = ["<wait5><esc><enter><wait>linux biosdevname=0 net.ifnames=0 netdevice=eth0 netsetup=dhcp lang=en_US textmode=1 autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/opensuse/autoinst.xml<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "oraclelinux" |
||||
|
os_version = "7.9" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://yum.oracle.com/ISOS/OracleLinux/OL7/u9/aarch64/OracleLinux-R7-U9-Server-aarch64-dvd.iso" |
||||
|
iso_checksum = "fd2c1b1e26858576534f6e6c4cf000a15cd81bec010dad5e827b204a14a1750e" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up>e<wait><down><down><end><wait> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/7ks.cfg <leftCtrlOn>x<leftCtrlOff>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "oraclelinux" |
||||
|
os_version = "7.9" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "http://mirrors.dotsrc.org/oracle-linux/OL7/u9/x86_64/OracleLinux-R7-U9-Server-x86_64-dvd.iso" |
||||
|
iso_checksum = "dc2782bfd92b4c060cf8006fbc6e18036c27f599eebf3584a1a2ac54f008bf2f" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/7ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "oraclelinux" |
||||
|
os_version = "8.7" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://yum.oracle.com/ISOS/OracleLinux/OL8/u7/aarch64/OracleLinux-R8-U7-aarch64-dvd.iso" |
||||
|
iso_checksum = "420000aa561e833d8dc9576815d068fb5b15fd9fb826a0d9c127782004683741" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up>e<wait><down><down><end><wait> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/8ks.cfg <leftCtrlOn>x<leftCtrlOff>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "oraclelinux" |
||||
|
os_version = "8.7" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://yum.oracle.com/ISOS/OracleLinux/OL8/u7/x86_64/OracleLinux-R8-U7-x86_64-dvd.iso" |
||||
|
iso_checksum = "dd6ede6c0597189b7dffb800b32835002bd95f19c254734aeb58f58651aa03fb" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/8ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "oraclelinux" |
||||
|
os_version = "9.1" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://yum.oracle.com/ISOS/OracleLinux/OL9/u1/aarch64/OracleLinux-R9-U1-aarch64-dvd.iso" |
||||
|
iso_checksum = "3dc4578f53ceb1010f8236b3356f2441ec3f9e840fa60522e470d7f3cdb86cb1" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up>e<wait><down><down><end><wait> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg <leftCtrlOn>x<leftCtrlOff>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "oraclelinux" |
||||
|
os_version = "9.1" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://yum.oracle.com/ISOS/OracleLinux/OL9/u1/x86_64/OracleLinux-R9-U1-x86_64-dvd.iso" |
||||
|
iso_checksum = "a46ac0b717881a2673c7dc981b3219f6dea747e3d6bd18908fcb8c1f42b82786" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "rhel" |
||||
|
os_version = "7.9" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux" |
||||
|
iso_checksum = "1b8004961150b60f6c5ec3f25139d3217eee55707cf9fa19e826919fc58e328b" |
||||
|
parallels_guest_os_type = "rhel" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/7ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "rhel" |
||||
|
os_version = "7.9" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux" |
||||
|
iso_checksum = "1b8004961150b60f6c5ec3f25139d3217eee55707cf9fa19e826919fc58e328b" |
||||
|
parallels_guest_os_type = "rhel" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/7ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "rhel" |
||||
|
os_version = "8.7" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux" |
||||
|
iso_checksum = "1b8004961150b60f6c5ec3f25139d3217eee55707cf9fa19e826919fc58e328b" |
||||
|
parallels_guest_os_type = "rhel" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/8ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "rhel" |
||||
|
os_version = "8.7" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux" |
||||
|
iso_checksum = "1b8004961150b60f6c5ec3f25139d3217eee55707cf9fa19e826919fc58e328b" |
||||
|
parallels_guest_os_type = "rhel" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/8ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "rhel" |
||||
|
os_version = "9.1" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux" |
||||
|
iso_checksum = "1b8004961150b60f6c5ec3f25139d3217eee55707cf9fa19e826919fc58e328b" |
||||
|
parallels_guest_os_type = "rhel" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "rhel" |
||||
|
os_version = "9.1" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux" |
||||
|
iso_checksum = "1b8004961150b60f6c5ec3f25139d3217eee55707cf9fa19e826919fc58e328b" |
||||
|
parallels_guest_os_type = "rhel" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "rockylinux" |
||||
|
os_version = "8.7" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://download.rockylinux.org/pub/rocky/8/isos/aarch64/Rocky-aarch64-minimal.iso" |
||||
|
iso_checksum = "file:https://download.rockylinux.org/pub/rocky/8/isos/aarch64/CHECKSUM" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up>e<wait><down><down><end><wait> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/8ks.cfg <leftCtrlOn>x<leftCtrlOff>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "rockylinux" |
||||
|
os_version = "8.7" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://download.rockylinux.org/pub/rocky/8/isos/x86_64/Rocky-x86_64-minimal.iso" |
||||
|
iso_checksum = "file:https://download.rockylinux.org/pub/rocky/8.7/isos/x86_64/CHECKSUM" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/8ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "rockylinux" |
||||
|
os_version = "9.1" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://download.rockylinux.org/pub/rocky/9/isos/aarch64/Rocky-aarch64-minimal.iso" |
||||
|
iso_checksum = "file:https://download.rockylinux.org/pub/rocky/9/isos/aarch64/CHECKSUM" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up>e<wait><down><down><end><wait> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg <leftCtrlOn>x<leftCtrlOff>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "rockylinux" |
||||
|
os_version = "9.1" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://download.rockylinux.org/pub/rocky/9.1/isos/x86_64/Rocky-9.1-x86_64-dvd.iso" |
||||
|
iso_checksum = "file:https://download.rockylinux.org/pub/rocky/9.1/isos/x86_64/CHECKSUM" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "scientificlinux" |
||||
|
os_version = "7.9" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "http://www.gtlib.gatech.edu/pub/scientific/7.9/x86_64/iso/SL-7-DVD-x86_64.iso" |
||||
|
iso_checksum = "7ac643e164c4a0da0b9f33411c68368cf908e0c34254904044957a3ca7793934" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/7ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "suse" |
||||
|
os_version = "12.5" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://updates.suse.com/SUSE/Products/SLE-SERVER/12-SP5/x86_64/iso/SLE-12-SP5-Server-DVD-x86_64-GM-DVD1.iso" |
||||
|
iso_checksum = "5a12561f8c2869bca4f820787971f3b92f44dce77442906115cd21c359327b9f" |
||||
|
parallels_guest_os_type = "suse" |
||||
|
vbox_guest_os_type = "SUSE_LE_64" |
||||
|
vmware_guest_os_type = "sles12-64" |
||||
|
boot_command = ["<wait><esc><enter><wait>linux netdevice=eth0 netsetup=dhcp install=cd:/<wait> lang=en_US autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/sles/12-autoinst.xml<wait> textmode=1<wait><enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "suse" |
||||
|
os_version = "15.4" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://updates.suse.com/SUSE/Products/SLE-Product-SLES/15-SP4/x86_64/iso/SLE-15-SP4-Online-x86_64-GM-Media1.iso" |
||||
|
iso_checksum = "c0ceebe14d23c6c9484a1594fc5159225292f0847f7f15046f45a83319536d0e" |
||||
|
parallels_guest_os_type = "suse" |
||||
|
vbox_guest_os_type = "SUSE_LE_64" |
||||
|
vmware_guest_os_type = "sles15-64" |
||||
|
boot_command = ["<wait><esc><enter><wait>linux netdevice=eth0 netsetup=dhcp install=cd:/<wait> lang=en_US autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/sles/15-autoinst.xml<wait> textmode=1<wait><enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "solaris" |
||||
|
os_version = "11.4" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "./packer_cache/sol-11_4-ai-x86.iso" |
||||
|
iso_checksum = "sha256:e3a29507e583acbc0b912f371c8f328fea7cb6257d587cbc0a651477a52b0a29" |
||||
|
parallels_guest_os_type = "solaris" |
||||
|
vbox_guest_os_type = "Solaris11_64" |
||||
|
vmware_guest_os_type = "solaris11-64" |
||||
|
boot_command = ["<wait>e<wait><down><down><down><down><down><wait><end><wait><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><wait>false<wait><f10><wait><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10>root<enter><wait><wait>solaris<enter><wait><wait><wait10>while (true); do sleep 5; test -f /a/etc/sudoers && grep -v \"vagrant\" \"/a/etc/sudoers\" 2> /dev/null<wait> && echo \"vagrant ALL=(ALL) NOPASSWD: ALL\" >> /a/etc/sudoers && break ; done &<enter><wait><enter>while (true); do grep \"You may wish to reboot\" \"/var/svc/log/application-auto-installer:default.log\" 2> /dev/null<wait> && reboot; sleep 10; done &<enter><wait>sleep 5; curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/solaris/default.xml -o default.xml;<wait>curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/solaris/profile.xml -o profile.xml;<wait>cp default.xml /system/volatile/ai.xml;<wait>mkdir /system/volatile/profile;<wait>cp profile.xml /system/volatile/profile/profile.xml;<wait>svcadm enable svc:/application/auto-installer:default;<wait><enter><wait10><wait><wait><enter><wait>tail -f /var/svc/log/application-auto-installer\\:default.log<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "springdalelinux" |
||||
|
os_version = "7.9" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "http://springdale.princeton.edu/data/springdale/7/x86_64/iso/Springdale%20Linux-7.9-x86_64-netinst.iso" |
||||
|
iso_checksum = "ad47807e17f796bdca35bb3ec5b65f1340d43b698ee04dcf60faecc8c6818c67" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/springdalelinux/7ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "springdalelinux" |
||||
|
os_version = "8.7" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "http://springdale.princeton.edu/data/springdale/8/x86_64/iso/Springdale%20Linux-8.7-x86_64-netinst.iso" |
||||
|
iso_checksum = "7535d3eadf5d60d12a026ccaf5f1235c660cc985bc1e8b7502a99fd0389407f8" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/springdalelinux/8ks.cfg<enter><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "springdalelinux" |
||||
|
os_version = "9.1" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "http://springdale.princeton.edu/data/springdale/9/x86_64/iso/Springdale%20Linux-9.1-x86_64-netinst.iso" |
||||
|
iso_checksum = "a282a61dfd9ac587aa635688ec3eae8ac95524094dac0355543c3c0f6df84253" |
||||
|
parallels_guest_os_type = "centos" |
||||
|
vbox_guest_os_type = "RedHat_64" |
||||
|
vmware_guest_os_type = "centos-64" |
||||
|
boot_command = ["<wait><up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/springdalelinux/9ks.cfg<enter><wait>"] |
@ -0,0 +1,10 @@ |
|||||
|
os_name = "ubuntu" |
||||
|
os_version = "18.04" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://cdimage.ubuntu.com/releases/18.04.6/release/ubuntu-18.04.6-server-arm64.iso" |
||||
|
iso_checksum = "0a20ef21181a36588f8fb670cc63e8d326fa6e715b526543d300a68de389055f" |
||||
|
hyperv_generation = 2 |
||||
|
parallels_guest_os_type = "ubuntu" |
||||
|
vbox_guest_os_type = "Ubuntu_64" |
||||
|
vmware_guest_os_type = "ubuntu-64" |
||||
|
boot_command = ["<wait>e<wait><down><down><down><end><wait>", "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", "<bs><wait>auto console-setup/ask_detect=false", " console-setup/layoutcode=us", " console-setup/modelcode=pc105", " debconf/frontend=noninteractive", " debian-installer=en_US.UTF-8", " fb=false", " initrd=/install/initrd.gz", " kbd-chooser/method=us", " keyboard-configuration/layout=USA", " keyboard-configuration/variant=USA", " locale=en_US.UTF-8", " netcfg/get_hostname=vagrant", " grub-installer/bootdev=/dev/sda", " noapic", " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu/preseed.cfg", " ---", "<f10><wait>"] |
@ -0,0 +1,10 @@ |
|||||
|
os_name = "ubuntu" |
||||
|
os_version = "18.04" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "http://cdimage.ubuntu.com/ubuntu/releases/18.04.6/release/ubuntu-18.04.6-server-amd64.iso" |
||||
|
iso_checksum = "f5cbb8104348f0097a8e513b10173a07dbc6684595e331cb06f93f385d0aecf6" |
||||
|
hyperv_generation = 2 |
||||
|
parallels_guest_os_type = "ubuntu" |
||||
|
vbox_guest_os_type = "Ubuntu_64" |
||||
|
vmware_guest_os_type = "ubuntu-64" |
||||
|
boot_command = ["<wait5><esc>", "<wait5><esc>", "<wait5><enter><wait5>", "/install/vmlinuz auto console-setup/ask_detect=false", " console-setup/layoutcode=us", " console-setup/modelcode=pc105", " debconf/frontend=noninteractive", " debian-installer=en_US.UTF-8", " fb=false", " initrd=/install/initrd.gz", " kbd-chooser/method=us", " keyboard-configuration/layout=USA", " keyboard-configuration/variant=USA", " locale=en_US.UTF-8", " netcfg/get_hostname=vagrant", " grub-installer/bootdev=/dev/sda", " noapic", " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu/preseed.cfg", " ---", "<enter><wait>"] |
@ -0,0 +1,10 @@ |
|||||
|
os_name = "ubuntu" |
||||
|
os_version = "20.04" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "http://cdimage.ubuntu.com/releases/20.04/release/ubuntu-20.04.5-live-server-arm64.iso" |
||||
|
iso_checksum = "sha256:e42d6373dd39173094af5c26cbf2497770426f42049f8b9ea3e60ce35bebdedf" |
||||
|
hyperv_generation = 2 |
||||
|
parallels_guest_os_type = "ubuntu" |
||||
|
vbox_guest_os_type = "Ubuntu_64" |
||||
|
vmware_guest_os_type = "ubuntu-64" |
||||
|
boot_command = ["<wait><esc>linux /casper/vmlinuz quiet autoinstall ds='nocloud-net;s=http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu/'<enter>initrd /casper/initrd<enter>boot<enter>"] |
@ -0,0 +1,11 @@ |
|||||
|
os_name = "ubuntu" |
||||
|
os_version = "20.04" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://releases.ubuntu.com/focal/ubuntu-20.04.5-live-server-amd64.iso" |
||||
|
iso_checksum = "sha256:5035be37a7e9abbdc09f0d257f3e33416c1a0fb322ba860d42d74aa75c3468d4" |
||||
|
hyperv_generation = 2 |
||||
|
parallels_guest_os_type = "ubuntu" |
||||
|
vbox_guest_os_type = "Ubuntu_64" |
||||
|
vmware_guest_os_type = "ubuntu-64" |
||||
|
boot_wait = "2s" |
||||
|
boot_command = ["<wait><esc><esc><esc><enter>/casper/vmlinuz initrd=/casper/initrd quiet autoinstall ds=nocloud-net;s=http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu/<enter>"] |
@ -0,0 +1,10 @@ |
|||||
|
os_name = "ubuntu" |
||||
|
os_version = "22.04" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://cdimage.ubuntu.com/releases/22.04/release/ubuntu-22.04.2-live-server-arm64.iso" |
||||
|
iso_checksum = "file:https://cdimage.ubuntu.com/releases/22.04/release/SHA256SUMS" |
||||
|
hyperv_generation = 2 |
||||
|
parallels_guest_os_type = "ubuntu" |
||||
|
vbox_guest_os_type = "Ubuntu_64" |
||||
|
vmware_guest_os_type = "ubuntu-64" |
||||
|
boot_command = ["<wait>e<wait><down><down><down><end><wait> autoinstall ds=nocloud-net\\;s=http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu/<f10><wait>"] |
@ -0,0 +1,10 @@ |
|||||
|
os_name = "ubuntu" |
||||
|
os_version = "22.04" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "https://releases.ubuntu.com/jammy/ubuntu-22.04.2-live-server-amd64.iso" |
||||
|
iso_checksum = "file:https://releases.ubuntu.com/jammy/SHA256SUMS" |
||||
|
hyperv_generation = 2 |
||||
|
parallels_guest_os_type = "ubuntu" |
||||
|
vbox_guest_os_type = "Ubuntu_64" |
||||
|
vmware_guest_os_type = "ubuntu-64" |
||||
|
boot_command = ["<wait>c<wait>set gfxpayload=keep<enter><wait>linux /casper/vmlinuz quiet autoinstall ds=nocloud-net\\;s=http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu/ ---<enter><wait>initrd /casper/initrd<wait><enter><wait>boot<enter><wait>"] |
@ -0,0 +1,10 @@ |
|||||
|
os_name = "ubuntu" |
||||
|
os_version = "22.10" |
||||
|
os_arch = "aarch64" |
||||
|
iso_url = "https://cdimage.ubuntu.com/releases/22.10/release/ubuntu-22.10-live-server-arm64.iso" |
||||
|
iso_checksum = "a19d956e993a16fc6496c371e36dcc0eb85d2bdf6a8e86028b92ce62e9f585cd" |
||||
|
hyperv_generation = 2 |
||||
|
parallels_guest_os_type = "ubuntu" |
||||
|
vbox_guest_os_type = "Ubuntu_64" |
||||
|
vmware_guest_os_type = "ubuntu-64" |
||||
|
boot_command = ["<wait>e<wait><down><down><down><end> autoinstall ds=nocloud-net\\;s=http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu/<wait><f10><wait>"] |
@ -0,0 +1,10 @@ |
|||||
|
os_name = "ubuntu" |
||||
|
os_version = "22.10" |
||||
|
os_arch = "x86_64" |
||||
|
iso_url = "http://releases.ubuntu.com/kinetic/ubuntu-22.10-live-server-amd64.iso" |
||||
|
iso_checksum = "874452797430a94ca240c95d8503035aa145bd03ef7d84f9b23b78f3c5099aed" |
||||
|
hyperv_generation = 2 |
||||
|
parallels_guest_os_type = "ubuntu" |
||||
|
vbox_guest_os_type = "Ubuntu_64" |
||||
|
vmware_guest_os_type = "ubuntu-64" |
||||
|
boot_command = ["<wait>e<wait><down><down><down><end> autoinstall ds=nocloud-net\\;s=http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu/<wait><f10><wait>"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "windows" |
||||
|
os_version = "10" |
||||
|
os_arch = "x86_64" |
||||
|
is_windows = true |
||||
|
iso_url = "https://software-static.download.prss.microsoft.com/dbazure/988969d5-f34g-4e03-ac9d-1f9786c66750/19045.2006.220908-0225.22h2_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso" |
||||
|
iso_checksum = "ef7312733a9f5d7d51cfa04ac497671995674ca5e1058d5164d6028f0938d668" |
||||
|
parallels_guest_os_type = "win-10" |
||||
|
vbox_guest_os_type = "Windows10_64" |
||||
|
vmware_guest_os_type = "windows9srv-64" |
@ -0,0 +1,12 @@ |
|||||
|
os_name = "windows" |
||||
|
os_version = "10gen2" |
||||
|
os_arch = "x86_64" |
||||
|
is_windows = true |
||||
|
iso_url = "https://software-static.download.prss.microsoft.com/dbazure/988969d5-f34g-4e03-ac9d-1f9786c66750/19045.2006.220908-0225.22h2_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso" |
||||
|
iso_checksum = "ef7312733a9f5d7d51cfa04ac497671995674ca5e1058d5164d6028f0938d668" |
||||
|
parallels_guest_os_type = "win-10" |
||||
|
vbox_guest_os_type = "Windows10_64" |
||||
|
vmware_guest_os_type = "windows9srv-64" |
||||
|
boot_command = ["<wait>aaaaaaa<wait><enter><wait><enter><wait><enter>"] |
||||
|
hyperv_generation = 2 |
||||
|
sources_enabled = ["source.hyperv-iso.vm", "source.qemu.vm"] |
@ -0,0 +1,11 @@ |
|||||
|
os_name = "windows" |
||||
|
os_version = "11" |
||||
|
os_arch = "x86_64" |
||||
|
is_windows = true |
||||
|
# Windows 11 source requires a prompt to select OS to install. This allows the system time to add reg keys to ignore TPM Check before the install begins. |
||||
|
iso_url = "https://software-download.microsoft.com/download/sg/22000.194.210913-1444.co_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso" |
||||
|
iso_checksum = "sha256:e8b1d2a1a85a09b4bf6154084a8be8e3c814894a15a7bcf3e8e63fcfa9a528cb" |
||||
|
parallels_guest_os_type = "win-11" |
||||
|
vbox_guest_os_type = "Windows11_64" |
||||
|
vmware_guest_os_type = "windows9srv-64" |
||||
|
boot_command = ["<wait><leftShiftOn><f10><leftShiftOff><wait>reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassTPMCheck /d 1<return>reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassSecureBootCheck /d 1<return><wait>exit<return><wait><return>"] |
@ -0,0 +1,13 @@ |
|||||
|
os_name = "windows" |
||||
|
os_version = "11gen2" |
||||
|
os_arch = "x86_64" |
||||
|
is_windows = true |
||||
|
# Windows 11 source requires a prompt to select OS to install. This allows the system time to add reg keys to ignore TPM Check before the install begins. |
||||
|
iso_url = "https://software-download.microsoft.com/download/sg/22000.194.210913-1444.co_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso" |
||||
|
iso_checksum = "sha256:e8b1d2a1a85a09b4bf6154084a8be8e3c814894a15a7bcf3e8e63fcfa9a528cb" |
||||
|
parallels_guest_os_type = "win-11" |
||||
|
vbox_guest_os_type = "Windows11_64" |
||||
|
vmware_guest_os_type = "windows9srv-64" |
||||
|
hyperv_generation = 2 |
||||
|
boot_command = ["<wait>aaaaaaa<wait><enter><wait><enter><wait><enter>"] |
||||
|
sources_enabled = ["source.hyperv-iso.vm", "source.qemu.vm"] |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "windows" |
||||
|
os_version = "2012r2" |
||||
|
os_arch = "x86_64" |
||||
|
is_windows = true |
||||
|
iso_url = "https://download.microsoft.com/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO" |
||||
|
iso_checksum = "6612b5b1f53e845aacdf96e974bb119a3d9b4dcb5b82e65804ab7e534dc7b4d5" |
||||
|
parallels_guest_os_type = "win-2012" |
||||
|
vbox_guest_os_type = "Windows2012_64" |
||||
|
vmware_guest_os_type = "windows9srv-64" |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "windows" |
||||
|
os_version = "2016" |
||||
|
os_arch = "x86_64" |
||||
|
is_windows = true |
||||
|
iso_url = "https://software-static.download.prss.microsoft.com/pr/download/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO" |
||||
|
iso_checksum = "1ce702a578a3cb1ac3d14873980838590f06d5b7101c5daaccbac9d73f1fb50f" |
||||
|
parallels_guest_os_type = "win-2016" |
||||
|
vbox_guest_os_type = "Windows2016_64" |
||||
|
vmware_guest_os_type = "windows9srv-64" |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "windows" |
||||
|
os_version = "2019" |
||||
|
os_arch = "x86_64" |
||||
|
is_windows = true |
||||
|
iso_url = "https://software-static.download.prss.microsoft.com/pr/download/17763.737.190906-2324.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us_1.iso" |
||||
|
iso_checksum = "549bca46c055157291be6c22a3aaaed8330e78ef4382c99ee82c896426a1cee1" |
||||
|
parallels_guest_os_type = "win-2019" |
||||
|
vbox_guest_os_type = "Windows2019_64" |
||||
|
vmware_guest_os_type = "windows9srv-64" |
@ -0,0 +1,9 @@ |
|||||
|
os_name = "windows" |
||||
|
os_version = "2022" |
||||
|
os_arch = "x86_64" |
||||
|
is_windows = true |
||||
|
iso_url = "https://software-static.download.prss.microsoft.com/sg/download/888969d5-f34g-4e03-ac9d-1f9786c66749/SERVER_EVAL_x64FRE_en-us.iso" |
||||
|
iso_checksum = "sha256:3e4fa6d8507b554856fc9ca6079cc402df11a8b79344871669f0251535255325" |
||||
|
parallels_guest_os_type = "win-2022" |
||||
|
vbox_guest_os_type = "Windows2022_64" |
||||
|
vmware_guest_os_type = "windows9srv-64" |
@ -0,0 +1 @@ |
|||||
|
# Used by Amazon Linux script to convert vdi to packer/vagrant ready ovf |
@ -0,0 +1 @@ |
|||||
|
local-hostname: vagrant |
@ -0,0 +1,29 @@ |
|||||
|
#cloud-config |
||||
|
#vim:syntax=yaml |
||||
|
user: vagrant |
||||
|
password: vagrant |
||||
|
|
||||
|
# install packages for vbox guest additions to complete |
||||
|
packages: |
||||
|
- gcc |
||||
|
- kernel-devel |
||||
|
- kernel-headers |
||||
|
- dkms |
||||
|
- make |
||||
|
- bzip2 |
||||
|
- perl |
||||
|
|
||||
|
# make sure we don't setup the network on every boot |
||||
|
write_files: |
||||
|
- path: /etc/cloud/cloud.cfg.d/80_disable_network_after_firstboot.cfg |
||||
|
content: | |
||||
|
# Disable network configuration after first boot |
||||
|
network: |
||||
|
config: disabled |
||||
|
|
||||
|
- path: /etc/cloud/cloud.cfg.d/90_enable_ssh_pwauth.cfg |
||||
|
content: | |
||||
|
runcmd: |
||||
|
- sed -i "s/^PasswordAuthentication.*/PasswordAuthentication yes/" /etc/ssh/sshd_config |
||||
|
- sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0 |
||||
|
- systemctl restart network sshd |
@ -0,0 +1 @@ |
|||||
|
# Used to store temp Amazon Linux files for packer build |
@ -0,0 +1,3 @@ |
|||||
|
source 'https://supermarket.chef.io' |
||||
|
|
||||
|
metadata |
@ -0,0 +1,115 @@ |
|||||
|
# Put files/directories that should be ignored in this file when uploading |
||||
|
# to a Chef Infra Server or Supermarket. |
||||
|
# Lines that start with '# ' are comments. |
||||
|
|
||||
|
# OS generated files # |
||||
|
###################### |
||||
|
.DS_Store |
||||
|
ehthumbs.db |
||||
|
Icon? |
||||
|
nohup.out |
||||
|
Thumbs.db |
||||
|
.envrc |
||||
|
|
||||
|
# EDITORS # |
||||
|
########### |
||||
|
.#* |
||||
|
.project |
||||
|
.settings |
||||
|
*_flymake |
||||
|
*_flymake.* |
||||
|
*.bak |
||||
|
*.sw[a-z] |
||||
|
*.tmproj |
||||
|
*~ |
||||
|
\#* |
||||
|
REVISION |
||||
|
TAGS* |
||||
|
tmtags |
||||
|
.vscode |
||||
|
.editorconfig |
||||
|
|
||||
|
## COMPILED ## |
||||
|
############## |
||||
|
*.class |
||||
|
*.com |
||||
|
*.dll |
||||
|
*.exe |
||||
|
*.o |
||||
|
*.pyc |
||||
|
*.so |
||||
|
*/rdoc/ |
||||
|
a.out |
||||
|
mkmf.log |
||||
|
|
||||
|
# Testing # |
||||
|
########### |
||||
|
.circleci/* |
||||
|
.codeclimate.yml |
||||
|
.delivery/* |
||||
|
.foodcritic |
||||
|
.kitchen* |
||||
|
.mdlrc |
||||
|
.overcommit.yml |
||||
|
.rspec |
||||
|
.rubocop.yml |
||||
|
.travis.yml |
||||
|
.watchr |
||||
|
.yamllint |
||||
|
azure-pipelines.yml |
||||
|
Dangerfile |
||||
|
examples/* |
||||
|
features/* |
||||
|
Guardfile |
||||
|
kitchen.yml* |
||||
|
mlc_config.json |
||||
|
Procfile |
||||
|
Rakefile |
||||
|
spec/* |
||||
|
test/* |
||||
|
|
||||
|
# SCM # |
||||
|
####### |
||||
|
.git |
||||
|
.gitattributes |
||||
|
.gitconfig |
||||
|
.github/* |
||||
|
.gitignore |
||||
|
.gitkeep |
||||
|
.gitmodules |
||||
|
.svn |
||||
|
*/.bzr/* |
||||
|
*/.git |
||||
|
*/.hg/* |
||||
|
*/.svn/* |
||||
|
|
||||
|
# Berkshelf # |
||||
|
############# |
||||
|
Berksfile |
||||
|
Berksfile.lock |
||||
|
cookbooks/* |
||||
|
tmp |
||||
|
|
||||
|
# Bundler # |
||||
|
########### |
||||
|
vendor/* |
||||
|
Gemfile |
||||
|
Gemfile.lock |
||||
|
|
||||
|
# Policyfile # |
||||
|
############## |
||||
|
Policyfile.rb |
||||
|
Policyfile.lock.json |
||||
|
|
||||
|
# Documentation # |
||||
|
############# |
||||
|
CODE_OF_CONDUCT* |
||||
|
CONTRIBUTING* |
||||
|
documentation/* |
||||
|
TESTING* |
||||
|
UPGRADING* |
||||
|
|
||||
|
# Vagrant # |
||||
|
########### |
||||
|
.vagrant |
||||
|
Vagrantfile |
@ -0,0 +1,41 @@ |
|||||
|
driver: |
||||
|
name: vagrant |
||||
|
customize: |
||||
|
cpus: 2 |
||||
|
memory: 4096 |
||||
|
|
||||
|
transport: |
||||
|
name: winrm |
||||
|
elevated: true |
||||
|
|
||||
|
provisioner: |
||||
|
name: chef_zero |
||||
|
deprecations_as_errors: true |
||||
|
|
||||
|
platforms: |
||||
|
- name: windows-2019 |
||||
|
driver_config: |
||||
|
box: tas50/windows_2019 |
||||
|
- name: windows-2016 |
||||
|
driver_config: |
||||
|
box: tas50/windows_2016 |
||||
|
- name: windows-2012r2 |
||||
|
driver_config: |
||||
|
box: tas50/windows_2012r2 |
||||
|
|
||||
|
suites: |
||||
|
- name: default |
||||
|
run_list: |
||||
|
- recipe[packer::disable_uac] |
||||
|
- recipe[packer::disable_restore] |
||||
|
- recipe[packer::disable_windows_update] |
||||
|
- recipe[packer::remove_defender] |
||||
|
- recipe[packer::configure_power] |
||||
|
- recipe[packer::disable_screensaver] |
||||
|
- recipe[packer::vm_tools] |
||||
|
- recipe[packer::features] |
||||
|
- recipe[packer::enable_file_sharing] |
||||
|
- recipe[packer::enable_remote_desktop] |
||||
|
- recipe[packer::ui_tweaks] |
||||
|
- recipe[packer::cleanup] |
||||
|
- recipe[packer::defrag] |
@ -0,0 +1,7 @@ |
|||||
|
name 'packer' |
||||
|
maintainer 'Tim Smith' |
||||
|
maintainer_email 'tsmith@chef.io' |
||||
|
license 'Apache-2.0' |
||||
|
description 'Resources run during packer builds' |
||||
|
version '1.0.0' |
||||
|
chef_version '>= 15.0' |
@ -0,0 +1,79 @@ |
|||||
|
# OneDrive takes up 150 megs and isn't needed for testing |
||||
|
windows_package 'Microsoft OneDrive' do |
||||
|
action :remove |
||||
|
end |
||||
|
|
||||
|
# Skype takes up 26 megs |
||||
|
windows_package 'Skype' do |
||||
|
action :remove |
||||
|
end |
||||
|
|
||||
|
if windows_workstation? && !node['platform_version'].to_i == 10 # cleanmgr isn't on servers |
||||
|
# registry key locations pulled from https://github.com/spjeff/spadmin/blob/master/Cleanmgr.ps1 |
||||
|
# thanks @spjeff! |
||||
|
registry_key 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Update Cleanup' do |
||||
|
values [{ |
||||
|
name: 'StateFlags0001', |
||||
|
type: :dword, |
||||
|
data: 2, |
||||
|
}] |
||||
|
end |
||||
|
|
||||
|
registry_key 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Files' do |
||||
|
values [{ |
||||
|
name: 'StateFlags0001', |
||||
|
type: :dword, |
||||
|
data: 2, |
||||
|
}] |
||||
|
end |
||||
|
|
||||
|
execute 'run cleanmgr' do |
||||
|
command 'C:\Windows\System32\cleanmgr.exe /sagerun:1' |
||||
|
ignore_failure true |
||||
|
live_stream true |
||||
|
end |
||||
|
end |
||||
|
|
||||
|
execute 'clean SxS' do |
||||
|
command 'Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase' |
||||
|
ignore_failure true |
||||
|
live_stream true |
||||
|
end |
||||
|
|
||||
|
powershell_script 'remove unnecesary directories' do |
||||
|
code <<-EOH |
||||
|
@( |
||||
|
"C:\\Recovery", |
||||
|
"$env:localappdata\\temp\\*", |
||||
|
"$env:windir\\logs", |
||||
|
"$env:windir\\temp", |
||||
|
"$env:windir\\winsxs\\manifestcache", |
||||
|
"C:\\Users\\vagrant\Favorites\\*" |
||||
|
) | % { |
||||
|
if(Test-Path $_) { |
||||
|
Write-Host "Removing $_" |
||||
|
try { |
||||
|
Takeown /d Y /R /f $_ |
||||
|
Icacls $_ /GRANT:r administrators:F /T /c /q 2>&1 | Out-Null |
||||
|
Remove-Item $_ -Recurse -Force | Out-Null |
||||
|
} catch { $global:error.RemoveAt(0) } |
||||
|
} |
||||
|
} |
||||
|
EOH |
||||
|
end |
||||
|
|
||||
|
# clean all of the event logs |
||||
|
%w(Application Security Setup System).each do |log| |
||||
|
execute "Cleaning the #{log} event log" do |
||||
|
command "wevtutil clear-log #{log}" |
||||
|
end |
||||
|
end |
||||
|
|
||||
|
# remove pagefile. it will get created on boot next time |
||||
|
registry_key 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management' do |
||||
|
values [{ |
||||
|
name: 'PagingFiles', |
||||
|
type: :string, |
||||
|
data: '', |
||||
|
}] |
||||
|
end |
@ -0,0 +1,16 @@ |
|||||
|
execute 'Set high performance power profile' do |
||||
|
command 'powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c' |
||||
|
end |
||||
|
|
||||
|
execute 'Turn off Hibernation' do |
||||
|
command 'powercfg.exe /hibernate off' |
||||
|
ignore_failure :quiet # if unsupported on the hardware it errors |
||||
|
end |
||||
|
|
||||
|
execute 'Turn off monitor timeout on AC power' do |
||||
|
command 'powercfg -Change -monitor-timeout-ac 0' |
||||
|
end |
||||
|
|
||||
|
execute 'Turn off monitor timeout on DC power' do |
||||
|
command 'powercfg -Change -monitor-timeout-dc 0' |
||||
|
end |
@ -0,0 +1,20 @@ |
|||||
|
remote_file ::File.join(Chef::Config[:file_cache_path], 'ultradefrag.zip') do |
||||
|
source 'http://downloads.sourceforge.net/ultradefrag/ultradefrag-portable-7.1.4.bin.amd64.zip' |
||||
|
action :create |
||||
|
end |
||||
|
|
||||
|
archive_file 'Decompress ultradefrag' do |
||||
|
path ::File.join(Chef::Config[:file_cache_path], 'ultradefrag.zip') |
||||
|
destination ::File.join(Chef::Config[:file_cache_path], 'temp_defrag') |
||||
|
action :extract |
||||
|
end |
||||
|
|
||||
|
execute 'Rename ultradefrag' do |
||||
|
command "move #{::File.join(Chef::Config[:file_cache_path])}\\temp_defrag\\ultradefrag-* #{::File.join(Chef::Config[:file_cache_path], 'ultradefrag')}" |
||||
|
not_if { ::File.exist?(::File.join(Chef::Config[:file_cache_path], 'ultradefrag')) } |
||||
|
end |
||||
|
|
||||
|
execute 'Run ultradefrag' do |
||||
|
command "#{::File.join(Chef::Config[:file_cache_path], 'ultradefrag', 'udefrag.exe')} --optimize --repeat %SystemDrive%" |
||||
|
action :run |
||||
|
end |
@ -0,0 +1,5 @@ |
|||||
|
# don't bother saving data for a system restore |
||||
|
registry_key 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore' do |
||||
|
values [{ name: 'DisableSR', type: :dword, data: 0 }] # disable |
||||
|
action :create |
||||
|
end |
@ -0,0 +1,5 @@ |
|||||
|
# Disable the screensaver |
||||
|
registry_key 'HKEY_CURRENT_USER\Control Panel\Desktop' do |
||||
|
values [{ name: 'ScreenSaveActive', type: :dword, data: 0 }] # disable |
||||
|
action :create |
||||
|
end |
@ -0,0 +1,5 @@ |
|||||
|
windows_uac 'Configure UAC' do |
||||
|
consent_behavior_admins :no_prompt |
||||
|
prompt_on_secure_desktop false |
||||
|
enable_uac false |
||||
|
end |
@ -0,0 +1,4 @@ |
|||||
|
# don't waste CPU / network bandwidth checking for updates |
||||
|
windows_update_settings 'disable windows update' do |
||||
|
disable_automatic_updates true |
||||
|
end |
@ -0,0 +1,3 @@ |
|||||
|
execute 'enable filesharing' do |
||||
|
command 'netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes' |
||||
|
end |
@ -0,0 +1,10 @@ |
|||||
|
registry_key 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server' do |
||||
|
values [{ |
||||
|
name: 'fDenyTSConnections', |
||||
|
type: :dword, |
||||
|
data: 0 }] |
||||
|
end |
||||
|
|
||||
|
execute 'Enable RDP firewall rule' do |
||||
|
command 'netsh advfirewall firewall set rule group="Remote Desktop" new enable=Yes' |
||||
|
end |
@ -0,0 +1,3 @@ |
|||||
|
windows_feature 'MicrosoftWindowsPowerShellISE' do |
||||
|
action :remove |
||||
|
end |
@ -0,0 +1,3 @@ |
|||||
|
windows_defender 'disable windows defender' do |
||||
|
action :disable |
||||
|
end |
@ -0,0 +1,7 @@ |
|||||
|
registry_key 'HKEY_LOCAL_MACHINE\software\Microsoft\Windows\CurrentVersion\Policies\system' do |
||||
|
values [{ |
||||
|
name: 'LocalAccountTokenFilterPolicy', |
||||
|
type: :dword, |
||||
|
data: 1, |
||||
|
}] |
||||
|
end |
Binary file not shown.
@ -0,0 +1,13 @@ |
|||||
|
if windows_nt_version == '10.0.17763' # 2019 |
||||
|
# This is basically a service pack and we should install it to fix a giant pile of bugs |
||||
|
msu_package '2020-04 monthly rollup' do |
||||
|
source 'http://download.windowsupdate.com/d/msdownload/update/software/updt/2020/04/windows10.0-kb4550969-x64_7d0a6efbe9e4d44253babdc161873513f88fc1e4.msu' |
||||
|
action :install |
||||
|
end |
||||
|
elsif windows_nt_version == '10.0.14393' # 2016 |
||||
|
# This is basically a service pack and we should install it to fix a giant pile of bugs |
||||
|
msu_package '2020-04 monthly rollup' do |
||||
|
source 'http://download.windowsupdate.com/d/msdownload/update/software/updt/2020/04/windows10.0-kb4550947-x64_f2ec932f8fb2be82d2f430b5dcd1ec4b92a7611c.msu' |
||||
|
action :install |
||||
|
end |
||||
|
end |
@ -0,0 +1,37 @@ |
|||||
|
# install virtualbox guest additions on vbox guests |
||||
|
if vbox? |
||||
|
directory 'C:/Windows/Temp/virtualbox' do |
||||
|
recursive true |
||||
|
end |
||||
|
|
||||
|
powershell_script 'install vbox guest additions' do |
||||
|
code <<-EOH |
||||
|
Get-ChildItem E:/cert/ -Filter vbox*.cer | ForEach-Object { |
||||
|
E:/cert/VBoxCertUtil.exe add-trusted-publisher $_.FullName --root $_.FullName |
||||
|
} |
||||
|
|
||||
|
Start-Process -FilePath "e:/VBoxWindowsAdditions.exe" -ArgumentList "/S" -WorkingDirectory "C:/Windows/Temp/virtualbox" -Wait |
||||
|
EOH |
||||
|
ignore_failure true |
||||
|
end |
||||
|
|
||||
|
directory 'C:/Windows/Temp/virtualbox' do |
||||
|
action :delete |
||||
|
end |
||||
|
end |
||||
|
|
||||
|
# install vmware tools on vmware guests |
||||
|
# This is from https://github.com/luciusbono/Packer-Windows10/blob/master/install-guest-tools.ps1 |
||||
|
if vmware? |
||||
|
powershell_script 'install vmware tools' do |
||||
|
code <<-'EOH' |
||||
|
$isopath = 'C:\Windows\Temp\vmware.iso' |
||||
|
Mount-DiskImage -ImagePath $isopath |
||||
|
$exe = ((Get-DiskImage -ImagePath $isopath | Get-Volume).Driveletter + ':\setup.exe') |
||||
|
$parameters = '/S /v "/qn REBOOT=R"' |
||||
|
Start-Process -FilePath $exe -ArgumentList $parameters -Wait |
||||
|
Dismount-DiskImage -ImagePath $isopath |
||||
|
Remove-Item $isopath |
||||
|
EOH |
||||
|
end |
||||
|
end |
@ -0,0 +1,104 @@ |
|||||
|
#_preseed_V1 |
||||
|
# Automatic installation |
||||
|
d-i auto-install/enable boolean true |
||||
|
|
||||
|
# Preseeding only locale sets language, country and locale. |
||||
|
d-i debian-installer/language string en |
||||
|
d-i debian-installer/country string US |
||||
|
d-i debian-installer/locale string en_US.UTF-8 |
||||
|
|
||||
|
d-i console-setup/ask_detect boolean false |
||||
|
d-i debconf/frontend select noninteractive |
||||
|
|
||||
|
# Keyboard selection. |
||||
|
d-i keyboard-configuration/xkb-keymap select us |
||||
|
d-i keymap select us |
||||
|
|
||||
|
choose-mirror-bin mirror/http/proxy string |
||||
|
d-i apt-setup/use_mirror boolean true |
||||
|
d-i base-installer/kernel/override-image string linux-server |
||||
|
|
||||
|
### Clock and time zone setup |
||||
|
d-i clock-setup/utc boolean true |
||||
|
d-i clock-setup/utc-auto boolean true |
||||
|
d-i time/zone string UTC |
||||
|
|
||||
|
# Avoid that last message about the install being complete. |
||||
|
d-i finish-install/reboot_in_progress note |
||||
|
|
||||
|
# This is fairly safe to set, it makes grub install automatically to the MBR |
||||
|
# if no other operating system is detected on the machine. |
||||
|
d-i grub-installer/only_debian boolean true |
||||
|
|
||||
|
# This one makes grub-installer install to the MBR if it also finds some other |
||||
|
# OS, which is less safe as it might not be able to boot that other OS. |
||||
|
d-i grub-installer/with_other_os boolean true |
||||
|
|
||||
|
# Set dev for grub boot |
||||
|
d-i grub-installer/bootdev string /dev/sda |
||||
|
|
||||
|
### Mirror settings |
||||
|
# If you select ftp, the mirror/country string does not need to be set. |
||||
|
d-i mirror/country string manual |
||||
|
d-i mirror/http/directory string /debian/ |
||||
|
d-i mirror/http/hostname string httpredir.debian.org |
||||
|
d-i mirror/http/proxy string |
||||
|
|
||||
|
# This makes partman automatically partition without confirmation. |
||||
|
d-i partman-efi/non_efi_system boolean true |
||||
|
d-i partman-auto-lvm/guided_size string max |
||||
|
d-i partman-auto/choose_recipe select atomic |
||||
|
d-i partman-auto/method string lvm |
||||
|
d-i partman-lvm/confirm boolean true |
||||
|
d-i partman-lvm/confirm_nooverwrite boolean true |
||||
|
d-i partman-lvm/device_remove_lvm boolean true |
||||
|
d-i partman/choose_partition select finish |
||||
|
d-i partman/confirm boolean true |
||||
|
d-i partman/confirm_nooverwrite boolean true |
||||
|
d-i partman/confirm_write_new_label boolean true |
||||
|
|
||||
|
### Account setup |
||||
|
d-i passwd/root-login boolean false |
||||
|
d-i passwd/user-fullname string vagrant |
||||
|
d-i passwd/user-uid string 1000 |
||||
|
d-i passwd/user-password password vagrant |
||||
|
d-i passwd/user-password-again password vagrant |
||||
|
d-i passwd/username string vagrant |
||||
|
|
||||
|
# The installer will warn about weak passwords. If you are sure you know |
||||
|
# what you're doing and want to override it, uncomment this. |
||||
|
d-i user-setup/allow-password-weak boolean true |
||||
|
d-i user-setup/encrypt-home boolean false |
||||
|
|
||||
|
### Package selection |
||||
|
tasksel tasksel/first multiselect standard, ssh-server |
||||
|
d-i pkgsel/include string openssh-server sudo bzip2 acpid cryptsetup zlib1g-dev wget curl dkms fuse make nfs-common net-tools cifs-utils rsync |
||||
|
d-i pkgsel/install-language-support boolean false |
||||
|
|
||||
|
# Prevent packaged version of VirtualBox Guest Additions being installed: |
||||
|
d-i preseed/early_command string sed -i \ |
||||
|
'/in-target/idiscover(){/sbin/discover|grep -v VirtualBox;}' \ |
||||
|
/usr/lib/pre-pkgsel.d/20install-hwpackages |
||||
|
|
||||
|
# Do not scan additional CDs |
||||
|
apt-cdrom-setup apt-setup/cdrom/set-first boolean false |
||||
|
|
||||
|
# Use network mirror |
||||
|
apt-mirror-setup apt-setup/use_mirror boolean true |
||||
|
|
||||
|
# disable automatic package updates |
||||
|
d-i pkgsel/update-policy select none |
||||
|
d-i pkgsel/upgrade select full-upgrade |
||||
|
|
||||
|
# Disable polularity contest |
||||
|
popularity-contest popularity-contest/participate boolean false |
||||
|
|
||||
|
# Select base install |
||||
|
tasksel tasksel/first multiselect standard, ssh-server |
||||
|
|
||||
|
# Setup passwordless sudo for packer user |
||||
|
d-i preseed/late_command string \ |
||||
|
echo "vagrant ALL=(ALL:ALL) NOPASSWD:ALL" > /target/etc/sudoers.d/vagrant && chmod 0440 /target/etc/sudoers.d/vagrant |
||||
|
|
||||
|
# remove cdrom from apt sources |
||||
|
d-i preseed/late_command string sed -i '/^deb cdrom:/s/^/#/' /target/etc/apt/sources.list |
@ -0,0 +1,47 @@ |
|||||
|
lang en_US.UTF-8 |
||||
|
keyboard --xlayouts='us' |
||||
|
network --bootproto=dhcp --noipv6 --onboot=on --device=eth0 |
||||
|
rootpw --plaintext vagrant |
||||
|
firewall --disabled |
||||
|
selinux --permissive |
||||
|
timezone UTC |
||||
|
bootloader --timeout=1 --location=mbr --append="net.ifnames=0 biosdevname=0" |
||||
|
text |
||||
|
skipx |
||||
|
zerombr |
||||
|
clearpart --all --initlabel |
||||
|
autopart --nohome --nolvm --noboot |
||||
|
firstboot --disabled |
||||
|
reboot --eject |
||||
|
user --name=vagrant --plaintext --password vagrant |
||||
|
|
||||
|
%packages --ignoremissing --excludedocs |
||||
|
bzip2 |
||||
|
tar |
||||
|
wget |
||||
|
nfs-utils |
||||
|
net-tools |
||||
|
rsync |
||||
|
dkms |
||||
|
-plymouth |
||||
|
-plymouth-core-libs |
||||
|
-fedora-release-notes |
||||
|
-mcelog |
||||
|
-smartmontools |
||||
|
-usbutils |
||||
|
-microcode_ctl |
||||
|
%end |
||||
|
|
||||
|
%post |
||||
|
# sudo |
||||
|
echo 'Defaults:vagrant !requiretty' > /etc/sudoers.d/vagrant |
||||
|
echo '%vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/vagrant |
||||
|
chmod 440 /etc/sudoers.d/vagrant |
||||
|
|
||||
|
# Enable hyper-v daemons only if using hyper-v virtualization |
||||
|
if [ $(virt-what) == "hyperv" ]; then |
||||
|
dnf -y install hyperv-daemons cifs-utils |
||||
|
systemctl enable hypervvssd |
||||
|
systemctl enable hypervkvpd |
||||
|
fi |
||||
|
%end |
@ -0,0 +1,55 @@ |
|||||
|
DISTRIBUTIONS="base.txz kernel.txz" |
||||
|
if [ `uname -m` = "amd64" ]; then |
||||
|
DISTRIBUTIONS="${DISTRIBUTIONS} lib32.txz" |
||||
|
fi |
||||
|
|
||||
|
# for variations in the root disk device name between VMware and Virtualbox |
||||
|
if [ -e /dev/ada0 ]; then |
||||
|
DISKSLICE=ada0 |
||||
|
elif [ -e /dev/da0 ]; then |
||||
|
DISKSLICE=da0 |
||||
|
elif [ -e /dev/vtbd0 ]; then |
||||
|
DISKSLICE=vtbd0 |
||||
|
else |
||||
|
echo "Unknown disk for install.sh to work with!" |
||||
|
exit -1 |
||||
|
fi |
||||
|
|
||||
|
# Workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203777 |
||||
|
export nonInteractive="YES" |
||||
|
|
||||
|
export ZFSBOOT_DISKS="$DISKSLICE" |
||||
|
export ZFSBOOT_CONFIRM_LAYOUT=0 |
||||
|
|
||||
|
HOSTNAME=freebsd |
||||
|
|
||||
|
#!/bin/sh -x |
||||
|
|
||||
|
ifdev=$(ifconfig | grep '^[a-z]' | cut -d: -f1 | head -n 1) |
||||
|
# Enable required services |
||||
|
cat >> /etc/rc.conf << EOT |
||||
|
ifconfig_${ifdev}="dhcp" |
||||
|
sshd_enable="YES" |
||||
|
EOT |
||||
|
|
||||
|
# Tune and boot from zfs |
||||
|
cat >> /boot/loader.conf << EOT |
||||
|
vm.kmem_size="200M" |
||||
|
vm.kmem_size_max="200M" |
||||
|
vfs.zfs.arc_max="40M" |
||||
|
vfs.zfs.vdev.cache.size="5M" |
||||
|
autoboot_delay=3 |
||||
|
EOT |
||||
|
|
||||
|
# zfs doesn't use an fstab, but some rc scripts expect one |
||||
|
touch /etc/fstab |
||||
|
|
||||
|
# Set up user accounts |
||||
|
echo "vagrant" | pw -V /etc useradd vagrant -h 0 -s /bin/sh -G wheel -d /usr/home/vagrant -c "Vagrant User" |
||||
|
echo "vagrant" | pw -V /etc usermod root |
||||
|
|
||||
|
mkdir -p /usr/home/vagrant |
||||
|
chown 1001:1001 /usr/home/vagrant |
||||
|
ln -s /usr/home /home |
||||
|
|
||||
|
reboot |
@ -0,0 +1,235 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE profile> |
||||
|
<!-- http://doc.opensuse.org/projects/autoyast/configuration.html --> |
||||
|
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> |
||||
|
<general> |
||||
|
<mode> |
||||
|
<confirm config:type="boolean">false</confirm> |
||||
|
<forceboot config:type="boolean">true</forceboot> |
||||
|
<final_reboot config:type="boolean">false</final_reboot> |
||||
|
</mode> |
||||
|
</general> |
||||
|
<report> |
||||
|
<messages> |
||||
|
<show config:type="boolean">false</show> |
||||
|
<timeout config:type="integer">10</timeout> |
||||
|
<log config:type="boolean">true</log> |
||||
|
</messages> |
||||
|
<warnings> |
||||
|
<show config:type="boolean">false</show> |
||||
|
<timeout config:type="integer">10</timeout> |
||||
|
<log config:type="boolean">true</log> |
||||
|
</warnings> |
||||
|
<errors> |
||||
|
<show config:type="boolean">false</show> |
||||
|
<timeout config:type="integer">10</timeout> |
||||
|
<log config:type="boolean">true</log> |
||||
|
</errors> |
||||
|
</report> |
||||
|
<keyboard> |
||||
|
<keymap>english-us</keymap> |
||||
|
</keyboard> |
||||
|
<language> |
||||
|
<language>en_US</language> |
||||
|
<languages>en_US</languages> |
||||
|
</language> |
||||
|
<timezone> |
||||
|
<hwclock>UTC</hwclock> |
||||
|
<timezone>Etc/UTC</timezone> |
||||
|
</timezone> |
||||
|
<partitioning config:type="list"> |
||||
|
<drive> |
||||
|
<enable_snapshots config:type="boolean">false</enable_snapshots> |
||||
|
<initialize config:type="boolean">true</initialize> |
||||
|
<partitions config:type="list"> |
||||
|
<partition> |
||||
|
<create config:type="boolean">true</create> |
||||
|
<crypt_fs config:type="boolean">false</crypt_fs> |
||||
|
<filesystem config:type="symbol">swap</filesystem> |
||||
|
<format config:type="boolean">true</format> |
||||
|
<fstopt>defaults</fstopt> |
||||
|
<loop_fs config:type="boolean">false</loop_fs> |
||||
|
<mount>swap</mount> |
||||
|
<mountby config:type="symbol">device</mountby> |
||||
|
<partition_id config:type="integer">130</partition_id> |
||||
|
<partition_nr config:type="integer">1</partition_nr> |
||||
|
<raid_options /> |
||||
|
<resize config:type="boolean">false</resize> |
||||
|
<size>512M</size> |
||||
|
</partition> |
||||
|
<partition> |
||||
|
<create config:type="boolean">true</create> |
||||
|
<crypt_fs config:type="boolean">false</crypt_fs> |
||||
|
<filesystem config:type="symbol">btrfs</filesystem> |
||||
|
<format config:type="boolean">true</format> |
||||
|
<loop_fs config:type="boolean">false</loop_fs> |
||||
|
<mount>/</mount> |
||||
|
<mountby config:type="symbol">device</mountby> |
||||
|
<partition_id config:type="integer">131</partition_id> |
||||
|
<partition_nr config:type="integer">2</partition_nr> |
||||
|
<raid_options /> |
||||
|
<resize config:type="boolean">false</resize> |
||||
|
<size>max</size> |
||||
|
<subvolumes config:type="list"> |
||||
|
<listentry>boot/grub2/i386-pc</listentry> |
||||
|
<listentry>boot/grub2/x86_64-efi</listentry> |
||||
|
<listentry>home</listentry> |
||||
|
<listentry>opt</listentry> |
||||
|
<listentry>srv</listentry> |
||||
|
<listentry>tmp</listentry> |
||||
|
<listentry>usr/local</listentry> |
||||
|
<listentry>var/crash</listentry> |
||||
|
<listentry>var/lib/mailman</listentry> |
||||
|
<listentry>var/lib/named</listentry> |
||||
|
<listentry>var/lib/pgsql</listentry> |
||||
|
<listentry>var/log</listentry> |
||||
|
<listentry>var/opt</listentry> |
||||
|
<listentry>var/spool</listentry> |
||||
|
<listentry>var/tmp</listentry> |
||||
|
</subvolumes> |
||||
|
</partition> |
||||
|
</partitions> |
||||
|
<pesize /> |
||||
|
<type config:type="symbol">CT_DISK</type> |
||||
|
<use>all</use> |
||||
|
</drive> |
||||
|
</partitioning> |
||||
|
<bootloader> |
||||
|
<loader_type>grub2</loader_type> |
||||
|
<global> |
||||
|
<activate>true</activate> |
||||
|
<timeout config:type="integer">1</timeout> |
||||
|
<boot_mbr>true</boot_mbr> |
||||
|
</global> |
||||
|
</bootloader> |
||||
|
<networking> |
||||
|
<ipv6 config:type="boolean">false</ipv6> |
||||
|
<keep_install_network config:type="boolean">true</keep_install_network> |
||||
|
<dns> |
||||
|
<dhcp_hostname config:type="boolean">false</dhcp_hostname> |
||||
|
<domain>localdomain</domain> |
||||
|
<hostname>opensuse15.localdomain</hostname> |
||||
|
</dns> |
||||
|
<interfaces config:type="list"> |
||||
|
<interface> |
||||
|
<bootproto>dhcp</bootproto> |
||||
|
<device>enp0s3</device> |
||||
|
<startmode>hotplug</startmode> |
||||
|
</interface> |
||||
|
<interface> |
||||
|
<bootproto>dhcp</bootproto> |
||||
|
<device>ens33</device> |
||||
|
<startmode>hotplug</startmode> |
||||
|
</interface> |
||||
|
<interface> |
||||
|
<bootproto>dhcp</bootproto> |
||||
|
<device>eth0</device> |
||||
|
<startmode>hotplug</startmode> |
||||
|
</interface> |
||||
|
</interfaces> |
||||
|
</networking> |
||||
|
<firewall> |
||||
|
<enable_firewall config:type="boolean">false</enable_firewall> |
||||
|
<start_firewall config:type="boolean">false</start_firewall> |
||||
|
</firewall> |
||||
|
<software> |
||||
|
<instsource /> |
||||
|
<packages config:type="list"> |
||||
|
<package>grub2</package> |
||||
|
<package>glibc-locale</package> |
||||
|
<package>iputils</package> |
||||
|
<package>kernel-default</package> |
||||
|
<package>sudo</package> |
||||
|
<package>yast2</package> |
||||
|
<package>yast2-firstboot</package> |
||||
|
<package>zypper</package> |
||||
|
<package>yast2-trans-en_US</package> |
||||
|
<package>wget</package> |
||||
|
<package>curl</package> |
||||
|
<package>less</package> |
||||
|
<package>openssh</package> |
||||
|
<package>openssh-server</package> |
||||
|
</packages> |
||||
|
<patterns config:type="list"> |
||||
|
<pattern>sw_management</pattern> |
||||
|
<pattern>yast2_install_wf</pattern> |
||||
|
<pattern>minimal_base</pattern> |
||||
|
</patterns> |
||||
|
<remove-packages config:type="list"> |
||||
|
<package>bash-completion</package> |
||||
|
<package>telnet</package> |
||||
|
<package>virtualbox-guest-kmp-default</package> |
||||
|
<package>virtualbox-guest-tools</package> |
||||
|
<package>snapper</package> |
||||
|
<package>snapper-zypp-plugin</package> |
||||
|
</remove-packages> |
||||
|
</software> |
||||
|
<services-manager> |
||||
|
<default_target>multi-user</default_target> |
||||
|
<services> |
||||
|
<disable config:type="list" /> |
||||
|
<enable config:type="list"> |
||||
|
<service>sshd</service> |
||||
|
</enable> |
||||
|
</services> |
||||
|
</services-manager> |
||||
|
<groups config:type="list"> |
||||
|
<group> |
||||
|
<gid>100</gid> |
||||
|
<groupname>users</groupname> |
||||
|
<userlist /> |
||||
|
</group> |
||||
|
</groups> |
||||
|
<user_defaults> |
||||
|
<expire /> |
||||
|
<group>100</group> |
||||
|
<groups /> |
||||
|
<home>/home</home> |
||||
|
<inactive>-1</inactive> |
||||
|
<no_groups config:type="boolean">true</no_groups> |
||||
|
<shell>/bin/bash</shell> |
||||
|
<skel>/etc/skel</skel> |
||||
|
<umask>022</umask> |
||||
|
</user_defaults> |
||||
|
<users config:type="list"> |
||||
|
<user> |
||||
|
<user_password>vagrant</user_password> |
||||
|
<username>root</username> |
||||
|
</user> |
||||
|
<user> |
||||
|
<fullname>vagrant</fullname> |
||||
|
<gid>100</gid> |
||||
|
<home>/home/vagrant</home> |
||||
|
<password_settings> |
||||
|
<expire /> |
||||
|
<flag /> |
||||
|
<inact>-1</inact> |
||||
|
<max>99999</max> |
||||
|
<min>0</min> |
||||
|
<warn>7</warn> |
||||
|
</password_settings> |
||||
|
<shell>/bin/bash</shell> |
||||
|
<uid>1000</uid> |
||||
|
<user_password>vagrant</user_password> |
||||
|
<username>vagrant</username> |
||||
|
</user> |
||||
|
</users> |
||||
|
<kdump> |
||||
|
<add_crash_kernel config:type="boolean">false</add_crash_kernel> |
||||
|
</kdump> |
||||
|
<scripts> |
||||
|
<post-scripts config:type="list"> |
||||
|
<script> |
||||
|
<filename>post.sh</filename> |
||||
|
<interpreter>shell</interpreter> |
||||
|
<source><![CDATA[ |
||||
|
#!/bin/bash |
||||
|
dmesg | grep -E "Hypervisor detected: Microsoft HyperV|Hypervisor detected: Microsoft Hyper-V" |
||||
|
if [ $? -eq 0 ]; then systemctl enable hv_kvp_daemon.service ; fi |
||||
|
]]> |
||||
|
</source> |
||||
|
</script> |
||||
|
</post-scripts> |
||||
|
</scripts> |
||||
|
|
||||
|
</profile> |
@ -0,0 +1,77 @@ |
|||||
|
install |
||||
|
cdrom |
||||
|
lang en_US.UTF-8 |
||||
|
keyboard us |
||||
|
network --bootproto=dhcp --noipv6 --onboot=on --device=eth0 |
||||
|
rootpw --plaintext vagrant |
||||
|
firewall --disabled |
||||
|
selinux --permissive |
||||
|
timezone UTC |
||||
|
unsupported_hardware |
||||
|
bootloader --timeout=1 --location=mbr --append="net.ifnames=0 biosdevname=0" |
||||
|
text |
||||
|
skipx |
||||
|
zerombr |
||||
|
clearpart --all --initlabel |
||||
|
autopart --nohome --nolvm |
||||
|
auth --enableshadow --passalgo=sha512 --kickstart |
||||
|
firstboot --disabled |
||||
|
reboot --eject |
||||
|
user --name=vagrant --plaintext --password vagrant |
||||
|
|
||||
|
%packages --nobase --ignoremissing --excludedocs --instLangs=en_US.utf8 |
||||
|
# vagrant needs this to copy initial files via scp |
||||
|
openssh-clients |
||||
|
sudo |
||||
|
selinux-policy-devel |
||||
|
wget |
||||
|
nfs-utils |
||||
|
net-tools |
||||
|
tar |
||||
|
bzip2 |
||||
|
deltarpm |
||||
|
rsync |
||||
|
-fprintd-pam |
||||
|
-intltool |
||||
|
|
||||
|
# unnecessary firmware |
||||
|
-*firmware |
||||
|
-microcode_ctl |
||||
|
%end |
||||
|
|
||||
|
%post |
||||
|
# sudo |
||||
|
echo 'Defaults:vagrant !requiretty' > /etc/sudoers.d/vagrant |
||||
|
echo '%vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/vagrant |
||||
|
chmod 440 /etc/sudoers.d/vagrant |
||||
|
|
||||
|
# Enable hyper-v daemons only if using hyper-v virtualization |
||||
|
if [ $(virt-what) == "hyperv" ]; then |
||||
|
yum -y install hyperv-daemons cifs-utils |
||||
|
systemctl enable hypervvssd |
||||
|
systemctl enable hypervkvpd |
||||
|
fi |
||||
|
|
||||
|
# Since we disable consistent network naming, we need to make sure the eth0 |
||||
|
# configuration file is in place so it will come up. |
||||
|
# Delete other network configuration first because RHEL/C7 networking will not |
||||
|
# restart successfully if there are configuration files for devices that do not |
||||
|
# exist. |
||||
|
rm -f /etc/sysconfig/network-scripts/ifcfg-e* |
||||
|
cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << _EOF_ |
||||
|
TYPE=Ethernet |
||||
|
PROXY_METHOD=none |
||||
|
BROWSER_ONLY=no |
||||
|
BOOTPROTO=dhcp |
||||
|
DEFROUTE=yes |
||||
|
IPV4_FAILURE_FATAL=no |
||||
|
IPV6INIT=yes |
||||
|
IPV6_AUTOCONF=yes |
||||
|
IPV6_DEFROUTE=yes |
||||
|
IPV6_FAILURE_FATAL=no |
||||
|
IPV6_ADDR_GEN_MODE=stable-privacy |
||||
|
NAME=eth0 |
||||
|
DEVICE=eth0 |
||||
|
ONBOOT=yes |
||||
|
_EOF_ |
||||
|
%end |
@ -0,0 +1,77 @@ |
|||||
|
install |
||||
|
cdrom |
||||
|
lang en_US.UTF-8 |
||||
|
keyboard us |
||||
|
network --bootproto=dhcp --noipv6 --onboot=on --device=eth0 |
||||
|
rootpw --plaintext vagrant |
||||
|
firewall --disabled |
||||
|
selinux --permissive |
||||
|
timezone UTC |
||||
|
bootloader --timeout=1 --location=mbr --append="net.ifnames=0 biosdevname=0" |
||||
|
text |
||||
|
skipx |
||||
|
zerombr |
||||
|
clearpart --all --initlabel |
||||
|
autopart --nohome --nolvm --noboot |
||||
|
firstboot --disabled |
||||
|
reboot --eject |
||||
|
user --name=vagrant --plaintext --password vagrant |
||||
|
|
||||
|
%packages --ignoremissing --excludedocs --instLangs=en_US.utf8 |
||||
|
# vagrant needs this to copy initial files via scp |
||||
|
openssh-clients |
||||
|
sudo |
||||
|
selinux-policy-devel |
||||
|
wget |
||||
|
nfs-utils |
||||
|
net-tools |
||||
|
tar |
||||
|
bzip2 |
||||
|
deltarpm |
||||
|
rsync |
||||
|
dnf-utils |
||||
|
redhat-lsb-core |
||||
|
elfutils-libelf-devel |
||||
|
network-scripts |
||||
|
-fprintd-pam |
||||
|
-intltool |
||||
|
-iwl*-firmware |
||||
|
-microcode_ctl |
||||
|
%end |
||||
|
|
||||
|
%post |
||||
|
# sudo |
||||
|
echo 'Defaults:vagrant !requiretty' > /etc/sudoers.d/vagrant |
||||
|
echo '%vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/vagrant |
||||
|
chmod 440 /etc/sudoers.d/vagrant |
||||
|
|
||||
|
# Enable hyper-v daemons only if using hyper-v virtualization |
||||
|
if [ $(virt-what) == "hyperv" ]; then |
||||
|
dnf -y install hyperv-daemons cifs-utils |
||||
|
systemctl enable hypervvssd |
||||
|
systemctl enable hypervkvpd |
||||
|
fi |
||||
|
|
||||
|
# Since we disable consistent network naming, we need to make sure the eth0 |
||||
|
# configuration file is in place so it will come up. |
||||
|
# Delete other network configuration first because RHEL/C7 networking will not |
||||
|
# restart successfully if there are configuration files for devices that do not |
||||
|
# exist. |
||||
|
rm -f /etc/sysconfig/network-scripts/ifcfg-e* |
||||
|
cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << _EOF_ |
||||
|
TYPE=Ethernet |
||||
|
PROXY_METHOD=none |
||||
|
BROWSER_ONLY=no |
||||
|
BOOTPROTO=dhcp |
||||
|
DEFROUTE=yes |
||||
|
IPV4_FAILURE_FATAL=no |
||||
|
IPV6INIT=yes |
||||
|
IPV6_AUTOCONF=yes |
||||
|
IPV6_DEFROUTE=yes |
||||
|
IPV6_FAILURE_FATAL=no |
||||
|
IPV6_ADDR_GEN_MODE=stable-privacy |
||||
|
NAME=eth0 |
||||
|
DEVICE=eth0 |
||||
|
ONBOOT=yes |
||||
|
_EOF_ |
||||
|
%end |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue