If you need a shell, just add your own /bin/sh -c ... That way you can
take responsibility yourself for the security implications.
On 11/01/2010 10:39 PM, JIM AMANATIDIS, BLOOMBERG/ 731 LEXIN wrote:
> It would be a whole lot easier if returnszero just worked I think.
>
> - Original Message -
Please ignore this
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
When I do "cp /usr/lib/libz.so.1 ." I get a file "libz.so.1" in my current
directory, which is not a symbolic link, but a copy of the file the link was
pointing to, say "/usr/lib/libz.so.1.2.3.3".
Is there a way I can do a similar copy using copy_from? That is to say, I
dont want to copy the link,
Hi, Mike. Thanks for your reply. I agree that keeping this promise
could be expensive.The purpose is to increase control over the
system - to know what packages are added, either automatically
(by OS updates) or by other users or admins.
I don't think any change in Cfengine is required to im
On Tue, Nov 2, 2010 at 10:32 AM, wrote:
> Forum: Cfengine Help
> Subject: Re: Bundle and Body
> Author: periapt
> Link to topic: https://cfengine.com/forum/read.php?3,18931,19007#msg-19007
>
> I agree with Fransusa that this is not clear. The documentation seems to
> emphasise the similarity betw
Forum: Cfengine Help
Subject: Re: Bundle and Body
Author: periapt
Link to topic: https://cfengine.com/forum/read.php?3,18931,19007#msg-19007
I agree with Fransusa that this is not clear. The documentation seems to
emphasise the similarity between bundles and bodies - by describing the syntax
onl
Forum: Cfengine Help
Subject: Re: How to remove packages not explicity whitelisted?
Author: mikec
Link to topic: https://cfengine.com/forum/read.php?3,18929,19006#msg-19006
Aleksey Tsalolikhin Wrote:
---
> Does anybody have a recipe for, or would
Forum: Cfengine Help
Subject: License for starter kit
Author: periapt
Link to topic: https://cfengine.com/forum/read.php?3,19005,19005#msg-19005
I am suprised to find that the starter kit does not appear to have a copyright
notice and license.
___
Help
Forum: Cfengine Help
Subject: Re: Cfengine Help: Re: Feature Request
Author: mikec
Link to topic: https://cfengine.com/forum/read.php?3,18993,19004#msg-19004
Daniel V. Klein Wrote:
---
> It makes sense to do something if a file exists or
> not (y
On 11/01/2010 04:21 PM, Jesse Becker wrote:
> On Mon, Nov 01, 2010 at 03:10:27PM -0400, Daniel V. Klein wrote:
>> Try using grep -q, it is much easier than redirecting
>
> But not portable. The -q option is a GNU extension.
I don't know if maybe GNU had it first, but ‘-q’ is specified by POSIX
(
I'm not sure I understand what you are trying to achieve
I think it would be :
"Has_ce_nic" expression => returnszero("/bin/grep \"ce\"
/etc/path_to_inst >/dev/null 2>&1 ", "useshell");
if you want to match ce
or
"Has_ce_nic" expression => returnszero("/bin/grep '\"ce\"'
/tmp/path_to_inst >/dev/
It would be a whole lot easier if returnszero just worked I think.
- Original Message -
From: Daniel V. Klein
To: becker...@mail.nih.gov
Cc: JIM AMANATIDIS (BLOOMBERG/ 731 LEXIN), help-cfengine@cfengine.org
At: 11/01 17:38:57
You could always try -s :-)
On Nov 1, 2010, at 5:21 PM, Jesse
You could always try -s :-)
On Nov 1, 2010, at 5:21 PM, Jesse Becker wrote:
> On Mon, Nov 01, 2010 at 03:10:27PM -0400, Daniel V. Klein wrote:
>> Try using grep -q, it is much easier than redirecting
>
> But not portable. The -q option is a GNU extension.
>
> [je...@titan:~]$ uname -a
> SunOS
On Mon, Nov 01, 2010 at 03:10:27PM -0400, Daniel V. Klein wrote:
>Try using grep -q, it is much easier than redirecting
But not portable. The -q option is a GNU extension.
[je...@titan:~]$ uname -a
SunOS kronos 5.10 Generic_142900-08 sun4u sparc SUNW,Sun-Fire-V240
[je...@titan:~]$ grep -q foo t
Try using grep -q, it is much easier than redirecting
On Nov 1, 2010, at 3:07 PM, JIM AMANATIDIS, BLOOMBERG/ 731 LEXIN wrote:
>
> Okay, this seems to break with the string being searched is wrapped in
> quotes, regardless of how many "\" surround it to escape it:
>
> classes:
>"Has_ce_nic
Okay, this seems to break with the string being searched is wrapped in quotes,
regardless of how many "\" surround it to escape it:
classes:
"Has_ce_nic" expression => returnszero("/bin/grep \\\"ce\\\"
/etc/path_to_inst >/dev/null 2>&1", "useshell");
Note, if I use "noshell" and remo
Forum: Cfengine Help
Subject: Re: Cfengine Help: Re: Feature Request
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,18994,18996#msg-18996
The module can check multiple files and set multiple classes in a single
process.
___
Help-cfen
Forum: Cfengine Help
Subject: Re: Cfengine Help: Re: Feature Request
Author: xeon22
Link to topic: https://cfengine.com/forum/read.php?3,18994,18995#msg-18995
There is an application we manage that requires a nightly restart. The restart
can only occur after a specific file is zero bytes. This
On Mon, Nov 01, 2010 at 12:42:51PM -0400, no-re...@cfengine.com wrote:
>Forum: Cfengine Help
>Subject: Re: Feature Request
>Author: neilhwatson
>Link to topic: https://cfengine.com/forum/read.php?3,18989,18992#msg-18992
>
>Can you share with us a practical example of why returning file size might b
It makes sense to do something if a file exists or not (you can do that now),
and likewise if a file is of zero-size or not (not currently possible, but a
non-existent file should also have zero size), so it seems logical to also do
something based on a file's size (i.e., /foo/baz is bigger than
Forum: Cfengine Help
Subject: Re: Feature Request
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18989,18992#msg-18992
Can you share with us a practical example of why returning file size might be
useful? I can't think of one myself.
___
Forum: Cfengine Help
Subject: Re: Feature Request
Author: xeon22
Link to topic: https://cfengine.com/forum/read.php?3,18989,18991#msg-18991
Yes. Size in bytes.
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listi
Forum: Cfengine Help
Subject: Re: Feature Request
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18989,18990#msg-18990
By length do you mean size in bytes?
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfeng
Forum: Cfengine Help
Subject: Feature Request
Author: xeon22
Link to topic: https://cfengine.com/forum/read.php?3,18989,18989#msg-18989
I came across a need to test the length of a file and realized there was no
native function for such. I would like to request that a native function for
return
Forum: Cfengine Help
Subject: Yum conflict with installation fro source...
Author: hristob
Link to topic: https://cfengine.com/forum/read.php?3,18988,18988#msg-18988
Hi,
By default I use Yum (rpm) to install packages..
Unfortunately I have few servers that required different version of mysql and
Forum: Cfengine Help
Subject: Re: Can't copy file to directory through link
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,18986,18987#msg-18987
This "bug" was reported and fixed for the new release on 7th November. I say
"bug" because it was originally assumed that a symbolic
Forum: Cfengine Help
Subject: Can't copy file to directory through link
Author: Lars.O
Link to topic: https://cfengine.com/forum/read.php?3,18986,18986#msg-18986
I'm using Cfengine 3.0.5 on Redhat 4 and 5.
I'm trying to copy a startscript to /etc/init.d, but as this is a link to
/etc/rc.d/init.d,
On Mon, Nov 1, 2010 at 7:25 PM, wrote:
> Forum: Cfengine Help
> Subject: Re: package mgmt with apt
> Author: joke
> Link to topic: https://cfengine.com/forum/read.php?3,18977,18983#msg-18983
>
> I haven't tried it yet but I think you can use the ifelapsed directive to
> do the dpkg checking a lit
Forum: Cfengine Help
Subject: Re: Cfengine Help: Re: package mgmt with apt
Author: joke
Link to topic: https://cfengine.com/forum/read.php?3,18977,18984#msg-18984
Tim Cutts Wrote:
---
> Just to clarify - that doesn't disable debconf.
> It just s
Forum: Cfengine Help
Subject: Re: package mgmt with apt
Author: joke
Link to topic: https://cfengine.com/forum/read.php?3,18977,18983#msg-18983
I haven't tried it yet but I think you can use the ifelapsed directive to do
the dpkg checking a little less often. Only every 5 cf-agent run or so.
If
Forum: Cfengine Help
Subject: Re: evaluation of variables
Author: joke
Link to topic: https://cfengine.com/forum/read.php?3,18954,18980#msg-18980
mark Wrote:
---
> If you want a diagnosis, I suggest you submit your
> complete code example to the
Thanks for the tips!
In my experiments with the default bundle so far, it seems to be set
up adequately for non-interactive mode - cf-agent was able to install a
package without much difficulty.
The one issue I found with the default bundle, is that it called 'dpkg -l'
and parsed the entire outpu
On 1 Nov 2010, at 07:43, no-re...@cfengine.com wrote:
> Forum: Cfengine Help
> Subject: Re: package mgmt with apt
> Author: joke
> Link to topic: https://cfengine.com/forum/read.php?3,18977,18979#msg-18979
>
> There are pitfalls using apt or aptitude with cfengine. You need to make sure
> to di
Forum: Cfengine Help
Subject: Re: package mgmt with apt
Author: joke
Link to topic: https://cfengine.com/forum/read.php?3,18977,18979#msg-18979
There are pitfalls using apt or aptitude with cfengine. You need to make sure
to disable interactive functions of apt-get/aptitude or the install process
34 matches
Mail list logo