title: Trouble locating templates in Puppet
body: <p>I can't get my Puppet manifest to find templates the way I'd expect so I thought someone might have a quick answer. I'm new to puppet so just trying to understand all the locations for everything and how to reference files properly. If I'm missing something painfully obvious I apologize.</p>
  
  <p>This works:</p>
  
  <pre><code>file {
       $zabbix_agent_conf:
       owner =&gt; root,
       group =&gt; root,
       mode =&gt; 0644,
       content =&gt; template("/etc/puppet/templates/zabbix/files/zabbix_agent_conf.erb"),
       require =&gt; Package["zabbix-agent"];
  }
  </code></pre>
  
  <p>This does not:</p>
  
  <pre><code>file {
       $zabbix_agent_conf:
       owner =&gt; root,
       group =&gt; root,
       mode =&gt; 0644,
       content =&gt; template("puppet:///templates/zabbix/zabbix_agent_conf.erb"),
       require =&gt; Package["zabbix-agent"];
  }
  </code></pre>
  
  <p>My /etc/puppet/puppet.conf:</p>
  
  <pre><code>[main]
  logdir=/var/log/puppet
  vardir=/var/lib/puppet
  ssldir=/var/lib/puppet/ssl
  rundir=/var/run/puppet
  factpath=$vardir/lib/facter
  templatedir=/etc/puppet/templates
  prerun_command=/etc/puppet/etckeeper-commit-pre
  postrun_command=/etc/puppet/etckeeper-commit-post
  
  [master]
  # These are needed when the puppetmaster is run by passenger
  # and can safely be removed if webrick is used.
  ssl_client_header = SSL_CLIENT_S_DN
  ssl_client_verify_header = SSL_CLIENT_VERIFY
  </code></pre>