title: Add user to group at a later point in puppet
body: <p>I have a user resource in a module that gets used by several different nodes. Now I want to add this user to a group but only in one specific node. Is there a good solution for this?</p>
  
  <p>Module looks something like this:</p>
  
  <pre><code>class testmodule::basics {
    user { 'testuser':
      ensure     =&gt; present,
      home       =&gt; '/home/testuser',
      managehome =&gt; true,
    }
  }
  </code></pre>
  
  <p>Node manifest:</p>
  
  <pre><code>node 'testnode' {
    include testmodule::basics
  
    # here I would like to add the user to a group
    # something like this (obviously does not work because of duplicate resource)
  
    user { 'testuser':
      groups     =&gt; 'testgroup',
      membership =&gt; 'minimum',
    }
  }
  </code></pre>