forked from cloudsmith/wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store augeas lenses independently of augeas installation
- Loading branch information
mruzicka
committed
Mar 9, 2012
1 parent
683d561
commit e7dbd10
Showing
4 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
class augeas { | ||
package { 'augeas-libs': | ||
ensure => latest, | ||
$lens_dir = '/var/lib/augeas' | ||
|
||
file { "${lens_dir}": | ||
ensure => directory, | ||
owner => root, | ||
group => root, | ||
mode => 0755, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
define augeas::lens($source) { | ||
file { "/usr/share/augeas/lenses/${name}.aug": | ||
include augeas | ||
|
||
file { "${augeas::lens_dir}/${name}.aug": | ||
ensure => present, | ||
source => "${source}", | ||
owner => root, | ||
group => root, | ||
mode => 0644, | ||
require => Package['augeas-libs'], | ||
require => File["${augeas::lens_dir}"], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters