https://github.com/rexops/rex-augeas
Augeas Module for (R)?ex - Merged into Rex Core (v1.0.0)
https://github.com/rexops/rex-augeas
Last synced: 10 months ago
JSON representation
Augeas Module for (R)?ex - Merged into Rex Core (v1.0.0)
- Host: GitHub
- URL: https://github.com/rexops/rex-augeas
- Owner: RexOps
- Created: 2011-06-23T22:34:09.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2015-01-25T11:49:45.000Z (about 11 years ago)
- Last Synced: 2025-04-01T13:22:24.336Z (11 months ago)
- Language: Perl
- Homepage:
- Size: 122 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.pod
- Changelog: ChangeLog
Awesome Lists containing this project
README
=pod
rex-augeas is a (R)?ex module to manage configuration files with libaugeas.
=head2 Dependencies
=over 4
=item L
=item L
=back
=head2 Usage
In your Rexfile use the following commands.
use Rex::Augeas;
task "example", sub {
augeas modify =>
"/files/etc/hosts/7/ipaddr" => "10.211.55.6",
"/files/etc/hosts/7/canonical" => "blah01";
augeas remove => "/files/etc/hosts/2";
augeas dump => "/files/etc/hosts";
my $val = augeas exists => "/files/etc/hosts/*/ipaddr", "127.0.0.1";
augeas insert => "/files/etc/hosts",
label => "01",
after => "/7",
ipaddr => "192.168.2.23",
canonical => "mango.linoratix.com",
alias => "mango";
};