mkdir
contributions requested
Helper function to work around lack of recursive directory
creation in puppet v2
Version information
released Apr 27th 2014
Start using this module
Add this module to your Puppetfile:
mod 'wtanaka-mkdir', '0.0.2'
Learn more about managing modules with a PuppetfileDocumentation
wtanaka/mkdir — version 0.0.2 Apr 27th 2014
This module defines a custom function all_parents() which you can use to create a directory and all of its ancestors simultaneously.
Example: (creates a symbolic link from /some/path/to/a/file pointing at /vagrant)
$path = '/some/path/to/a/file' $path_parents = all_parents($path) file { $path_to_project_parents: ensure => 'directory', mode => 775, } file { $path_to_project: ensure => 'link', target => '/vagrant', }
For the latest information, go to http://wtanaka.com/puppet-wtanaka-mkdir