From b6654dd316f9cd4f6a6673a89cdd48cc1b38b82a Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Fri, 30 Dec 2011 09:53:08 -0500 Subject: updated docs --- doc/server/plugins/generators/rules.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/server/plugins/generators/rules.txt b/doc/server/plugins/generators/rules.txt index 925ee6419..439bc0281 100644 --- a/doc/server/plugins/generators/rules.txt +++ b/doc/server/plugins/generators/rules.txt @@ -354,8 +354,18 @@ how to assign Rules to a host's literal configuration. Using Regular Expressions in Rules ================================== -The ``name`` attribute in Rules supports the use of regular -expressions to match multiple abstract configuration entries. +If you wish, you can configure the Rules plugin to support regular +expressions. This entails a small performance and memory usage +penalty. To do so, create a file, "Rules/rules.conf", and add the +following text:: + + [rules] + regex = yes + +You will have to restart the Bcfg2 server after making that change. + +With regular expressions enabled, you can use a regex in the ``name`` +attribute to match multiple abstract configuration entries. Regular expressions are anchored at both ends, so ```` will *not* match a Service named ``bcfg2-server``; -- cgit v1.2.3-1-g7c22