Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add facts for Debian 12 #283

Merged
merged 2 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
593 changes: 593 additions & 0 deletions facts/4.2/debian-12-i386.facts

Large diffs are not rendered by default.

593 changes: 593 additions & 0 deletions facts/4.2/debian-12-x86_64.facts

Large diffs are not rendered by default.

593 changes: 593 additions & 0 deletions facts/4.3/debian-12-i386.facts

Large diffs are not rendered by default.

593 changes: 593 additions & 0 deletions facts/4.3/debian-12-x86_64.facts

Large diffs are not rendered by default.

593 changes: 593 additions & 0 deletions facts/4.4/debian-12-i386.facts

Large diffs are not rendered by default.

593 changes: 593 additions & 0 deletions facts/4.4/debian-12-x86_64.facts

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions facts/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
host.vm.provision 'shell', path: 'get_facts.sh'
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
end
config.vm.define 'debian-12-x86_64' do |host|
host.vm.box = 'boxomatic/debian-12'
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'
end
config.vm.define 'linuxmint-19-x86_64' do |host|
host.vm.box = 'ltsp/linuxmint-19.1-cinnamon-64bit'
host.vm.provision 'shell',
Expand Down
8 changes: 7 additions & 1 deletion facts/get_facts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ case "${osfamily}" in
# libc6-dev needed to build the ffi gem
apt_install make gcc libgmp-dev libc6-dev

# puppetlabs repos/packages not yet available on bookworm https://puppet.atlassian.net/browse/PA-4995
# simply install puppet-agent that comes with the distro
if [[ "bookworm" =~ ${lsbdistcodename} ]]; then
apt_install ruby rubygems ruby-dev
facter --show-legacy -p -j | tee ${output_file}
fi

# There are no puppet-agent packages for $releasename yet, so generate a Facter 3.x
# fact set from the official Debian package.
if [[ "hirsute" =~ ${lsbdistcodename} || "impish" =~ ${lsbdistcodename} || "jammy" =~ ${lsbdistcodename} || "kinetic" =~ ${lsbdistcodename} ]]; then
Expand Down Expand Up @@ -275,4 +282,3 @@ for version in 4.0.0 4.1.0 4.2.0 4.3.0 4.4.0; do
FACTER_GEM_VERSION="~> ${version}" bundle exec facter --show-legacy --json | bundle exec ruby -e 'require "json"; jj JSON.parse gets' | tee $output_file ||
FACTER_GEM_VERSION="~> ${version}" bundle exec facter --show-legacy --json | tee $output_file
done