aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-11-19 00:57:58 +0000
committerMichael Scherer <misc@mageia.org>2010-11-19 00:57:58 +0000
commite4ef50d39879a0a939daac20bae2cd8e6cf6d669 (patch)
treecaefb17cdb6b025e4a4974baa92e7ee6b3042342
parentda13e45252f947ff3444e93070ccd2465e4fa993 (diff)
downloadpuppet-e4ef50d39879a0a939daac20bae2cd8e6cf6d669.tar
puppet-e4ef50d39879a0a939daac20bae2cd8e6cf6d669.tar.gz
puppet-e4ef50d39879a0a939daac20bae2cd8e6cf6d669.tar.bz2
puppet-e4ef50d39879a0a939daac20bae2cd8e6cf6d669.tar.xz
puppet-e4ef50d39879a0a939daac20bae2cd8e6cf6d669.zip
- fix regexp escaping
-rw-r--r--modules/subversion/manifests/init.pp17
1 files changed, 16 insertions, 1 deletions
diff --git a/modules/subversion/manifests/init.pp b/modules/subversion/manifests/init.pp
index f11ef087..187e8f98 100644
--- a/modules/subversion/manifests/init.pp
+++ b/modules/subversion/manifests/init.pp
@@ -59,9 +59,24 @@ class subversion {
# - openldap , like named
syntax_check{"check_perl":
- regexp_ext => ".p[lm]$",
+ regexp_ext => "\.p[lm]$",
check_cmd => "perl -c"
}
+
+ syntax_check{"check_puppet":
+ regexp_ext => "\.pp$",
+ check_cmd => "puppet --color=false --confdir=/tmp --vardir=/tmp --parseonly"
+ }
+
+ syntax_check{"check_ruby":
+ regexp_ext => "\.rb$",
+ check_cmd => "ruby -c"
+ }
+
+ syntax_check{"check_puppet_templates":
+ regexp_ext => "modules/.*/templates/.*$",
+ check_cmd => "erb -x -T - | ruby -c"
+ }
}
# TODO