Answers: <p>According to <a href="https://tickets.puppetlabs.com/browse/PUP-4759" rel="nofollow noreferrer">https://tickets.puppetlabs.com/browse/PUP-4759</a> the issue seems to be solved. </p>
  
Answers: CC BY-SA 4.0
Answers: 2019-12-27T15:52:33.590Z
Answers: 2019-12-27T15:52:33.590Z
Answers: 030
Body: <p>Repeating <a href="https://stackoverflow.com/q/52833285/4640431">my question from SO.SE</a> here ...</p>
  
  <p>I'm trying to have my configs directory (on Windows server 2016 node) to be synced from puppet master (puppet --version = 5.5.3) modules folder: I have my desired structure repeated under module/files. This:</p>
  
  <pre><code>file { "c:\\":
          ensure =&gt; directory,
          recurse =&gt; remote,
          source =&gt; "puppet:///modules/configs"
          }
  </code></pre>
  
  <p>works for files that exist in source dir, but does not delete files that are deleted from source (from docs I understood that it should) also I tried:</p>
  
  <pre><code>file { "c:\\":
          ensure =&gt; directory,
          recurse =&gt; true,
          purge =&gt; true,
          source =&gt; "puppet:///modules/configs"
          }
  </code></pre>
  
  <p>but then I get an error:</p>
  
  <blockquote>
    <p>Error: /Stage[main]/Main/Node[nodename]/File[c:]: Failed to generate additional resources using 'eval_generate': CreateF
    ile(c:/Documents and Settings, 20000000000, 1, , 3, 210000000, 0):  Access is denied.</p>
  </blockquote>
  
  <p>I was not able to find even descent source telling possible cause for the error; Access denied makes no sense as puppet agent runs with system privileges and should be able to access every path, also script should have nothing to do with c:/Documents and Settings path to my understanding.</p>
  
  <p>Any help to solve this?</p>
  
Comments: CC BY-SA 4.0
Comments: 2019-12-24T14:15:38.467Z
Comments: According to https://tickets.puppetlabs.com/browse/PUP-4759 the issue seems to be solved.
Comments: 030
Comments: CC BY-SA 4.0
Comments: 2019-12-27T14:00:17.640Z
Comments: Thanks! Not actual anymore - I don't work on that project already for more than half a year - don't even have puppet installation to test this :)
Comments: Drako
Tags: <windows><puppet>
Title: Puppet directory sync does not delete absent files
UserDisplayName: Drako
ThreadText: # Puppet directory sync does not delete absent files
  
  (Asked by: username_0 on 2018-10-18)
  
  Repeating [my question from SO.SE](https://stackoverflow.com/q/52833285/4640431) here ...
  
  I'm trying to have my configs directory (on Windows server 2016 node) to be synced from puppet master (puppet --version = 5.5.3) modules folder: I have my desired structure repeated under module/files. This:
  
  ```
  file { "c:\\":
          ensure => directory,
          recurse => remote,
          source => "puppet:///modules/configs"
          }
  
  ```
  
  works for files that exist in source dir, but does not delete files that are deleted from source (from docs I understood that it should) also I tried:
  
  ```
  file { "c:\\":
          ensure => directory,
          recurse => true,
          purge => true,
          source => "puppet:///modules/configs"
          }
  
  ```
  
  but then I get an error:
  
  > Error: /Stage[main]/Main/Node[nodename]/File[c:]: Failed to generate additional resources using 'eval\_generate': CreateF
  > ile(c:/Documents and Settings, 20000000000, 1, , 3, 210000000, 0): Access is denied.
  
  I was not able to find even descent source telling possible cause for the error; Access denied makes no sense as puppet agent runs with system privileges and should be able to access every path, also script should have nothing to do with c:/Documents and Settings path to my understanding.
  
  Any help to solve this?
  
  **Tags:** windows, puppet
  
  > **Comments:**
  > **username_1**: According to https://tickets.puppetlabs.com/browse/PUP-4759 the issue seems to be solved.  
  > **username_0**: Thanks! Not actual anymore - I don't work on that project already for more than half a year - don't even have puppet installation to test this :)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-12-27. Score: 1
  
  According to <https://tickets.puppetlabs.com/browse/PUP-4759> the issue seems to be solved.
  
  
  ---
  
  