then I suggest just enforcing coding standards at your organization to
avoid using "." as "and"...a simple shell script with grep could find
these cases and (for example) prevent code from being checked into your
version control system.
Paul Krizak
I'll be there! I also registered for the configuration management workshop.
-Paul
On 10/18/2011 12:42 PM, no-re...@cfengine.com wrote:
> Forum: CFEngine Help
> Subject: Meet CFEngine at LISA 11
> Author: mark
> Link to topic: https://cfengine.com/forum/read.php?3,23774,23774#msg-23774
>
> CFEngi
We use rPath for this: http://www.rpath.com
As with Satellite, not free. But an exceptionally powerful tool that
lets you build and manage an entire set of appliances (OS + application)
and supports nifty things like rollback, migration, and development staging.
Paul Krizak
promises based on overflowing variables.
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS Systems EngineerAustin, TX 78735
Advanced Micro Devices Desk: (512) 602-8775
Linux/Unix Systems Engineering Cell: (512) 791-0686
Global IT Infr
This sounds like a bug...shouldn't the syntax parser prevent you from
setting the value larger than an unsigned int? An arbitrary "9"
or whatever isn't very useful.
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS Systems Engineer
Well since cfengine edits the file in memory and then does a comparison
to the on-disk version before making commits, presumably you should be
careful to not edit any files larger than the free memory on your system.
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS
You could make the command set an at job instead of calling shutdown
directly, but that's a bit hackish. There must be a way to make the
command run in the background, but I don't know the trick offhand.
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS System
Nevermind...NIS was fubar on the machine, and I guess Solaris has an
unhealthy obsession with NIS services...
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS Systems EngineerAustin, TX 78735
Advanced Micro Devices Desk: (512) 602-8775
Linux
, June 23, 2011 9:40:34 PM IST
Why would cfagent think the date is the epoch, even though the system
clearly has the right date?
And why would such an anomaly cause cfagent to fail to run?
Note this is cfengine 2.1.21...
--
Paul Krizak 7171 Southwest Pkwy MS B200.3A
Where did the cfengine 2 documentation go? The link on the resources
page says "all editions" but points to only Cf3 documentation. For us
slow adopters, we still need the Cf2 docs!!
-Paul
On 06/13/11 13:20, no-re...@cfengine.com wrote:
> Forum: Cfengine Help
> Subject: Changes to the CFEngin
That's the whole problem. If you can't rename across filesystems then
you can't use that feature to create backups.
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS Systems EngineerAustin, TX 78735
Advanced Micro Devices Desk:
e the filename of the backup
file -- how do you write the promise so that it is able to keep multiple
backups over time, the way the cf2 repository does?
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS Systems EngineerAustin, TX 78735
Advanced Micro De
Yeah, that's kind of what I was hoping to avoid. I presume CF3 is
extensible enough that this functionality can be achieved with it?
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS Systems EngineerAustin, TX 78735
Advanced Micro Devices
ss
filesystems (so I can't just force the disable action to move the file
into the repository).
Any suggestions for how to make backups of files that get deleted when
tidy: runs? Does CF3 support this?
--
Paul Krizak 7171 Southwest Pkwy MS B200.3A
There used to be a Cf2 regex tester on cfengine.org, as referenced here:
http://cfwiki.org/cfwiki/index.php/Wishlist#RegExp_Testing
But it seems to have vanished. Could it be restored? It would be handy
to have around for those of us (cough) still using Cfengine 2...
--
Paul Krizak
e. I know that there is a "disable" action that will do something
like this -- but I'm a little nervous about converting the hundreds of
different tidy actions we've got into disables.
--
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS Systems Engine
I think the value in this case is less in the simplicity of the code,
and more in the fact that it allows you to fully document the
intentions/behavior of a given promise without having to resort to 3rd
party code, i.e. the promise becomes self-documenting.
Paul Krizak
t; class may
have a persistence of several hours (and maybe a splayclass as well) to
prevent hammering the target server.
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS Systems EngineerAustin, TX 78735
Advanced Micro Devices Desk: (512) 602-877
You could try disabling cpuspeed before taking the measurement, then
re-enabling it... kind of kludgey, but it would work...
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS Systems EngineerAustin, TX 78735
Advanced Micro Devices Desk: (512
processes on a single server saturating a 2Gbit link. It worked fine.
What happens when I kick up all of the variables by 2-5x?
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS Systems EngineerAustin, TX 78735
Advanced Micro Devices Desk: (512)
and
10Gbit network already, not a load balancer).
The main thing I'm asking is if anybody has had any experience scaling
up a cfservd to this much work, and whether or not it fell over.
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS Systems Engineer
I'm talking about 5,000 systems each updating about 50MB of policy data
over a 1-2 hour span.
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS Systems EngineerAustin, TX 78735
Advanced Micro Devices Desk: (512) 602-8775
Linux/Unix Sy
l over
or thrash on internal locks trying to run that many threads?
--
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS Systems EngineerAustin, TX 78735
Advanced Micro Devices Desk: (512) 602-8775
Linux/Unix Systems Engineering Cell: (512
MakePath(/tmp/foobarbaz)
cfengine:becker: Unknown user bar
cfengine:becker: touching /tmp/foobarbaz
cfengine:becker: Owner of /tmp/foobarbaz was 0, setting to -1
So it looks like it's dereferencing the variable properly...
Paul Krizak 7171 Southwest Pkwy MS B
ve to use the macro for something?
Paul Krizak 7171 Southwest Pkwy MS B200.3A
Senior Systems Engineer Austin, TX 78735
Advanced Micro Devices Desk: (512) 602-8775
Linux/Unix Systems Engineering Cell: (512) 791-0686
Global IT Infrastru
I'm not intimately familiar with the cfengine source code, but would it
be more appropriate to modify the hashing function rather than catch the
case of a zero-hash and return a "not found"?
Paul Krizak 7171 Southwest Pkwy MS B200.3A
Senior S
zero-hashed" macro name exists?
Paul Krizak 7171 Southwest Pkwy MS B200.3A
Senior Systems Engineer Austin, TX 78735
Advanced Micro Devices Desk: (512) 602-8775
Linux/Unix Systems Engineering Cell: (512) 791-0686
Global IT Infrastructu
That's not how I've ever used PrepModule (with quotes) -- here's what my
syntax looks like:
loaded_cfengine_version = ( PrepModule(cfengine_version, "") )
I also don't name my modules with colons in the filename...
Paul Krizak 7171 So
odule in cf.classes we don't want to run at a certain site.
cf.sitecontrol comes *after* cf.control so that some global macros can
be overridden by a site. For example, the root password may be
different at one site but the same at all the others.
Paul Krizak
a cfengine-maintained file, but which
policy file makes the modifications.
Paul Krizak 7171 Southwest Pkwy MS B200.3A
Senior Systems Engineer Austin, TX 78735
Advanced Micro Devices Desk: (512) 602-8775
Linux/Unix Systems Engineering Cell: (
ystem is in the "interactive" class?" -- so look up the
"interactive" class in the knowledge map, then follow its connections to
the various promises that it implies.
Paul Krizak 7171 Southwest Pkwy MS B200.3A
Senior Systems Engineer
own cfengine's awareness of certain
services. That way, we can keep cfengine enabled, but have it ignore
certain "chunks" of policy to allow for some degree of local autonomy on
one-off boxes.
It's certainly not a perfect solution, but it's the best we could com
inful (and reducing the duration of downtimes in some cases).
Paul Krizak 7171 Southwest Pkwy MS B200.3A
Senior Systems Engineer Austin, TX 78735
Advanced Micro Devices Desk: (512) 602-8775
Linux/Unix Systems Engineering Cell: (512) 791-0686
Silic
wow, I've been using cfengine for almost 5 years and I had no idea that
existed. So many things I can do with that.
Paul Krizak 7171 Southwest Pkwy MS B200.3A
Senior Systems Engineer Austin, TX 78735
Advanced Micro Devices Desk: (512) 602
This is a great list. I have some comments inline below...
Paul Krizak 7171 Southwest Pkwy MS B200.3A
Senior Systems Engineer Austin, TX 78735
Advanced Micro Devices Desk: (512) 602-8775
Linux/Unix Systems Engineering Cell: (512) 791-0686
The documentation seems to suggest that's just for recursion (i.e.
recurse into directories pointed to by symlinks), not copying of
individual files.
Paul Krizak 7171 Southwest Pkwy MS B200.3A
Senior Systems Engineer Austin, TX 78735
Advanced Micro De
o:
./
./script.v6.1
./script.v6.2
./script.v7.0
./script.current -> script.v7.0
This script needs to be copied to the local filesystem, so I'm using a
copy: statement that copies "script.current" to a destination in the
local filesystem. But it's literally copying the symlink,
Simply putting a shebang on the file doesn't fix the issue of importing
a "cf.common" of some sort *before* running the script in question. The
quickie bash script that Brendan suggests addresses that problem.
Paul Krizak 5900 E. Ben White Blvd. MS 625
Unfortunately our legal department would have a fit if I were to reveal
something like this, especially to somebody planning on using it for a
public presentation.
Let's just say that one of the problems I've had to deal with cfengine
was handling over 10,000 connections on the serv
39 matches
Mail list logo