Blame lenses/jmxpassword.aug
|
Packit Service |
a2ae7a |
(*
|
|
Packit Service |
a2ae7a |
Module: JMXPassword
|
|
Packit Service |
a2ae7a |
JMXPassword for Augeas
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
Author: Brian Redbeard <redbeard@dead-city.org>
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
About: Reference
|
|
Packit Service |
a2ae7a |
This lens ensures that files included in JMXPassword are properly
|
|
Packit Service |
a2ae7a |
handled by Augeas.
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
About: License
|
|
Packit Service |
a2ae7a |
This file is licensed under the LGPL License.
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
About: Lens Usage
|
|
Packit Service |
a2ae7a |
Sample usage of this lens in augtool:
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
* Create a new user
|
|
Packit Service |
a2ae7a |
> ins user after /files/etc/activemq/jmx.password
|
|
Packit Service |
a2ae7a |
> set /files/etc/activemq/jmx.password/user[last()]/username redbeard
|
|
Packit Service |
a2ae7a |
> set /files/etc/activemq/jmx.password/user[last()]/password testing
|
|
Packit Service |
a2ae7a |
...
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
* Delete the user named sample_user
|
|
Packit Service |
a2ae7a |
> rm /files/etc/activemq/jmx.password/user[*][username = "sample_user"]
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
Saving your file:
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
> save
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
About: Configuration files
|
|
Packit Service |
a2ae7a |
This lens applies to relevant conf files located in /etc/activemq/
|
|
Packit Service |
a2ae7a |
The following views correspond to the related files:
|
|
Packit Service |
a2ae7a |
* pass_entry:
|
|
Packit Service |
a2ae7a |
/etc/activemq/jmx.password
|
|
Packit Service |
a2ae7a |
See <filter>.
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
*)
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
module JMXPassword =
|
|
Packit Service |
a2ae7a |
autoload xfm
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* View: pass_entry *)
|
|
Packit Service |
a2ae7a |
let pass_entry = [ label "user" .
|
|
Packit Service |
a2ae7a |
[ label "username" . store Rx.word ] . Sep.space .
|
|
Packit Service |
a2ae7a |
[ label "password" . store Rx.no_spaces ] . Util.eol ]
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* View: lns *)
|
|
Packit Service |
a2ae7a |
let lns = ( Util.comment | Util.empty | pass_entry )*
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* Variable: filter *)
|
|
Packit Service |
a2ae7a |
let filter = incl "/etc/activemq/jmx.password"
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let xfm = transform lns filter
|