title: External custom fact not working on Puppet
body: <p>I'm running Facter 3.6 and trying to add a custom fact. According to the <a href="https://docs.puppet.com/facter/latest/custom_facts.html#fact-locations" rel="nofollow noreferrer">documentation</a>, the folder <code>/etc/puppetlabs/facter/fact.d/</code> is automatically used for custom facts.</p>
  
  <p>I place the following template into said folder as <code>hello.rb</code>:</p>
  
  <pre><code>Facter.add(:hello) do
    setcode do
      "Hello, world"
    end
  end
  </code></pre>
  
  <p>I then force a puppet run on one of my agents with <code>puppet agent -t</code>.</p>
  
  <p>When I look in PuppetDb I don't see my new custom fact <code>hello</code>. Did I miss a step in adding my external custom fact?</p>