aboutsummaryrefslogtreecommitdiff
path: root/manifests/moduledir.pp
blob: f779085b8c25d7a849a5f2740eda30558c75208c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# setup root for module_dirs
class common::moduledir {
  # Use this variable to reference the base path. Thus you are safe from any
  # changes.
  $module_dir_path = '/var/lib/puppet/modules'

  # Module programmers can use /var/lib/puppet/modules/$modulename to save
  # module-local data, e.g. for constructing config files
  file{$module_dir_path:
    ensure  => directory,
    recurse => true,
    purge   => true,
    force   => true,
    owner   => root,
    group   => 0,
    mode    => '0755';
  }
}