title: Setup rabbitmq cluster with puppet
body: <p>I am trying to setup a rabbitmq cluster with puppet. I have nodeA that initiates the cluster and all other nodes should join nodeA's cluster using nodeA's hostname.
  All other nodes execute the following code.</p>
  
  <pre><code>class { 'rabbitmq':
     service_manage =&gt; false,
     port =&gt; '5672',
     delete_guest_user =&gt; true,
     erlang_cookie =&gt; $erlang_hash,
     config_cluster    =&gt; true,
     cluster_nodes     =&gt; ['nodeA'],
     cluster_node_type =&gt; 'ram',
     wipe_db_on_cookie_change =&gt; true,
  }
  </code></pre>
  
  <p>Nodes executing this puppet code can ping nodeA and puppet generates the following config file,</p>
  
  <pre><code>% This file managed by Puppet
  % Template Path: rabbitmq/templates/rabbitmq.config
  [
    {rabbit, [
      {cluster_nodes, {['rabbit@nodeA'], ram}},
      {cluster_partition_handling, ignore},
      {default_user, &lt;&lt;"guest"&gt;&gt;},
      {default_pass, &lt;&lt;"guest"&gt;&gt;}
    ]}
  ].
  % EOF
  </code></pre>
  
  <p>nodeA is a disc node and the node trying to join nodeA's cluster is a ram node.</p>
  
  <p>Unfortunately a node executing my puppet code doesn't join nodeA's cluster.</p>