Skip to content

Commit

Permalink
Fedora: Switch to upstream images
Browse files Browse the repository at this point in the history
I don't know what strange memory defaults those images have, but the VM
goes OOM when we run the get_facts.sh script, so I adjusted the memory
to 2G. also rsync is used and no shared folder. So I disabled the
automatic shutdown so we can copy the files out of the VM.
  • Loading branch information
bastelfreak committed May 17, 2024
1 parent 455436d commit 934e2e5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ FacterDB::get_facts('osfamily=Debian')
| Debian 12 | | | 2 | 2 | 2 | 1 | 1 | 1 |
| Fedora 36 | | | 1 | 1 | 1 | 1 | 1 | 1 |
| Fedora 37 | | | 1 | 1 | 1 | 1 | 1 | 1 |
| Fedora 38 | | | 1 | 1 | 1 | 1 | | |
| Fedora 39 | | | 1 | 1 | 1 | 1 | | |
| Fedora 38 | | | 1 | 1 | 1 | 1 | 1 | 1 |
| Fedora 39 | | | 1 | 1 | 1 | 1 | 1 | 1 |
| FreeBSD 11 | 1 | 1 | 1 | | | | | |
| FreeBSD 12 | 1 | 1 | 1 | | | 1 | | |
| FreeBSD 13 | 1 | 1 | 1 | 1 | 1 | 1 | | |
Expand Down
20 changes: 16 additions & 4 deletions facts/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -367,17 +367,29 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
end
config.vm.define 'fedora-38-x86_64', autostart: false do |host|
host.vm.box = 'generic/fedora38'
# default memory limit kills dnf as soon as we install packages
host.vm.provider 'virtualbox' do |v|
v.memory = 2048
end
host.vm.box = 'fedora/38-cloud-base'
host.vm.synced_folder '.', '/vagrant'
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
host.vm.provision 'shell', path: 'get_facts.sh'
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
# rsync is used to get the vagrant dir into the VM.
# We need to copy the factsets out of the VM by hand
# host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
end
config.vm.define 'fedora-39-x86_64', autostart: false do |host|
host.vm.box = 'generic/fedora39'
# default memory limit kills dnf as soon as we install packages
host.vm.provider 'virtualbox' do |v|
v.memory = 2048
end
host.vm.box = 'fedora/39-cloud-base'
host.vm.synced_folder '.', '/vagrant'
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
host.vm.provision 'shell', path: 'get_facts.sh'
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
# rsync is used to get the vagrant dir into the VM.
# We need to copy the factsets out of the VM by hand
# host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
end
end

0 comments on commit 934e2e5

Please sign in to comment.