Skip to content

Commit

Permalink
feat: add facts for debian-12
Browse files Browse the repository at this point in the history
fixes #279
  • Loading branch information
TheMeier committed Aug 2, 2023
1 parent b921272 commit 45776f6
Show file tree
Hide file tree
Showing 8 changed files with 3,571 additions and 1 deletion.
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

0 comments on commit 45776f6

Please sign in to comment.