diff options
author | Micah <micah@leap.se> | 2016-07-12 16:46:07 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-07-12 16:46:07 -0400 |
commit | 95374aacb857ed35c2fdfe6be7c0bfab86653963 (patch) | |
tree | 572645f7b8da9680d499f4380dcbab7e69575b69 /puppet/modules/augeas/manifests/files.pp | |
parent | 4a11e48e397f1a7eb4c68a1dd1f9e3c5a11352f8 (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"
commit: "1e79595"
Change-Id: Ifa5c7daf3f1be1793c42f873a267b7498f5c6c0f
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', + } +} |