diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-01-13 08:09:22 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-01-13 08:09:22 -0500 |
commit | 238f6446d09ca8e3b7a082876920922ee1eda4d2 (patch) | |
tree | 7a59ba455180c9950631334180af64ba68eeadee /doc | |
parent | 8c9b825595174455242b3b2f6ca96ddcbdcfff2e (diff) | |
parent | b6654dd316f9cd4f6a6673a89cdd48cc1b38b82a (diff) | |
download | bcfg2-238f6446d09ca8e3b7a082876920922ee1eda4d2.tar.gz bcfg2-238f6446d09ca8e3b7a082876920922ee1eda4d2.tar.bz2 bcfg2-238f6446d09ca8e3b7a082876920922ee1eda4d2.zip |
merged branch rules_regex
Diffstat (limited to 'doc')
-rw-r--r-- | doc/server/plugins/generators/rules.txt | 14 |
1 files 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 ``<Service name="bcfg2".../>`` will *not* match a Service named ``bcfg2-server``; |