diff options
author | Micah <micah@leap.se> | 2016-05-24 10:19:25 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-05-24 10:19:25 -0400 |
commit | c54fc2c945c06511449b2daefee13cbd9b0232d8 (patch) | |
tree | a066c509e93ddd5b63ad3cc13dcec4bf32453df9 /manifests/moduledir.pp |
Squashed 'puppet/modules/common/' content from commit ae14962
git-subtree-dir: puppet/modules/common
git-subtree-split: ae149624f9bc551865b93b9b7155af2de8deeb71
Diffstat (limited to 'manifests/moduledir.pp')
-rw-r--r-- | manifests/moduledir.pp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/moduledir.pp b/manifests/moduledir.pp new file mode 100644 index 00000000..f779085b --- /dev/null +++ b/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'; + } +} |