Displaying 20 results from an estimated 5000 matches similar to: "augeas"
2013 Oct 25
1
replace a value in file
Hi
I would lie replace a value in my config file
/etc/default/fusioninventory-agent
MODE = daemon
and i would like replace cron by daemon
My manifest is this but is not good, can you have an idea? I think it s
Simplevers.lns is not good..
augeas { ''fusioninventory mode'':
lens => ''Simplevars.lns'',
incl =>
2012 Aug 28
4
using puppet augeas to add entry in /etc/syslog.conf
Hi ,
I"m trying to add a entry in /etc/syslog.conf using puppet augeas like
this " *.warning;mail.none;authpriv.none;cron.none
@syslog_host" ,
seems the way to do this with augeas is :
augeas { "syslog_conf":
lens => "syslog.lns",
incl => "/etc/syslog.conf",
2012 Jan 22
5
Augeas lens for zabbix agent config files?
Hi all,
I''m trying to come up with a lens for the zabbix agent config files. I
find the lens language untransparent at best, so I''m struggeling to
figure out what''s up. The debugging possibilities are extremely
limited. Here''s what I have now:
zabbix.aug:
====
(**
An adjusted copy of the postfix_main module
**)
module Zabbix_agent =
autoload xfm
2014 Oct 24
1
[PATCH v3] daemon: Remove custom Augeas lenses.
v3:
- Don't remove the LVM transform.
2014 Oct 24
1
[PATCH v2] daemon: Remove custom Augeas lenses.
v2 of previous patch, which fixes some missing bits.
For now I'm going to go with Pino's RHEL 7.1 patch, since it
is at least smaller than this. So I'm sending this to the list
just to have it archived for later.
Rich.
2012 Jul 31
4
Long processing time using Augeas
Hi!
I using Augeas to handle dump and passno for certain mount points in
/etc/fstab. Each mount point is defined as it''s own augeas block:
augeas { ''homeLV'':
context =>
''/files/etc/fstab'',
changes => [
2016 Nov 10
5
[PATCH v5 0/3] v2v and augeas
Augeas 1.7.0 was released a couple of days ago. By encouraging
everyone to upgrade to this we can drop several calls to aug_transform
and also our custom copies of two lenses, and a lot of related code.
Rich.
2019 May 29
4
[PATCH 0/3] Simple augeas-related changes
- bump the augeas requirement to 1.2.0, and drop an old hack
- add a small helper in the generator
Pino Toscano (3):
build: raise augeas requirement to 1.2.0
appliance: remove custom Shadow augeas lens
daemon: implement OptString for OCaml APIs
appliance/Makefile.am | 6 +--
appliance/guestfs_shadow.aug | 72 ------------------------------------
daemon/augeas.c | 21
2013 Oct 04
3
Converting augeas snippet to puppet augeas resource
(apologies in advance for the line wrap)
I have the following tidbit of augeas code, which inserts a rule into
/etc/sysconfig/iptables as the first rule of a specifically named chain;
# augtool> insert append before
"/files/etc/sysconfig/iptables/table/append[. = ''Mayo-Firewall-INPUT''][1]"
# augtool> match /files/etc/sysconfig/iptables/table/append[. =
2013 Nov 01
2
Augeas JSON example?
Greetings.
I''m trying to find a few concrete examples of how to use augeas within a Puppet module, to make changes to a JSON file. I''ve been googling for the past hour and a half, and while I have found several pages which provide reference-type documentation, I have yet to see a single usable example. All of the augeas examples seem to demonstrate how to maintain a file for
2014 Sep 04
10
[PATCH 0/5] use augeas for /etc/shadow
Hi,
currently /etc/shadow is edited manually when needed (i.e. when setting
the password for an user), and it is not changed when removing users.
Import the upstream shadow.aug (currently in their development serie,
but not part of any released version yet), and use it only when the
augeas version is less than a potential 1.2.1 (covering also the case
when the new version is just 1.3.0).
Pino
2011 Jun 30
6
puppet autosign by VLAN IP
Hi,
Can puppet autosign work by giving vlan IP instead of domain?
For example, in the autosign.conf file, instead of using
*.mydomain.org, I want to give 172.18.133.*
But it does not seem to work if I give the IP address. But I don''t
want to limit the client from *.mydomain.org by only allow certain
vlan client not all the are in the same domain.
Thanks,
-Haiyan
--
You received this
2014 Oct 24
2
[PATCH] daemon: Remove custom Augeas lenses.
Don't carry around Augeas lenses. It is fragile, since if the lens is
added to upstream Augeas but the version number has not changed, then
Augeas won't parse the target file at all. This specifically causes
password adjustments to fail in RHEL 7.1.
In future, if we need an Augeas lens, it must be added to Augeas,
either upstream or as a downstream patch carried around by distros.
---
2013 Jan 07
3
How manage xml elements as resources?
I would like to use puppet classes to inject and/or replace xml elements
into an existing xml configuration file. This seems to me to be a common
problem already solved. Can anyone suggest the easiest way to do this?
An example use case would look like something like this.
Given xml file:
<host>
<server name="one"/>
<server name="two"/>
2016 Nov 03
1
Transform and "Lenses xx and xx could be used to load this file"
Hi David,
We have a general problem using Augeas in libguestfs and I wonder
if you have any advice.
The problem is that we often -- as with yesterday's patch -- add new
config file paths to lenses. Or we want to parse config files which
are not necessarily in the exact paths that Augeas is expecting.
Now it's easy enough to parse such files using an arbitrary lens by
calling
2014 Aug 26
6
[PATCH 0/3] fix setting lvm filter with newer lvm2
Hi,
newer lvm2 releases don't have have uncommented "filter" lines, so the
current way to edit lvm.conf doesn't work anymore.
Instead, switch to augeas (with a "custom" len) for a cleaner and
working way to set the lvm filter.
Pino Toscano (3):
daemon: add add_sprintf
daemon: move AUGEAS_ERROR to the common header
daemon: lvm-filter: use augeas for setting the
2010 Jun 30
3
[PATCH 1/2] Add new augeas directory with grub device.map lens
Add a directory to contain required augeas lenses which aren't yet upstream.
Include a new lens for grub's device.map.
---
augeas/README.txt | 4 ++++
augeas/device_map.aug | 28 ++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 0 deletions(-)
create mode 100644 augeas/README.txt
create mode 100644 augeas/device_map.aug
diff --git a/augeas/README.txt
2010 May 14
1
[PATCH] Rely on new augeas lens for modules.conf and conf.modules
We were previously forcing the augeas Modprobe lens to match modules.conf and
conf.modules. It turns out that the contents of these files are quite different
to modprobe.conf, requiring a new lens.
This change keeps the logic which looks for where modules should go, but doesn't
update the augeas configuration. If there is no augeas lens for
/etc/modules.conf, any attempt to parse or modify it
2014 Sep 22
2
Re: [PATCH] daemon: augeas: filter out AUG_NO_STDINC from aug-init (RHBZ#1144927)
On Monday 22 September 2014 13:50:18 Richard W.M. Jones wrote:
> On Mon, Sep 22, 2014 at 10:49:42AM +0200, Pino Toscano wrote:
> > The lenses in our custom path need the system lens for base
> > definitions. Disabling the system path was worthless anyway, since
> > our API does not allow user-specified custom paths.
> >
> > The only possible use for AUG_NO_STDINC
2009 Jul 31
6
Augeas and grub.conf
Having just spent about 2 hours trying to work out how to add a
password --md5 $1$Qejy8/$.qFUuDeYL.cuSDpN1ZD.S1
line to my grub.conf I thought it would be worth sharing how I finally
got it to work.
augeas {"/boot/grub/grub.conf":
context => "/files/boot/grub/grub.conf",
changes => [ "set timeout 15",