puppet-prod/modules/libs/lib/facter/firstrun.rb
Ben Vincent dde8d5978d feat: firstrun improvements
- add fact to detect firstrun
- run a limited subset of classes on firstrun
- firstrun: includes:
  - vault ca certificates
  - yum/apt repositories
  - fast-install packages with an exec
2024-05-19 21:28:14 +10:00

9 lines
177 B
Ruby

# frozen_string_literal: true
Facter.add(:firstrun) do
confine kernel: 'Linux'
setcode do
File.exist?('/root/.cache/puppet_firstrun_complete') ? false : true
end
end