This message was deleted.
# puppet-enterprise
s
This message was deleted.
👍 1
v
I have this code for ages, not sure what was wrong with it in version 3, I guess
Copy code
# Provide backup value for clientcert
Facter.add(:clientcert) do
  has_weight 10
  setcode do
    Puppet.settings[:certname]
  end
end
b
that does get the certname from puppet.conf and if that's not configured the default? Or does it actually check what's in the certificate as common name?
v
I think it behaves exactly like default
but for some reasons it was empty in some cases, so we added that
b
ah okay
I usually use
$trusted['certname']
v
bunch of old code no one has time to rewrite
b
ah 😄
I know that 😞
v
and, if I am not mistaken, $trusted is not correct for puppet apply
b
as far as I know it works if the node has a cert (which often isn't the case)