Add initial vagrant XML

This commit is contained in:
Louis Abel 2024-04-30 21:52:31 -07:00
parent 083050a20d
commit e2e700b847
Signed by untrusted user: label
GPG Key ID: 2A6975660E424560
3 changed files with 105 additions and 2 deletions

View File

@ -215,7 +215,7 @@
<ignore name="langpacks-en"/> <ignore name="langpacks-en"/>
<ignore name="plymouth"/> <ignore name="plymouth"/>
<package name="NetworkManager"/> <package name="NetworkManager"/>
<package name=""/> <package name="bash"/>
<package name="chrony"/> <package name="chrony"/>
<package name="dnf"/> <package name="dnf"/>
<package name="cloud-init"/> <package name="cloud-init"/>

View File

@ -20,7 +20,7 @@
would stick with our repos until the OCP images. would stick with our repos until the OCP images.
<include from="this://./repositories/epel.xml"/> <include from="this://./repositories/epel.xml"/>
<include from="this://./repositories/oracle.xml"/> <include from="this://./repositories/oracle.xml"/>
<include from="this://./repositories/sig-cloud-common.xml"/> <include from="this://./repositories/cloud-common.xml"/>
--> -->
<!-- Components --> <!-- Components -->
<include from="this://./components/boot.xml"/> <include from="this://./components/boot.xml"/>
@ -29,6 +29,8 @@
<include from="this://./components/live/xfce.xml"/> <include from="this://./components/live/xfce.xml"/>
<!-- Cloud --> <!-- Cloud -->
<include from="this://./cloud/cloud.xml"/> <include from="this://./cloud/cloud.xml"/>
<!-- Vagrant -->
<include from="this://./vagrant/vagrant.xml"/>
<!-- Containers --> <!-- Containers -->
<include from="this://./container/container.xml"/> <include from="this://./container/container.xml"/>
<!-- Live --> <!-- Live -->

101
vagrant/vagrant.xml Normal file
View File

@ -0,0 +1,101 @@
<image>
<profiles>
<profile name="Core-Vagrant" description="Vagrant Core Packages">
<requires profile="Core-Boot"/>
</profile>
<profile name="Vagrant-Hyperv" description="Vagrant Hyperv Image">
<requires profile="Core-Vagrant"/>
</profile>
<profile name="Vagrant-Libvirt" description="Vagrant Libvirt Image">
<requires profile="Core-Vagrant"/>
</profile>
<profile name="Vagrant-Vbox" description="Vagrant Vbox Image">
<requires profile="Core-Vagrant"/>
</profile>
</profiles>
<users profiles="Core-Vagrant">
<user name="vagrant" groups="vagrant" password="vagrant" home="/home/vagrant" pwdformat="plain" />
<user name="root" groups="root" password="$5$xyz$DPJRaBL9FrgJhscbvsfpJpNA9c.o4sMBorTsYKIb69." home="/root"/>
</users>
<preferences profiles="Vagrant-Hyperv" arch="x86_64">
<type image="oem" format="vagrant"
filesystem="xfs"
bootpartition="true" bootpartsize="1000" bootfilesystem="xfs" efipartsize="100" firmware="uefi"
kernelcmdline="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop"
devicepersistency="by-uuid"
rootfs_label="rocky">
<oemconfig>
<oem-resize>false</oem-resize>
</oemconfig>
<bootloader name="grub2" timeout="1"/>
<size unit="G">10</size>
<vagrantconfig provider="hyperv" virtualsize="5"/>
</type>
</preferences>
<preferences profiles="Vagrant-Libvirt" arch="x86_64">
<type image="oem" format="vagrant"
filesystem="xfs"
bootpartition="true" bootpartsize="1000" bootfilesystem="xfs" efipartsize="100" firmware="uefi"
kernelcmdline="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop"
devicepersistency="by-uuid"
rootfs_label="rocky">
<oemconfig>
<oem-resize>false</oem-resize>
</oemconfig>
<bootloader name="grub2" timeout="1"/>
<size unit="G">10</size>
<vagrantconfig provider="libvirt" virtualsize="5"/>
</type>
</preferences>
<preferences profiles="Vagrant-Vbox" arch="x86_64">
<type image="oem" format="vagrant"
filesystem="xfs"
bootpartition="true" bootpartsize="1000" bootfilesystem="xfs" efipartsize="100" firmware="uefi"
kernelcmdline="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop"
devicepersistency="by-uuid"
rootfs_label="rocky">
<oemconfig>
<oem-resize>false</oem-resize>
</oemconfig>
<bootloader name="grub2" timeout="1"/>
<size unit="G">10</size>
<vagrantconfig provider="virtualbox" virtualbox_guest_additions_present="true" virtualsize="5"/>
</type>
</preferences>
<packages type="image" patternType="plusRecommended" profiles="Core-Vagrant">
<namedCollection name="core"/>
<ignore name="dracut-config-rescue"/>
<ignore name="*-firmware"/>
<ignore name="microcode_ctl"/>
<ignore name="plymouth"/>
<package name="bash-completion"/>
<package name="bzip2"/>
<package name="chrony"/>
<package name="cifs-utils"/>
<package name="gdisk"/>
<package name="glibc-langpack-en"/>
<package name="man-pages"/>
<package name="nfs-utils"/>
<package name="open-vm-tools"/>
<package name="rsync"/>
<package name="yum-utils"/>
</packages>
<packages type="image" patternType="plusRecommended" profiles="Vagrant-Hyperv">
<package name="hyperv-daemons"/>
</packages>
<packages type="image" patternType="plusRecommended" profiles="Vagrant-Libvirt">
<package name="qemu-guest-agent"/>
</packages>
<!-- <packages type="image" patternType="plusRecommended" profiles="Vagrant-Vbox">
<package name="virtualbox-guest-additions"/>
</packages> -->
<!-- Do we need this? I don't see cloud-init in our kickstarts -->
<packages type="uninstall" profiles="Core-Vagrant">
<package name="cloud-init"/>
</packages>
</image>