title: Could not retrieve catalog from remote server: Error 400 on SERVER: Unknown function hiera_hash
body: <p>I am getting the below error when I try to do a <code>puppet run</code> on a node, for synchronizing ssh puppet module. </p>
  
  <p>I searched for quite a while and found <code>hiera_hash.rb</code> presence in <code>/var/lib/gems/1.9/gems/lib/....functions/</code>. I also copied <code>puppet-hiera/functions/*</code> to the above location.</p>
  
  <p>I tried running <code>hiera_hash</code> in puppet master with <code>puppet apply</code> command and it worked. So that confirms <code>hiera_hash</code> is working fine in puppet master host</p>
  
  <p>I manually logged in to the node and tried hiera_hash and it's not present in that node and error is originating from that node. Why puppet master puppet configurations are not synchronized to all nodes.</p>
  
  <p>I enabled <code>pluginsync=true</code> in puppet.conf in all nodes including puppet master. How to fix this issue???</p>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>Could not retrieve catalog from remote server: Error 400 on SERVER: Unknown function hiera_hash at /etc/puppet/modules/ssh/manifests/init.pp:9
  </code></pre>