# Sysctl

Parses /etc/sysctl.conf and /etc/sysctl.d/*

Author: David Lutterkort lut.nosp@m.ter@redha.nosp@m.t.com

Summary

Sysctl | Parses /etc/sysctl.conf and /etc/sysctl.d/*
Reference |
License | This file is licenced under the LGPL v2+, like the rest of Augeas.
Lens Usage | To be documented
Configuration files | This lens applies to /etc/sysctl.conf and /etc/sysctl.d/*.
Examples | The Test_Sysctl file contains various examples and tests.
Augeas Variables |
filter |
Augeas Lenses |
comment |
entry | basically a Simplevars.entry but key has to allow some special chars as ‘*’
lns | The sysctl lens

### Reference

### License

This file is licenced under the LGPL v2+, like the rest of Augeas.

### Lens Usage

To be documented

### Configuration files

This lens applies to /etc/sysctl.conf and /etc/sysctl.d/*. See filter.

### Examples

The Test_Sysctl file contains various examples and tests.

### Augeas Variables

### filter

### Augeas Lenses

### comment

> let comment = Util.comment_generic /[ \t]*[#;][ \t]*/ "# "

### entry

> let entry = let some_value = Sep.space_equal . store Simplevars.to_comment_re

basically a Simplevars.entry but key has to allow some special chars as ‘*’

### lns

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

The sysctl lens

Provides unit tests and examples for the Sysctl lens.

> let comment = Util.comment_generic /[ \t]*[#;][ \t]*/ "# "

> let entry = let some_value = Sep.space_equal . store Simplevars.to_comment_re

basically a Simplevars.entry but key has to allow some special chars as ‘*’

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

The sysctl lens
Close