Defined Type: nfs::mkdir

Defined in:
manifests/mkdir.pp

Overview

Nasty ass hax to allow several levels of directories



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'manifests/mkdir.pp', line 2

define nfs::mkdir() {

  exec { "mkdir_recurse_${name}":
    path    => [ '/bin', '/usr/bin' ],
    command => "mkdir -p ${name}",
    unless  => "test -d ${name}",
  }

  file {
    "${name}":
      ensure  => directory,
      require => Exec["mkdir_recurse_${name}"]
  }

}