Displaying 20 results from an estimated 8000 matches similar to: "Do not edit above this line policy"
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
2013 Sep 30
2
best practice for managing multiple stanzas within a config file?
What is the best way to manage multiple stanza within a config file?
For a splunk configuration file (inputs.conf) I need to manage some thing
like
[monitor://var/log]
blacklist = someRegularExpression
whitelist = someOtherRegularExpression
[monitor://var/lib/ourApp]
There can be multiple monitor stanzas and each may or may not have a
whitelist or blacklist.
I haven''t found any
2011 Aug 25
6
manage sudoers with augeas
Hello,
I am trying to use augeas via puppet,
augeas { "mailops":
context => "/files/etc/sudoers",
changes => [
"set spec[user = ''%mail-ops'']/user %mail-ops",
"set spec[user = ''%mail-ops'']/host_group/host ALL",
"set spec[user = ''%mail-ops'']/host_group/command[1] \"/bin/su
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
2010 Nov 19
6
augeas / sudoers
Hello everybody!
How can i create with puppet following sudoers file:
User_Alias CENTREON=apache,nagios
CENTREON ALL = NOPASSWD: /etc/init.d/nagios* restart
CENTREON ALL = NOPASSWD: /etc/init.d/nagios* reload
CENTREON ALL = NOPASSWD: /usr/bin/nagios* -v *
The problem that augeas create only last line, replacing previous one.
--
You received this message because you are subscribed to
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"/>
2013 Jan 04
5
How to manage one line in a file by puppet
Hi,
I want to write a puppet module for xen on Debian. This module will need
to manage one line in the file /etc/default/grub, namely the line
starting with "GRUB_CMDLINE_XEN=". Currently I want to leave the rest of
the file untouched.
Which would be the best way to do this?
I see two options:
a) Do some `sed` magic on the file in a `exec` call. Downside: puppet
won''t notice
2013 Jan 24
2
Augeas file line edit please help
what i thought would be a simple edit using augeas is turning out to not be
so straight forward, can anyone please help ?
the plan is to edit sendmail.cf and change the default DS to
DShostname.domain
class mail {
$key = DS
service {
''sendmail'':;
}
augeas { "sendmail.cf/$key":
context =>
2010 Oct 22
2
problem w/ puppet & augeus : xinetd.d/rsync server_args value
Hello,
I would like to have the following line (among others) in my
/etc/xinetd.d/rsync file :
server_args = --daemon --address=<ipaddress_eth0>
--log-file=/var/log/rsyncd.log
To this end, i am using the camptocamp rsyncd module available from git.
Everything works except this line. I thought it was, perhaps, a
questions of spaces (this has been discussed on the list before),
2013 Mar 13
2
How to add a new line at a particular place in a file..
Hi all,
How can i write a puppet code such that..it adds a line of content that i
want..at a desired place in a file..
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=256m
-Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
2001 Nov 27
2
R/S and large datasets - Database access (also Re: SAS and S/R)
A consensus seems to emerge : R would excel to exploratory work on
small/middle-sized datasets, while SAS would be able to munch much
larger datasets.
However, I see the "size" problem as a red herring. The objects that
have to stay "in core" are usually much smaller than the dataset. For
example, for problems involving fixed-effects linear models, you need
only some
2009 Jul 28
1
Cry for Augeas grub.conf help!
All,
I''m trying to figure out the best way to use augeas to manage grub.conf.
The issue is that I want users to be able to do whatever they like but:
1) The active, running, kernel should be the default *fallback*
2) I need to be able to set the ''default'' to the last entry added
I''ve tried something like:
set default /files/etc/grub.conf/count(title)
But,
2012 Mar 22
1
This old tune again : read performance optimisations
Hi list,
I have this problem of (relatively) poor samba read performance. Read
performance is constantly, reproducibly lower than write performance
and I can't really understand why.
Here is the server configuration :
dual octocore Opteron 6128, 32 GB RAM
Adaptec 6445 RAID card
36x 2TB Hitachi SATA drives (raid 60)
Sustained local disk throughput: over 850 MB/s write, over 1.4 GB/s
read.
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
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
2003 Jan 21
4
Two diferent LAN''s...
Hi,
I''ve got a question about how to configure the shorewall, and maybe
someone could answer.
I have a PC with 3 ethernet. The eth0 connets to internet. The eth1
connects to LAN A, and the eth2 connects to LAN B. I''ve configured
the shorewall for doing NAT, and both LANs can navigate, but it seems
that from a LAN A host you can connect to a PC of LAN B, and the
other way
2009 Oct 20
2
migrate Windows Active Directory Users to Samba+LDAP
reetings,
Greetings,
Can anyone help me find out how to migrate Active Directory users to
Samba+LDAP? I have everything working: Samba+LDAP+Kerberos PDC in Debian
and I also have a Windows Active Directory in production with more than
100 users added. I just want to transfer all the AD users to de PDC in
Debian. I tried using pwdump to extract AD users but with no positive
results. Please
2009 Jul 10
6
Best practices for building a file from distributed data.
G''day.
I am wondering what the current best practice for building a single file out
of distributed fragments is with puppet. Specifically, my problem:
1. Install munin-node on arbitrary machines.
2. Install ''munin.conf'' as a single file on one machine, containing a
configuration stanza for every machine that munin-node is installed on.
The current best practice
2002 Feb 18
2
SMB mount/umount probs
I have a linux server with some jobs at cron, that job reads some files from
windows stations, i read these files via samba.
My problem is that all works perfectly until the windows station reboots (it
reboots every nite but no way to know exact time), at morning when linux
should restart the process the mounted drive is dead, i try to umount/mount
the drive from cron every morning but nothing, I
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[. =