title: Howto mount and then unmount a filesystem in puppet?
body: <p>I understand that in the same manifest, a resource type has a unique name.</p>
  
  <p>For the "mount" resource, the name is the path where the device will be mounted.</p>
  
  <p>I want to do the following with puppet :</p>
  
  <ol>
  <li>mount an NFS partition</li>
  <li>execute a script from this mount point</li>
  <li>unmount this partition</li>
  </ol>
  
  <p>So I declare : </p>
  
  <blockquote>
  <pre><code>mount {'/mnt/tina':
      device =&gt; 'tina-iuem:/distrib',
      fstype =&gt; 'nfs',
      options =&gt; "defaults",
      remounts =&gt; false,
      atboot =&gt; false,
      ensure =&gt; mounted,
  }
  exec {'install':
      command =&gt; '/mnt/tina/mycommand.sh'
  }
  </code></pre>
  </blockquote>
  
  <p>Then, how to unmount the '/mnt/tina' resource ?</p>