Displaying 20 results from an estimated 3000 matches similar to: "Long processing time using Augeas"
2011 Nov 10
1
Managing /etc/fstab with puppet
Hey everyone,
I''m trying to figure out how to manage my /etc/fstab with puppet on
all my servers. Does anybody have an idea for me how to do? I tried it
with augeas but I didn''t like the results I got so far... here is what
I''ve tried:
define conf (
$id = "01",
$spec = " ",
$file = " ",
$vfstype = "
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[. =
2010 Dec 23
2
Multiple AllowGroups entries in sshd_config with Puppet and Augeas
Hi,
After extensively looking into puppet + augeas for managing the
AllowGroups in sshd_config, I came to the conclusion that it won''t
work as I expected :( So I''m sharing my thoughts here.
The main objective is allowing multiple groups per-node, depending on
what the security team wants. Since I want this to be dynamic, I
created a define in a class:
class ssh::server::config
2012 Aug 29
1
augeas and cron.allow
Hi.
I am having a few problems with augeas and need some help.
What I am trying to use is augeas to update the cron.allow file. I can get augeas to add the required name but I am having problems with getting it to add the name once.
augeas { "check_mk_cron.allow" :
context => "/files/etc/cron.allow",
# changes => "set
2009 Sep 10
2
Adding comments to config files with augeas
Hi,
I''ve got a ''define'' that I use to set kernel parameters in
/etc/sysctl.conf using the augeas type. It works well, but I''d like
to be able to add a comment line directly above my the parameter to
explain what it does and why it''s been changed. We currently just add
a comment in site.pp, but that''s not much use to local admins.
2008 Oct 08
10
Puppet Augeas Plugin
Bryan -- I''m using the puppet augeas plugin at
http://git.et.redhat.com/?p=ace.git;a=blob;f=modules/augeas/plugins/puppet/type/augeas.rb;h=2346c37d724d7607ed4e09b0413700bec2b7cbed;hb=HEAD
I''m running into a behavior that I wouldn''t expect. I''d like to confirm
an entry in sysctl.conf by changing the value if necessary or appending
the key/value if it
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
2010 Feb 18
7
Augeas pam.d argument checking
I''m trying to change the password complexity requirements in
pam.d/system-auth using augeas. I can append the values (lcredit=-1,
ucredit=-1, etc) onto the correct place, but if another value is
already present (i.e. lcredit=-2), the onlyif match statement doesn''t
seem to support checking regular expressions inside of strings. How do
I check that any numeric value exists in the
2009 Mar 02
31
Using Augeas type to update sshd_config's AllowGroups
Hey gang,
I seem to be having a brain disconnect on how to get the Augeas type to
manage things that have multiple values (i.e. an Augeas tree) via Puppet.
If I run this in augtool:
augtool> set /files/etc/ssh/sshd_config/AllowGroups/1000 sshuser
augtool> save
I see this in /etc/ssh/sshd_config:
AllowGroups sshuser
However, if I try this in an Augeas type:
augeas {
2011 Mar 31
5
manage /etc/passwd and /etc/group
Hi again,
I am trying to add the following to my /etc/passwd and /etc/group
files
+:::::
and
+:::
this is for ldap search on the servers.
I am note quite sure on howto do this, I tryed with the following code
augeas{
"groups ldap":
context => "/files/etc/group",
changes => [
2010 Jun 30
7
augeas and sudo woes
The following function is based on code I found here in an earlier
thread.
define sudoer() {
augeas { "sudo${name}":
context => "/files/etc/sudoers",
changes => [
"set spec[last() + 1]/user ${name}",
"set spec[last()]/host_group/host ALL",
"set spec[last()]/host_group/command NOPASSWD: ALL",
"set
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
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",
2013 May 29
1
augeas for hosts.allow
Hi
I am trying to configure hosts.allow using augeas with puppet. I can add a
ip range if process exists with this code
augeas { "Add ${name} to ${process}":
context => "/files/etc/hosts.allow",
changes => "set *[process=''${process}'']/client[last()+1] ${name}",
onlyif => "match
2013 Nov 06
4
augeas onlyif problem
I''m trying to make sure a specific user has a special ssh key used as his
identity file.
so I''m trying something like:
augeas{"user_second_key":
context => "/files/home/user/.ssh/config",
changes => [ "ins IdentityFile after
/files/home/user/.ssh/config/IdentityFile[last()]",
" set
2010 Oct 06
3
Using Augeas to manage /etc/network/interfaces from Puppet
Hi,
Sorry for the broad distribution, I''m not sure who best can help me.
I''m trying to add a new interface stanza to /etc/network/interfaces.
With augtool, I can accomplish this with the following:
set /files/etc/network/interfaces/iface[last()+1] bond1
set /files/etc/network/interfaces/iface[last()]/family inet
set /files/etc/network/interfaces/iface[last()]/method dhcp
set
2010 Feb 22
6
Augeas type: Removing an entry from /etc/hosts
Hi all,
I''m just starting to look at using Augeas with Puppet to manage some of
our configuration files. I thought I would start with a simple task of
removing an entry from the /etc/hosts file. I''m not finding it simple
though!
We have a number of hosts with entries in the /etc/hosts file like this:
127.0.1.1 hostname
We would like to remove these lines. Now I know this can
2012 Sep 24
7
augeas only add if doesn't exist
Hello,
I''m trying to add an entry to /etc/hosts.allow only if the entry for
''client'' (daemon) does not already exit.
In this #puppet log:
http://www.puppetlogs.com/puppet/%23puppet-2012-05-03.log.html
rodjek links a gist which should do exactly that:
https://gist.github.com/18c50d8800840696bac0
But I can''t get it to execute with augtool:
augtool> set
2010 Sep 06
6
augeas and /etc/securetty
Hi, I need to add one line to /etc/securetty, say it needs to be ttyS1. Do
not add it if ttyS1 already exists in file /etc/securetty.
How to achieve this using puppet module in puppet 2.5? This file is
different than the other examples using augeas, this one only has value per
line, not name-val pair.
Thanks,
Hai
--
You received this message because you are subscribed to the Google Groups
2011 Nov 04
1
Default sysctl.conf with augeas.
I have a tricky problem. I''m going to use Augeas, like here
http://projects.puppetlabs.com/projects/1/wiki/Puppet_Augeas#/etc/sysctl.conf
to maintain sysctl.conf. However, since iptables is already disabled,
when I add more lines to sysctl.conf with augeas and run sysctl -p,
the following lines (which are already there) cause a failure.
# Disable netfilter on bridges.