I did encounter this problem using the sunfreeware.com packages. The problem
was resolved by _not_ using the 8.x pcre package (ie the one you are using) and
use the 7.9 version of it instead.
RCA
--
UNIX Administrator, BAE Systems ETS
desk 763-572-6684 mobile 612-419-9362
-Original Messag
This code works very well for a single line, ie:
edit_line => del_insert_str("10.1.1.4 myserver", "10\.1\.1\.4.*");
How might one add multiple host lines? I unsuccessfully tried giving multiple
edit_line statements, eg, the line above, plus:
Edit_line => del_insert_str("10.1.1.5 otherserver", "10
My current cf2 implementation updates /etc/hosts, and the syntax it uses
deletes lines that don't match exactly. I'm having a hard time converting this
cf2 logic to cf3:
editfiles:
sunos_5_10::
{ /etc/hosts
BeginGroupIfNoSuchLine "10.1.1.4 myserver"
Delet
I was able to suppress the module output with:
Add 'contain => mod_output' in the bundle where the 'commands' module is, plus
this:
body contain mod_output {
no_output => "true";
}
RCA
--
UNIX Administrator, BAE Systems EIT
desk 763-572-6684 mobile 612-419-9362
-Original Message-
August 05, 2010 4:24 PM
To: Anderson, Ryan C (US SSA)
Cc: help-cfengine@cfengine.org
Subject: Re: Odd output from cf3 module
Looks like your module generates some output. Select no output when running the
script? See contain options
Mark
On 5 Aug 2010, at 22:58, "Anderson, Ryan
My cf3 module on 3.0.4 finds what type of video card is present and is executed
thusly:
bundle agent my_modules {
commands:
redhat::
"/var/cfengine/modules/rhvideo"
module => "true";
}
It works, as you can see from the log:
cf3 -> Executing '/var/cfengine/modules/rhvideo'
How can I suppress this email'd warning every time a client copies a SETGID
binary?:
!! NEW SETGID root PROGRAM /opt/local/bin/lsof
I: Made in version '1.16' of '/var/cfengine/inputs/copy.cf' near line 37
I tried 'inform => false' in my copy_from body and got this warning:
cf3:/var/cfengine/inpu
To save others the time I spent getting statically-linked cfengine 3 binaries
on Solaris & Linux, I'm putting my instructions here. I did this against
cfengine 3.0.4. On Solaris, I used sunfreeware.com packages for dependencies.
Doing this, I was able to compile binaries once on RHEL 3 i386, and
This is exactly what I was looking for, thanks. Very clever.
RCA
--
UNIX Administrator, BAE Systems EIT
desk 763-572-6684 mobile 612-419-9362
-Original Message-
From: Justin Lloyd [mailto:jll...@digitalglobe.com]
Sent: Tuesday, May 04, 2010 10:37 AM
To: Anderson, Ryan C (US SSA); help
How are any of you self-defining Solaris 10 zones as classes in cf3? In my
cfengine2 installation, I made a module, but am not sure if there is a better
way in cf3. Might this be added into cf3 itself as a hard class?
RCA
--
UNIX Administrator, BAE Systems EIT
desk 763-572-6684 mobile 612-419-
I have a cfengine2 config I'm converting to cfengine3, but can't find how to
read in a file as I've done previously. Here's my cf2 config that reads in a
shadow-formatted file, and updates the local /etc/shadow based on it:
editfiles:
(solaris|solarisx86|linux)::
{ /etc/shadow
11 matches
Mail list logo