JettyRealm Properties for Augeas
Author: Brian Redbeard redb@dead-c ity.org eard
JettyRealm | JettyRealm Properties for Augeas |
Reference | This lens ensures that properties files for JettyRealms are properly handled by Augeas. |
License | This file is licensed under the LGPL License. |
Lens Usage | |
Configuration files | This lens applies to jetty-realm.properties files. |
Augeas Lenses | |
comma_sep | |
realm_entry | |
lns | |
Augeas Variables | |
filter |
ins user after /files/etc/activemq/jetty-realm.properties/user set /files/etc/activemq/jetty-realm.properties/user[last()]/username redbeard set /files/etc/activemq/jetty-realm.properties/user[last()]/password testing set /files/etc/activemq/jetty-realm.properties/user[last()]/realm admin
...
rm /files/etc/activemq/jetty-realm.properties/user[*][username = "sample_user"]
save
This lens applies to jetty-realm.properties files. See filter.
let comma_sep = del /,[ \t]*/ ", "
let realm_entry = [ label "user" . [ label "username" . store Rx.word ] . del /[ \t]*:[ \t]*/ ": " . [ label "password" . store Rx.word ] . [ label "realm" . comma_sep . store Rx.word ]* . Util.eol ]
let lns = ( Util.comment | Util.empty | realm_entry )*