Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / openshift_config.aug
1 (*
2 Module: OpenShift_Config
3   Parses
4     - /etc/openshift/broker.conf
5     - /etc/openshift/broker-dev.conf
6     - /etc/openshift/console.conf
7     - /etc/openshift/console-dev.conf
8     - /etc/openshift/node.conf
9     - /etc/openshift/plugins.d/*.conf
10
11 Author: Brian Redbeard <redbeard@dead-city.org>
12
13 About: License
14    This file is licenced under the LGPL v2+, conforming to the other components
15    of Augeas.
16
17 About: Lens Usage
18   Sample usage of this lens in augtool:
19
20     * Get your current setup
21       > print /files/etc/openshift
22       ...
23
24     * Change OpenShift domain
25       > set /files/etc/openshift/broker.conf/CLOUD_DOMAIN ose.example.com
26
27   Saving your file:
28
29       > save
30
31 About: Configuration files
32         /etc/openshift/broker.conf - Configuration file for an OpenShift Broker
33             running in production mode.
34         /etc/openshift/broker-dev.conf - Configuration file for an OpenShift
35             Broker running in development mode.
36         /etc/openshift/console.conf - Configuration file for an OpenShift
37             console running in production mode.
38         /etc/openshift/console-dev.conf - Configuration file for an OpenShift
39             console running in development mode.
40         /etc/openshift/node.conf - Configuration file for an OpenShift node
41         /etc/openshift/plugins.d/*.conf - Configuration files for OpenShift
42             plugins (i.e. mcollective configuration, remote auth, dns updates)
43
44 About: Examples
45    The <Test_OpenShift_Config> file contains various examples and tests.
46 *)
47 module OpenShift_Config =
48     autoload xfm
49
50 (* Variable: blank_val *)
51 let blank_val = del /["']{2}/ "\"\""
52
53 (* View: primary_entry *)
54 let primary_entry = Build.key_value_line Rx.word Sep.equal Quote.any_opt
55
56 (* View: empty_entry *)
57 let empty_entry = Build.key_value_line Rx.word Sep.equal blank_val
58
59 (* View: lns *)
60 let lns = (Util.empty | Util.comment | primary_entry | empty_entry )*
61
62 (* Variable: filter *)
63 let filter = incl "/etc/openshift/broker.conf"
64             . incl "/etc/openshift/broker-dev.conf"
65             . incl "/etc/openshift/console.conf"
66             . incl "/etc/openshift/resource_limits.conf"
67             . incl "/etc/openshift/console-dev.conf"
68             . incl "/etc/openshift/node.conf"
69             . incl "/etc/openshift/plugins.d/*.conf"
70             . incl "/var/www/openshift/broker/conf/broker.conf"
71             . incl "/var/www/openshift/broker/conf/plugins.d/*.conf"
72             . Util.stdexcl
73
74 let xfm = transform lns filter
75 (* vim: set ts=4  expandtab  sw=4: *)