You could probably easily port the functionality you're looking for in
using ReadTCP to netcat. Then you could either write a wrapper script that
calls netcat, or just run netcat itself, inside of a ReturnsZero or
ReturnsZeroShell function. Although you're obviating the usage of an
internal cf
Forum: Cfengine Help (Mailing list)
Subject: Re: mailing list test
Author: isaac
Link to topic: https://cfengine.com/forum/read.php?3,16556,16567#msg-16567
Please disregard again.
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengin
Ok, so that would make sense about that particular documentation quirk. I was
interpreting "parent directory" to mean the contents of the directory, not the
actual directory (i.e. directory inode).
I'm still unclear, however, on why the limited depth search is needed. I would
think that the def
Hi. Is it possible to selectively suppress error messages with cfengine 2?
For example, I have the following working config which sets a class indicating
the machine's physical location.
I deal with two locations, and each location has it's own Web proxy server.
I try to connect to both, and set
help-cfengine-boun...@cfengine.org wrote on 2010-03-18 14:09:04:
> I'm actually confused about depth_search. Here's what the documentation
> says:
>
> "When searching recursively from a directory, the parent directory is
> not part of the search. It is only the anchor point. To alter the
> parent
On Wed, Mar 17, 2010 at 12:47:23PM -0400, nwat...@symcor.com wrote:
>It would be ideal if we could have a policy that would count processes
>that match and report that number rather than reporting whether or not the
>count is within a range. We could compare that number with a command
>policy t
I'm actually confused about depth_search. Here's what the documentation
says:
"When searching recursively from a directory, the parent directory is
not part of the search. It is only the anchor point. To alter the
parent, a separate non-recursive promise should be made."
I find this wording very
Well, I added a command to do a "ps -ef " if the process count was out
of range, and it did do it. But it did not show more than one process
running:
!! Process count for 'XX' was out of promised range (2 found)
I: Comment: Verify the processes are running
Q: "...usr/bin/ps -ef ": root 2
Please ignore.
On Mar 18, 2010, at 6:02 PM, fo...@cfengine.com wrote:
> Forum: Cfengine Help (Mailing list)
> Subject: mailing list test
> Author: isaac
> Link to topic: https://cfengine.com/forum/read.php?3,16556,16556#msg-16556
>
> Please disregard.
>
> ___
Forum: Cfengine Help (Mailing list)
Subject: mailing list test
Author: isaac
Link to topic: https://cfengine.com/forum/read.php?3,16556,16556#msg-16556
Please disregard.
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mail
It looks like Nakarin's suggestion has fixed my problem. To your
question, however, I had decided when writing my original email not to
submit an example of what I'd tried in this case for a couple of
reasons. One was that I had gone through so many iterations and
configurations that it was hard to
As you can see from my response to Nakarin, it was just a minor issue
with my directory path specifications in a couple of promises. I wasn't
actually suggesting using scp. Rather, I was just giving an example of
the behavior I wanted to replicate with a native Cfengine configuration.
Thanks,
Just
Nakarin,
It looks like this is doing just what I want. I still need to understand
a couple of things better, but I think the main fix was that I had the
paths reversed for the server access_rules promise and the agent files
promise (i.e. the "/." part). I had also tried a depth_search body,
though
I think that you shouldn't anchor the regexp...
select_line_matching => "#!.*sh";
Have not tried it... :-P
Best regards,
Emil Assarsson emil.assars...@sonyericsson.com
Phone: +46 (0)10 8017422
-Original Message-
From: help-cfengine-boun...@cfengine.org
[mailto:help-cfengine-boun...@c
Works ok for me
Steve Barnes wrote:
> I'm trying to disable a few cron tasks by inserting an `exit 0` statement
> just after the shebang:
>
> ###
>
> bundle agent cron {
>
> files:
>
> "/etc/cron.daily/mlocate.cron"
>
>
Sorry, forgot to mention I'm using CF3.0.3
Cheers
Steve
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
I'm trying to disable a few cron tasks by inserting an `exit 0` statement
just after the shebang:
###
bundle agent cron {
files:
"/etc/cron.daily/mlocate.cron"
edit_line => disable_task;
Is this what you would like to have?
# add access_rule() to cf-serverd config on the policy_server
bundle server access_rules()
{
access:
"/usr/local/etc"
handle => "grant_access_etcfiles",
comment => "Grant access to etc configurations",
admit => { "192.168.200.2" }; # my cl
On 17 March 2010 23:37, Justin Lloyd wrote:
>
> Ok, I'm stumped again. I've been working on a problem for hours. I want
> to effectively do the following on each client:
>
> client# scp policy_host:/usr/local/etc/*.rc /usr/local/etc
>
> but I can't figure out how to set up the access rules and fil
19 matches
Mail list logo