Skip to content

Puppet module "mkdir" for recursive directory creation. Rename of former "mkdirp".

License

Notifications You must be signed in to change notification settings

flypenguin/puppet-mkdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mkdir::p

Provides an mkdir -p implementation in pure puppet code, no functions.

Some examples:

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

About

Puppet module "mkdir" for recursive directory creation. Rename of former "mkdirp".

Resources

License

Stars

Watchers

Forks

Packages

No packages published