Reputation
5,415
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
17 34
Newest
 Good Answer
Impact
~267k people reached

May
24
awarded  Good Answer
May
11
answered How to append to the same variable with augeas run via puppet?
May
2
comment how to remove a package which post-installation and pre-removal script fails?
Using your favorite editor and sudo
Mar
2
awarded  Enlightened
Mar
2
awarded  Nice Answer
Jan
31
awarded  ubuntu
Jan
22
comment How to read/ modify freetds.conf (for ODBC) using augtool or similar in bash script?
Does print /augeas//error say something about these files?
Jan
12
answered Configuring PAM with Augeas
Dec
16
awarded  Yearling
Dec
9
comment Puppet Augeas with /etc/hosts
OP wants to manage an alias in addition to the canonical name. This makes it harder to ensure idempotence, lest you end up grep for regexps in your unless statement. Generally speaking, it's better practice to rely on existing resource ruby types, that manage edge cases better (and are actually thoroughly tested for them).
Dec
9
comment Puppet Augeas with /etc/hosts
exec resources should be avoided at all cost, because there is no garantee of idempotence. They should only be used if you have no other choice (e.g. apt-get update). If anything, use file_line before you get to this extreme.
Dec
8
answered Puppet Augeas with /etc/hosts
Nov
6
comment How can I use Puppet to Enforce Local Group Membership?
@AaronCopley It shouldn't be slow, unless you're using Puppet < 2.7.19. As for parametrization, I'd encourage you to make a defined resource type around the augeas resource.
Nov
4
comment How can I use Puppet to Enforce Local Group Membership?
The manages_members feature is not available for the groupadd provider. You're supposed to set this in the user type using the groups attribute, which is what OP is trying to avoid here.
Oct
16
awarded  Popular Question
Oct
9
awarded  Popular Question
Oct
2
awarded  Nice Answer
Aug
4
comment Changing the mysql bind-address within a script
The sed approach will only work if the entry already exists, since sections matters in the inifile. The Augeas approach will work regardless, because it will place the entry in the right position.
Jul
31
comment How can I use Augeas to manage the `!includedir` directive for MySQL?
Answer accepted but not +1?
Jul
31
answered How can I use Augeas to manage the `!includedir` directive for MySQL?