mkdir

Helper function to work around lack of recursive directory creation in puppet v2

Wesley Tanaka

wtanaka

22,023 downloads

21,756 latest version

3.8 quality score

Version information

  • 0.0.2 (latest)
  • 0.0.1
released Apr 27th 2014

Start using this module

Documentation

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