Puppet: System Administration Automated

Support

Ticket #86 (new enhancement)

Opened 3 years ago

Last modified 9 months ago

Directory creation fails if parent directory does not exist

Reported by: opo@ikom.de Assigned to: community
Priority: normal Milestone: unplanned
Component: file Version:
Severity: normal Keywords: files
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Medium

Description

I tried

file {"/usr/local/share/puppet/sopext/facter" :

ensure => directory, recurse => true

}

but get erros that the parent diretories are not available.

Change History

04/30/06 06:54:29 changed by luke

  • type changed from defect to enhancement.

This is a missing feature, not a bug. I don't think it will be implemented for a while yet, since it requires considerable changes in the library.

04/05/07 19:18:26 changed by luke

  • specification set to Unnecessary.
  • patch set to None.
  • owner changed from luke to community.
  • complexity set to Medium.
  • milestone set to unplanned.
  • keywords set to files.
  • approval set to Approved.
  • compatibility set to Limited.
  • stage set to Accepted.

This is now not all that difficult, now that resources can generate new resources at run-time using 'eval_generate', but it will require additional configuration, maybe 'recurse => upward' or something, although that would make it impossible to recurse both directions.

06/14/07 16:29:05 changed by luke

  • summary changed from directory ensure recurse seems not to work to Directory creation fails if parent directory does not exist.

Marked #668 as a duplicate, and fixed description.

04/24/08 07:29:51 changed by luke

  • component changed from library to file.