Permalink
Browse files

file renaming to be compliant with recommended module structure.

  • Loading branch information...
1 parent a9b7ae8 commit c47ebeff8c52eeb1e58fd5839fa41a8460d14bae @mfournier mfournier committed Nov 15, 2011
Showing with 14 additions and 16 deletions.
  1. +9 −0 manifests/augeas.pp
  2. +5 −0 manifests/config.pp
  3. +0 −16 manifests/init.pp
View
@@ -0,0 +1,9 @@
+define haproxy::augeas ($changes, $onlyif = undef) {
+ augeas {"haproxy.${name}":
+ context => "/files/etc/haproxy/haproxy.cfg",
+ changes => $changes,
+ onlyif => $onlyif,
+ load_path => "/etc/haproxy",
+ notify => Service["haproxy"],
+ }
+}
View
@@ -0,0 +1,5 @@
+define haproxy::config ($ensure) {
+ haproxy::augeas {$name:
+ changes => "set '${name}' '${ensure}'",
+ }
+}
View
@@ -47,19 +47,3 @@
require => File["haproxy_default"],
}
}
-
-define haproxy::augeas ($changes, $onlyif = undef) {
- augeas {"haproxy.${name}":
- context => "/files/etc/haproxy/haproxy.cfg",
- changes => $changes,
- onlyif => $onlyif,
- load_path => "/etc/haproxy",
- notify => Service["haproxy"],
- }
-}
-
-define haproxy::config ($ensure) {
- haproxy::augeas {$name:
- changes => "set '${name}' '${ensure}'",
- }
-}

0 comments on commit c47ebef

Please sign in to comment.