# frozen_string_literal: true # lib/facter/sshd_host_cert_exists.rb require 'puppet' Facter.add('sshd_host_cert_exists') do setcode do File.exist?('/etc/ssh/ssh_host_rsa_key-cert.pem') end end