mkdir

pdk
Provides a useful mkdir::p define, works only on *nix, tested on Linux

475 downloads

475 latest version

5.0 quality score

Version information

  • 2.0.0 (latest)
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
  • RedHat
    ,
    CentOS
    , OracleLinux, Scientific, Fedora, Rocky, AlmaLinux, SLES,
    Debian
    ,
    Ubuntu
    , FreeBSD, DragonFly, ArchLinux

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'rehan-mkdir', '2.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add rehan-mkdir
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install rehan-mkdir --version 2.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: mkdir, mkdirp

Documentation

rehan/mkdir — version 2.0.0 Dec 7th 2022

puppet-mkdir

Build Status

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 :)',
}