diff options
author | varac <varacanero@zeromail.org> | 2016-06-09 17:31:48 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-06-14 12:05:18 +0200 |
commit | 8f2ffe06dda7cfd21202543abeac90142dc9b322 (patch) | |
tree | 6d83aeae81952d8b4fee8746c46a6ea8b6eeb0c9 /puppet/modules/augeas/manifests/files.pp | |
parent | 9d052b926b5cf67b8f8751af46ea5771d4422284 (diff) |
git subrepo clone https://leap.se/git/puppet_augeas puppet/modules/augeas
subrepo:
subdir: "puppet/modules/augeas"
merged: "27e3359"
upstream:
origin: "https://leap.se/git/puppet_augeas"
branch: "master"
commit: "27e3359"
git-subrepo:
version: "0.3.0"
origin: "https://github.com/ingydotnet/git-subrepo.git"
commit: "cb2995b"
Diffstat (limited to 'puppet/modules/augeas/manifests/files.pp')
-rw-r--r-- | puppet/modules/augeas/manifests/files.pp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/puppet/modules/augeas/manifests/files.pp b/puppet/modules/augeas/manifests/files.pp new file mode 100644 index 00000000..c73c19bb --- /dev/null +++ b/puppet/modules/augeas/manifests/files.pp @@ -0,0 +1,36 @@ +# Class: augeas::files +# +# Sets up directories and files for Augeas +# +class augeas::files { + $lens_dir = $augeas::lens_dir + + # ensure no file not managed by puppet ends up in there. + file { $lens_dir: + ensure => directory, + purge => $::augeas::purge, + force => true, + recurse => true, + recurselimit => 1, + mode => '0644', + owner => 'root', + group => 'root', + } + + file { "${lens_dir}/dist": + ensure => directory, + purge => false, + mode => '0644', + owner => 'root', + group => 'root', + } + + file { "${lens_dir}/tests": + ensure => directory, + purge => $::augeas::purge, + force => true, + mode => '0644', + owner => 'root', + group => 'root', + } +} |