title: Error testing Puppet / TheForeman
body: <p>I am writing a <a href="http://pastebin.com/LkakDjEX" rel="nofollow">bash script</a> for the public (and myself) to set up a <strong>Puppet / TheForeman</strong> server real quick on a Ubuntu 14.04 LTS server, which is based on this <a href="http://www.theforeman.org/manuals/1.6/quickstart_guide.html" rel="nofollow">HOWTO</a>. I have done nothing on the part of DNS. </p>
  
  <pre><code>ping $(hostname -f)
  
  PING foreman.test.local (192.168.1.2) 56(84) bytes of data.
  64 bytes from foreman.test.local (192.168.1.2): icmp_seq=1 ttl=64 time=0.035 ms
  64 bytes from foreman.test.local (192.168.1.2): icmp_seq=2 ttl=64 time=0.049 ms
  64 bytes from foreman.test.local (192.168.1.2): icmp_seq=3 ttl=64 time=0.054 ms
  64 bytes from foreman.test.local (192.168.1.2): icmp_seq=4 ttl=64 time=0.054 ms
  </code></pre>
  
  <p>After running the bash script I expect the test to give good results, but instead I get an error message:</p>
  
  <pre><code>sudo puppet agent --test
  
  Warning: Unable to fetch my node definition, but the agent run will continue:
  Warning: Error 400 on SERVER: Failed to find foreman.test.local via exec: Execution of '/etc/puppet/node.rb foreman.test.local' returned 1: 
  Info: Retrieving plugin
  Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node foreman.test.local: Failed to find foreman.test.local via exec: Execution of '/etc/puppet/node.rb foreman.test.local' returned 1: 
  Warning: Not using cache on failed catalog
  Error: Could not retrieve catalog; skipping run
  </code></pre>