mkdir
Provides a useful mkdir::p define, works only on *nix, tested on Linux
Version information
released Dec 7th 2022
This version is compatible with:
- Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x
- Puppet >= 6.0.0 < 8.0.0
- OracleLinux, Scientific, Fedora, Rocky, AlmaLinux, SLES, , , FreeBSD, DragonFly, ArchLinux , ,
Start using this module
Add this module to your Puppetfile:
mod 'rehan-mkdir', '2.0.0'
Learn more about managing modules with a PuppetfileDocumentation
rehan/mkdir — version 2.0.0 Dec 7th 2022
puppet-mkdir
This module is a clone of flypenguin/mkdir.
Provides an mkdir -p
implementation in pure puppet code, no functions.
Sample Usage
mkdir::p
mkdir::p { '/this/is/a/dir': }
mkdir::p { 'important dir':
path => '/this/is/a/dir',
}
mkdir::p { '/this/is/a/dir':
owner => 'me',
mode => '0700',
}
mkdir::p { '/this/is/a/dir':
declare_file => true,
}
# now auto-require works ...
file { '/this/is/a/dir/and_a_file':
ensure => 'present',
content => 'I can be sure that this works now :)',
}
2.0.0 (December 7, 2022)
- Initial fork from flypenguin/mkdir
1.0.4 (November 24, 2015)
Features
Bugfixes
Known Issues
1.0.3 (September 20, 2015)
Features:
- Initial release
Dependencies
- puppetlabs-stdlib (>= 6.0.0 < 9.0.0)
The MIT License (MIT) Copyright (c) 2015 Axel Bock <mr.axel.bock@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.