Permalink
Browse files

Use augeas::lens to distribution subversion.aug

  • Loading branch information...
1 parent dfd3a01 commit cf1b43ba1c04ab51d73e064f18dbf451fc93d147 @raphink committed Aug 7, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 manifests/base.pp
View
@@ -9,16 +9,16 @@
require => Package['subversion'],
}
- file { "/usr/share/augeas/lenses/contrib/subversion.aug":
+ augeas::lens {'subversion':
ensure => present,
- source => "puppet:///modules/subversion/subversion.aug",
+ lens_source => 'puppet:///modules/subversion/subversion.aug',
}
# only recent version of svn support the "store-password" option.
augeas { "avoid svn password saving":
load_path => "/usr/share/augeas/lenses/contrib/",
context => "/files/etc/subversion/config/auth/",
- require => [File["/usr/share/augeas/lenses/contrib/subversion.aug"], File["/etc/subversion"]],
+ require => [Augeas::Lens['subversion'], File["/etc/subversion"]],
changes => $lsbdistcodename ? {
default => "set store-auth-creds no",
/^(Tikanga|lenny|squeeze)$/ => "set store-password no",

0 comments on commit cf1b43b

Please sign in to comment.