Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 473 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 473 Bytes

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