view modules/apt/lib/facter/apt_reboot_required.rb @ 482:d83de9b3a62b default tip

Update hiera.yaml within Puppet config Forgot that we manage it from here. Now has content to match new packages
author IBBoard <dev@ibboard.co.uk>
date Fri, 30 Aug 2024 16:10:36 +0100
parents 3fce34f642f1
children
line wrap: on
line source

# frozen_string_literal: true

# apt_reboot_required.rb
Facter.add(:apt_reboot_required) do
  confine osfamily: 'Debian'
  setcode do
    File.file?('/var/run/reboot-required')
  end
end