Good point, the servers are identified with two digit numbers, so the regex should match two digit numbers only - thanks.
- Erlend On 21 April 2010 07:22, Сева Глущенко <seva.glusche...@gmail.com> wrote: > Hello Erlend, > > It seems like you've got the best way already. You may just narrow > regexp a bit, e.g. > > classes: > "svxx" expression => classmatch("sv\d\d"); > > 2010/4/21 Erlend Leganger <erlend.legan...@gmail.com>: >> I have some servers named sv01, sv02, sv03, ... which I need a class >> for in cf3 community 3.0.2. I have come up with this: >> >> classes: >> "svxx" and =>{classmatch("sv.."),any}; >> >> so that I later can do for example: >> >> files: >> svxx:: >> "/etc/passwd" >> handle=>"update_passwd", >> ... >> >> I don't remember how I came up with this construct (probably by trial >> and error until it clicked) - it looks kind of convoluted. >> >> What is the best way to do this? >> >> - Erlend >> _______________________________________________ >> Help-cfengine mailing list >> Help-cfengine@cfengine.org >> https://cfengine.org/mailman/listinfo/help-cfengine >> > > > > -- > SY, Seva Gluschenko. > _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine