augeas
: Class: augeas Install and configure Augeas Parameters: ['lens_dir'] - the lens directory to use ['purge'] - whether to purgeaugeas::files
: Class: augeas::files Sets up directories and files for Augeas
augeas::lens
: Definition: augeas::lens Deploy an Augeas lens (and its test file). Check the lens (and run the unit tests) automatically and remove the fil
augeas
: Modifies a string using Augeas.augeas::lens_dir
: function to return augeas lens directory
Class: augeas
Install and configure Augeas
Parameters: ['lens_dir'] - the lens directory to use ['purge'] - whether to purge lens directories
The following parameters are available in the augeas
class:
Data type: Stdlib::Absolutepath
Data type: Stdlib::Absolutepath
Data type: String
Default value: 'root'
Data type: String
Default value: 'root'
Data type: Optional[Stdlib::Absolutepath]
Default value: undef
Data type: Boolean
Default value: true
Class: augeas::files
Sets up directories and files for Augeas
Definition: augeas::lens
Deploy an Augeas lens (and its test file). Check the lens (and run the unit tests) automatically and remove the files if the checks fail.
Parameters: ['ensure'] - present/absent ['lens_content'] - the content of the lens ['lens_source'] - the source for the lens ['test_content'] - optionally, the content of the test ['test_source'] - optionally, the source for the test file. ['stock_since'] - optionally, indicate in which version of Augeas the lens became stock, so it will not be deployed above that version.
Example usage:
augeas::lens { 'networkmanager': lens_content => file('networkmanager/lenses/networkmanager.aug'), test_content => file('networkmanager/lenses/test_networkmanager.aug'), stock_since => '1.0.0', }
The following parameters are available in the augeas::lens
defined type:
Data type: Any
Default value: present
Data type: Any
Default value: undef
Data type: Any
Default value: undef
Data type: Any
Default value: undef
Data type: Any
Default value: undef
Data type: Any
Default value: false
Type: Ruby 4.x API
Example:
augeas("proc /proc proc nodev,noexec,nosuid 0 0 ", 'Fstab.lns', ['rm ./1/opt[3]'])
Would result in:
"proc /proc proc nodev,noexec 0 0 "
Example:
augeas("proc /proc proc nodev,noexec,nosuid 0 0 ", 'Fstab.lns', ['rm ./1/opt[3]'])
Would result in:
"proc /proc proc nodev,noexec 0 0 "
Returns: String
The resulting string.
Data type: String
The string to modify.
Data type: String
The lens to use for parsing.
Data type: Array[String]
An array of changes to apply to the string.
Type: Puppet Language
function to return augeas lens directory
The augeas::lens_dir function.
Returns: String