diff options
Diffstat (limited to 'puppet/modules/common/manifests/moduledir.pp')
m--------- | puppet/modules/common | 0 | ||||
-rw-r--r-- | puppet/modules/common/manifests/moduledir.pp | 18 |
2 files changed, 18 insertions, 0 deletions
diff --git a/puppet/modules/common b/puppet/modules/common deleted file mode 160000 -Subproject ae149624f9bc551865b93b9b7155af2de8deeb7 diff --git a/puppet/modules/common/manifests/moduledir.pp b/puppet/modules/common/manifests/moduledir.pp new file mode 100644 index 00000000..f779085b --- /dev/null +++ b/puppet/modules/common/manifests/moduledir.pp @@ -0,0 +1,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'; + } +} |