summaryrefslogtreecommitdiff
path: root/puppet/modules/common/manifests/moduledir.pp
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-07-12 16:45:36 -0400
committerMicah <micah@leap.se>2016-07-12 16:45:36 -0400
commit6083b23278927189de58c11bbb5bc7d93ccced24 (patch)
treece771fbca93d6f798a6962b3b2a187078c978554 /puppet/modules/common/manifests/moduledir.pp
parent1f231f09a9b6911b2ca57ac82235c6028922d54f (diff)
git subrepo clone https://leap.se/git/puppet_common puppet/modules/common
subrepo: subdir: "puppet/modules/common" merged: "ae14962" upstream: origin: "https://leap.se/git/puppet_common" branch: "master" commit: "ae14962" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo" commit: "1e79595" Change-Id: I82a15d5ab5c4e8f689f73de4e5ae97557f39b6fb
Diffstat (limited to 'puppet/modules/common/manifests/moduledir.pp')
-rw-r--r--puppet/modules/common/manifests/moduledir.pp18
1 files changed, 18 insertions, 0 deletions
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';
+ }
+}