# OpenShift_Config

Parses

- /etc/openshift/broker.conf
- /etc/openshift/broker-dev.conf
- /etc/openshift/console.conf
- /etc/openshift/console-dev.conf
- /etc/openshift/node.conf
- /etc/openshift/plugins.d/*.conf

Author: Brian Redbeard redb.nosp@m.eard@dead-c.nosp@m.ity.org

Summary

OpenShift_Config | Parses
License | This file is licenced under the LGPL v2+, conforming to the other components of Augeas.
Lens Usage |
Configuration files |
Examples | The Test_OpenShift_Config file contains various examples and tests.
Augeas Variables |
blank_val |
Augeas Lenses |
primary_entry |
empty_entry |
lns |
Augeas Variables |
filter |

### License

This file is licenced under the LGPL v2+, conforming to the other components of Augeas.

### Lens Usage

#### Sample usage of this lens in augtool

- Get your current setup

>     print /files/etc/openshift

...

- Change OpenShift domain

>     set /files/etc/openshift/broker.conf/CLOUD_DOMAIN ose.example.com

#### Saving your file

>     save

### Configuration files

/etc/openshift/broker.conf | Configuration file for an OpenShift Broker running in production mode.
/etc/openshift/broker-dev.conf | Configuration file for an OpenShift Broker running in development mode.
/etc/openshift/console.conf | Configuration file for an OpenShift console running in production mode.
/etc/openshift/console-dev.conf | Configuration file for an OpenShift console running in development mode.
/etc/openshift/node.conf | Configuration file for an OpenShift node
/etc/openshift/plugins.d/*.conf | Configuration files for OpenShift plugins (i.e. mcollective configuration, remote auth, dns updates)

### Examples

The Test_OpenShift_Config file contains various examples and tests.

### Augeas Variables

### blank_val

> let blank_val = del /["']{2}/ "\"\""

### Augeas Lenses

### primary_entry

> let primary_entry = Build.key_value_line Rx.word Sep.equal Quote.any_opt

### empty_entry

> let empty_entry = Build.key_value_line Rx.word Sep.equal blank_val

### lns

> let lns = (Util.empty | Util.comment | primary_entry | empty_entry )*

### Augeas Variables

### filter

Provides unit tests and examples for the OpenShift_Config lens.

> let blank_val = del /["']{2}/ "\"\""

> let primary_entry = Build.key_value_line Rx.word Sep.equal Quote.any_opt

> let empty_entry = Build.key_value_line Rx.word Sep.equal blank_val

> let lns = (Util.empty | Util.comment | primary_entry | empty_entry )*

Close