2013-01-03 16:49:04 +01:00
|
|
|
# setup root for module_dirs
|
2010-05-05 17:26:43 +02:00
|
|
|
class common::moduledir {
|
2013-01-03 16:49:04 +01:00
|
|
|
# Use this variable to reference the base path. Thus you are safe from any
|
|
|
|
# changes.
|
|
|
|
$module_dir_path = '/var/lib/puppet/modules'
|
2010-05-05 17:26:43 +02:00
|
|
|
|
2013-01-03 16:49:04 +01:00
|
|
|
# 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';
|
|
|
|
}
|
2010-05-05 17:26:43 +02:00
|
|
|
}
|