Re: [cfengine2] Editing multiple files

2010-01-28 Thread Jesse Becker
is >also >used in the evaluation of the pseudo variable home, See Section 4.19 >[files], page 94, Section 4.39 [tidy], page 146. >""" > >It may be easier just to specify a path if all your home directories are in >the same place, or define your own variable and set it b

expand_scalars and templates

2010-02-17 Thread Jesse Becker
= cf3 insert_lines in bundle expand_template cf3 = = = = = = = = = = = = = = = = = = = = = = = = = = = = cf3 cf3 cf3 . cf3 Promise handle: cf3 Promise made by: /tmp/template cf3 ..

Re: Standard library on cfengine.com

2010-02-18 Thread Jesse Becker
- >>> >> >> >> > >-- >Mark Burgess > >- >Professor of Network and System Administration >Oslo University College, Norway > >Personal Web: http://www.iu.hio.no/~mark >Office Telf : +47 22453272 >- >___ >Help-cfengine mailing list >Help-cfengine@cfengine.org >https://cfengine.org/mailman/listinfo/help-cfengine -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: expand_scalars and templates

2010-02-18 Thread Jesse Becker
yone. Perhaps these would be suitable for posting on the cfwiki? >Jesse Becker wrote: >> I'm trying to get a basic templating system working for several files, >> and expand_scalars doesn't seem to work. I've found serveral references >> to other people having

Re: expand_scalars and templates

2010-02-18 Thread Jesse Becker
ile that contained the error. I suspect that had I seen a known-good template that included fully qualified variable names, it would have been much clearer. >Jesse Becker wrote: >> On Thu, Feb 18, 2010 at 01:14:16AM -0500, Mark Burgess wrote: >>> >>> Jesse, >>>

segfault in storage: action

2010-02-19 Thread Jesse Becker
e=32768,wsize=32768'); cf-agent blows up, but not before *removing* /etc/fstab completely. This is usually a Bad Thing. However, it does create two new files: /etc/fstab.cf-before-edit /etc/fstab.cf-after-edit These files both have the correct contents for their respecti

Re: segfault in storage: action

2010-02-22 Thread Jesse Becker
0405e9d in main () Also, I noticed that if /etc/fstab does not exist at all, a storage: promise will not create it even if 'edit_fstab => "true";'. I don't know if that is expected behavior or not. > >Jesse Becker wrote: >> I'm getting a segf

Re: segfault in storage: action

2010-02-22 Thread Jesse Becker
On Mon, Feb 22, 2010 at 11:21:00AM -0500, Jesse Becker wrote: >On Mon, Feb 22, 2010 at 05:30:34AM -0500, Mark Burgess wrote: >> >>Jesse, >> >>I started a bug track on this on our system, but I am unable to reproduce the >>error. It >>works perfectly for me.

Re: segfault in storage: action

2010-02-22 Thread Jesse Becker
0404cd3 in ScheduleAgentOperations () #5 0x00404e73 in KeepPromiseBundles () #6 0x000000405983 in KeepPromises () #7 0x00405e9d in main () On Mon, Feb 22, 2010 at 11:32:56AM -0500, Jesse Becker wrote: >On Mon, Feb 22, 2010 at 11:21:00AM -0500, Jesse Becker wrote: >>On

another segfault in cf-agent

2010-02-24 Thread Jesse Becker
uot; output that had what looked to be bogus output in it (e.g. a bad pointer somewhere for a printf). I am running using a specific set of bundles from a few files--I'll try to pare it down a bit to a specific test-case though. -- Jesse Becker NHGRI Linux support (Digicon Contract

Re: another segfault in cf-agent

2010-02-25 Thread Jesse Becker
the future (along with the src.rpm files as well)? > >M > >Jesse Becker wrote: >> I'm getting another segfault when running cf-agent, but it is not always >> reproducable. Given two runs back-to-back with no config file changes >> between, the first may fail,

Re: another segfault in cf-agent

2010-02-25 Thread Jesse Becker
# cf-agent -V >>>> This comprises cf-agent core community version 3.0.3patch1 - (C) >>>> Cfengine AS 2008- I'm running on a Centos5 system. However, whether or not debugging symbols are included in an RPM is a function of system on which the package was *built*, not o

Trivial patch to configure.ac

2010-02-25 Thread Jesse Becker
; then WITH_SQL=1 +else + WITH_SQL=0 fi if test $WITH_SQL = 1; then -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Basic string replacement

2010-03-01 Thread Jesse Becker
new' string => regex_replace(${orig}, ":ba","-DA"); Right now, I'm shelling out to sed, but this seems...silly. vars: 'orig' string => 'foo:bar:baz'; "new" string => execresult("/bin/echo ${orig} | /bin/sed 's,:

Re: Basic string replacement

2010-03-02 Thread Jesse Becker
tion of existing "unhashed" user home directories to "hashed" ones, but only if it supports better string handling routines. Of course, one can always just hand off a username to a Perl script as well. I really want is a general solution (wh

escape() function unknown?

2010-03-02 Thread Jesse Becker
d in the bundlesequence was not found Fatal cfengine error: Errors in agent bundles Also tried using the latest SVN release (r864), and got the same result. -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Basic string replacement

2010-03-02 Thread Jesse Becker
d of duplicating many lines of code for each file I want to template. There are two core promises: one promise to get the template file, and one promise to call expand_template and create the final file based on certain checks. But this is all separate from the original problem of string manipulation

Re: escape() function unknown?

2010-03-02 Thread Jesse Becker
ut when I tried SVN this morning and it still broke... > >Jesse Becker wrote: >> Given this bundle: >> >> bundle agent escape_test { >> >> vars: >> 'string' string => "This'string_has\\stuff!\"in.it."; >>

Re: Basic string replacement

2010-03-02 Thread Jesse Becker
set of promises to >> convert the string "jbecker" into "/home/j/jbecker" is fairly easy using >> a search and replace function. I can envision a situation where >> cfengine could actually handle the migration of existing "unhashed" user >> home

Re: Basic string replacement

2010-03-02 Thread Jesse Becker
d call awk/sed/perl/python/ruby for basic stuff seems foolish. If you need to do something really complicated, then a script/program is probably the way to go, instead of coding a mess of interdependent promises. -- Jesse Becker NHGRI Linux support (Digicon Contractor) __

Re: Editors for Cf3?

2010-03-04 Thread Jesse Becker
it, and have the beginnings of rules for syntax highlighting for it. I'm happy to share them with people if anyone is interested. I'm also happy to share the regexes I'm using as well (although I've done nothing to optimizing them yet). I'd love for something vim thoug

Re: Thoughts about copy_from

2010-03-05 Thread Jesse Becker
n error, and delete the copy you received. DigitalGlobe >reserves the >right to monitor any electronic communication sent or received by its >employees, agents >or representatives. > >___ >Help-cfengine mailing list >Help-cfengi

Re: Thoughts about copy_from

2010-03-05 Thread Jesse Becker
;> >responsible for delivering this communication to the intended >> recipient, or if you have received >> >this communication in error, please do not print, copy, retransmit, >> disseminate or >> >otherwise use the information. Please ind

Re: Thoughts about copy_from

2010-03-05 Thread Jesse Becker
d--if not "simple" problem--has worked out to be anything but. This isn't the first time that this has happened either, as I've spent no small amount of time trying to get cfengine to do something natively that could be replaced by a very small shell script. >-Original

Re: Discovered classes

2010-03-09 Thread Jesse Becker
gt; cf3 Interface 2: lan2 >> >> cf3 Adding alias name1.. >> >> cf3 Interface 3: lan5:1 >> >> cf3 Adding alias name2.domain.. >> >> cf3 Interface 4: lan1 >> >> cf3 !! Cannot discover hardware IP, using DNS value >> >> cf3

Re: Suggestion for inputs

2010-03-10 Thread Jesse Becker
better. There's something of a security risk here. If some miscreant manages to put the file "evilplot.cf" into the methods directory, this could be used to compromise the remote systems. I'd rather list the files explicitly. In practice, I've found this doesn't

Re: process miscounting?

2010-03-17 Thread Jesse Becker
/init.d/MyProc start"; } body process_select find_MyProc { process_owner => { 'someuser' }; process_result => "process_owner"; } body process_count sge_too_many { match_range => irange('2','9'); in_range_define => { 'MyProc_too_many' }; } -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

configure.ac error in SVN

2010-03-17 Thread Jesse Becker
= 1; then + case "$target_os" in + linux*) +if [ `which pg_config` ]; then + CPPFLAGS=-I`pg_config --includedir` +fi + esac AC_CHECK_LIB(mysqlclient,main) AC_CHECK_LIB(pq,main) AC_CHECK_HEADERS(mysql/mysql.h) <snip&g

Re: process miscounting?

2010-03-18 Thread Jesse Becker
d' value is passed, and the number of processes matching is *not* equal to this value, the number of matches is returned, but as a negative value. (a bit of a kludge, I suppose) -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: segfault in storage: action

2010-03-24 Thread Jesse Becker
0x00405a43 in KeepPromises () at agent.c:350 #7 0x00405fbd in main (argc=4, argv=0x79336f58) at agent.c:141 On Mon, Feb 22, 2010 at 05:30:34AM -0500, Mark Burgess wrote: Jesse, I started a bug track on this on our system, but I am unable to reproduce the error. I

Re: Cfengine Help: Re: Setting a variable conditionally, depending on a class?

2010-04-06 Thread Jesse Becker
is no way to define a variable based on the presense of this file. You can *try* and do stuff with the isvariable() function, but that's been hit-or-miss for me. Furthermore, since cfengine3 will only iterate through the actions 3 times--this is *waaay* to few, at least IMO--using isvariable() basically blows one of your three passes. -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: Setting a variable conditionally, depending on a class?

2010-04-07 Thread Jesse Becker
os and cons to both methods but one has to examine them on a case by >case basis. I think we all agree that cfengine is most certainly not imperative programming or scripting. It is declartive, as has been mentioned many times. I suppose this is an attempt on my part to make it similar to

Re: Cfengine Help: The question about automake

2010-04-07 Thread Jesse Becker
conf autoreconf --force --install --symlink ./configure --with-pcre --with-tokyocabinet --without-sql --with-graphviz I've had zero problems so far. Now, I've a need to go find a large wooden plank on which to knock... -- J

Re: Cfengine Help: The question about automake

2010-04-07 Thread Jesse Becker
z DONE: Configuration done. Run make/gmake to build cfengine. [becker...@kirk ~/cfengine/cfengine3/trunk]$ make -j 2 make[1]: Leaving directory `/home/beckerjes/cfengine/cfengine3/trunk' [becker...@kirk ~/cfengine/cfengine3/trunk]$ ls -l src/cf-a

Re: Cfengine Help: Re: Cfengine Help: Possible bug in cfengine 2

2010-04-12 Thread Jesse Becker
tion isn't great--two inputs located "next" to eachother such as "classA" and "classB" will hash to neighboring slot values 3269 and 3270--but it doesn't appear to be horribly degenerate either. I ran 300 or so classes through my script and found 8 collisions

Re: Cfengine Help: Re: RE: Cfengine Help: cfengine program flow

2010-04-21 Thread Jesse Becker
have received >this communication in error, please do not print, copy, retransmit, >disseminate or >otherwise use the information. Please indicate to the sender that you have >received this >communication in error, and delete the copy you received. DigitalGlobe >reserves the >right to monitor any electronic communication sent or received by its >employees, agents >or representatives. > >___ >Help-cfengine mailing list >Help-cfengine@cfengine.org >https://cfengine.org/mailman/listinfo/help-cfengine -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: RE: Cfengine Help: cfengine program flow

2010-04-21 Thread Jesse Becker
if >you have received >this communication in error, please do not print, copy, retransmit, >disseminate or >otherwise use the information. Please indicate to the sender that you have >received this >communication in error, and delete the copy you received. DigitalGlobe >re

Re: Cfengine Help: Re: RE: Cfengine Help: cfengine program flow

2010-04-21 Thread Jesse Becker
_______ >> Help-cfengine mailing list >> Help-cfengine@cfengine.org >> https://cfengine.org/mailman/listinfo/help-cfengine >> ___ >> Help-cfengine mailing list >> Help-cfengine@cfengine.org >> https://cfengine.org/mailman/listinfo/help-cfengine > >This electronic communication and any attachments may contain confidential and >proprietary >information of DigitalGlobe, Inc. If you are not the intended recipient, or an >agent or employee >responsible for delivering this communication to the intended recipient, or if >you have received >this communication in error, please do not print, copy, retransmit, >disseminate or >otherwise use the information. Please indicate to the sender that you have >received this >communication in error, and delete the copy you received. DigitalGlobe >reserves the >right to monitor any electronic communication sent or received by its >employees, agents >or representatives. > >___ >Help-cfengine mailing list >Help-cfengine@cfengine.org >https://cfengine.org/mailman/listinfo/help-cfengine -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: RE: Cfengine Help: cfengine program flow

2010-04-21 Thread Jesse Becker
nder that you have >received this >communication in error, and delete the copy you received. DigitalGlobe >reserves the >right to monitor any electronic communication sent or received by its >employees, agents >or representatives. > >___ >Help-cfengine mailing list >Help-cfengine@cfengine.org >https://cfengine.org/mailman/listinfo/help-cfengine >___ >Help-cfengine mailing list >Help-cfengine@cfengine.org >https://cfengine.org/mailman/listinfo/help-cfengine -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: Insert a block of text

2010-04-29 Thread Jesse Becker
ssible). There are lots of files where blocks of text are as important as the individual lines. -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Please add full syslog support to community edition v.3

2010-04-29 Thread Jesse Becker
ine mailing list >> Help-cfengine@cfengine.org >> https://cfengine.org/mailman/listinfo/help-cfengine > > -- > Mark Burgess > > - > Professor of Network and System Administration > Oslo University College, Norway > >

Re: Cfengine Help: Re: Cfengine Help: Please add full syslog support to community edition v.3

2010-04-29 Thread Jesse Becker
gt;IIRC Cf2 logged to the local syslog. Cf3 also does this. The feature Jesse >pointed to is remote syslog. So the local syslog daemon should be able to handle log redirection to somewhere else. Doesn't seem like it should be too much of an issue? (unless I'm missing something else

Re: Cfengine Help: Re: Insert a block of text

2010-04-29 Thread Jesse Becker
ot; of files in place and treat them (sorta) as a group. That said, editfiles: had a huge list of other problems, and I've no desire to bring it back. -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing l

Re: Super-scaled cfengine server?

2010-04-30 Thread Jesse Becker
>Professor of Network and System Administration >Oslo University College, Norway > >Personal Web: http://www.iu.hio.no/~mark >Office Telf : +47 22453272 >- >______

Re: Deleting unwanted packages

2010-05-03 Thread Jesse Becker
2bit}, }; commands: Kluster:: # This is done outside of packages: because the 'yum' # Method actually just calls 'rpm'. Yum is a bit more graceful # and can yank all packages listed above. It is also a bit # more efficient to pass a st

Safely detecting dead NFS mounts

2010-06-11 Thread Jesse Becker
mount). Unfortunately, in the case of *hung* mount, it never returns... Anyone have any clever ideas or suggestions? -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Set class via package promise?

2010-06-18 Thread Jesse Becker
_architectures => { "x86_64" }, classes => is_okay("package_installed_${fileserver_packages}"); This would define a new class for each element of the ${fileserver_packages} list. Am I completely missing the ability to do this somewhere already? -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: release candidate suggestion

2010-06-21 Thread Jesse Becker
tree to a "releasable" tarball, I would gladly do that >portion myself, releasing Cfengine from whatever QA process you like >to do before making such official releases, but still allowing me to do >more gradual testing. -- Jesse Becker NHGRI Linux support (Digicon Contractor)

Re: Cfengine Help: Re: So any syntax errors cause site wide cfengine 3 outages?

2010-09-03 Thread Jesse Becker
y not control directly (but that you "trust"). This means that a typo in a policy that you are not responsible for, and potentially cannot fix, will disrupt your entire site. Obviously, there should be proper QA and testing in place to prevent this, and we all do that, right? -- Jesse

Re: Cfengine Help: Re: Accessing variables declared within cf3 modules

2010-09-16 Thread Jesse Becker
xplicitly. Only classes defined in common bundles > become global. > > ___ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine > -- Jesse Becker ___ Help-cfen

Re: Cfengine Help: Re: Accessing variables declared within cf3 modules

2010-09-16 Thread Jesse Becker
reference ${bundle.slist_variable}. This is very confusing. And thanks, :) On Thu, Sep 16, 2010 at 19:05, Daniel V. Klein wrote: > Yes, I will make sure it is clearer... maybe not 72pt, though :-) > > On Sep 16, 2010, at 4:44 PM, Jesse Becker wrote: > >> Is there a way to have this Se

Re: Cfengine Help: Re: Controlling Module Calls

2010-09-21 Thread Jesse Becker
ple times can be inefficient even if no changes are made. > >One option would be to define a certain class during the first pass, and then >make the module calls depending on that class being unset. This seems like a good place to make use of a persistant class. -- Jess

Re: Cfengine Help: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread Jesse Becker
lasses are typically >> persistent through those three runs. >> >> ___ >> Help-cfengine mailing list >> Help-cfengine@cfengine.org >> https://cfengine.org/mailman/listinfo/help-cfengine >____

Re: Cfengine Help: Re: Force variables to be defined after classes?

2010-10-08 Thread Jesse Becker
?). Workarounds are sometimes possible, but make the promises quite convoluted. Simplicity, and passing the "least surprise" test, should rank very highly in systems like this, and the cfengine language prohibits it in this case. -- Jesse Becker NHGRI Linux support (Digicon Contractor)

Re: Cfengine Help: Re: Feature Request

2010-11-01 Thread Jesse Becker
s a reasonable thing to request--a basic, simple tool. Give the admins tools; let them build what they need. -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: how to redirect to /dev/null

2010-11-01 Thread Jesse Becker
__ >> Help-cfengine mailing list >> Help-cfengine@cfengine.org >> https://cfengine.org/mailman/listinfo/help-cfengine >> ___ >> Help-cfengine mailing list >> Help-cfengine@cfengine.org >> https://cfengine.org/mailman/listinfo/help-cfengine > >___ >Help-cfengine mailing list >Help-cfengine@cfengine.org >https://cfengine.org/mailman/listinfo/help-cfengine -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: normal ordering

2010-11-08 Thread Jesse Becker
find a reason to change the >ordering :) It's a compromise to fit most but not all cases. Or allow people to set the ordering that fits best in their environment. Have a sane, and sensible default (which we have), but make it mutable, instead of fixed. -- Jesse Becker NHGRI Li

Re: Cfengine Help: Should it take two cf-agent runs before a change on policyhost is implemented on client?

2010-12-01 Thread Jesse Becker
uot;exec_command" string: body executor control { # Instead of a separate update script, now do this exec_command => "$(sys.workdir)/bin/cf-agent -f failsafe.cf && $(sys.workdir)/bin/cf-agent"; } -- Jesse Becker NH

Re: Cfengine Help: Re: Extended solutions guide and YOUR HELP!

2010-12-01 Thread Jesse Becker
bout restarting that site. It would be nice to use the domain, as well as keep all of the existing content (minus the gobs and gobs of spam, of course). -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: Extended solutions guide and YOUR HELP!

2010-12-02 Thread Jesse Becker
s linking CFengine functions used in the >wiki (or whatever knowledge collection) with the reference guide. This way, a >quick overview of the function's syntax is always nearby. This is a very good idea. -- Jesse Becker NHGRI Linu

Re: Cfengine Help: Re: Extended solutions guide and YOUR HELP!

2010-12-02 Thread Jesse Becker
tically. I like the ability to vote >on the code too. Could you elaborate on "taggable free submissions"? How is this different from pages/snippets/code from having arbitrary tags, suitable for later organization? -- Jesse Becker NHGRI Linux support (Digicon Contractor)

Re: Cfengine Help: Re: Extended solutions guide and YOUR HELP!

2010-12-02 Thread Jesse Becker
yntax highlighting as well. I can offer up a set of regexes I've used for one of my editors. -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

field_edit and duplication

2010-12-02 Thread Jesse Becker
.. cf3 Promise handle: cf3 Promise made by: ^.*\s+/scratch\s+.*defaults.*$ cf3 cf3 Comment: Remove default option cf3 . cf3 cf3 -> This promise has already been verified cf3 -> No edit changes to file /etc/fstab need saving cf3 (Nothing is done in iterations 2 and 3). Thanks in advance. -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: field_edit and duplication

2010-12-02 Thread Jesse Becker
o handle more than just NFS mounts. Theoretically, they do. https://cfengine.com/bugtracker/view.php?id=126 (yes, I know I should convert this promise to do so...) -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing

Re: Cfengine Help: Re: Binaries for 3.1.1?

2010-12-06 Thread Jesse Becker
gine 3 source root. >See >http://source.cfengine.com/browse/core/tags/3.1.1/ChangeLog?revision=1535&view=markup > and have a look under 3.1.0 (..repair_failed..). >Is there interest for more extended info on the new & cool things in the >releases? Yes, please. :) -- Jesse

Re: Cfengine Help: Once more unto the code bridge: repository

2010-12-12 Thread Jesse Becker
ode, it seems to be less useful for non-code documentation and explanations. Various notes about how to best organized bundles and files come to mind as an example. Having everything backed by version control is nice, but putting everything one more "level down"

Re: Cfengine Help: Once more unto the code bridge: repository

2010-12-12 Thread Jesse Becker
____ >> Help-cfengine mailing list >> Help-cfengine@cfengine.org >> https://cfengine.org/mailman/listinfo/help-cfengine >> >> Sent via the BlackBerry >> ___ >> Help-cfengine mailing list >> Help-cfengine@cfengine.org >> https://cfengine.org/mailman/listinfo/help-cfengine > ___ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine > -- Jesse Becker ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: Once more unto the code bridge: repository

2010-12-13 Thread Jesse Becker
nd github etc. It helps me to assess >these things without having the time to explore too much myself. I'll put in a generally good opinion of github. I've started using it in a basic way for some other projects, and it's a lot better than, say, sf.net. :-) -- Jesse Beck

Re: Cfengine Help: Re: Cfengine Help: Who's going to promise this - Forums Fubar

2010-12-14 Thread Jesse Becker
le, but then we have to sacrifice the plan to mine the forum >eventually and tie in into the documentation. Why not just mine the mailing list directly, and use one of the many decent mailing list archival/web-FE programs to do the same thing? -- Jesse Becker NHGRI Linux s

Re: Cfengine Help: Re: Once more unto the code bridge: repository

2010-12-15 Thread Jesse Becker
-hub? :-) In part, yes. :) https://git.wiki.kernel.org/index.php/GitFaq#Why_the_.27git.27_name.3F >Help-cfengine mailing list >Help-cfengine@cfengine.org >https://cfengine.org/mailman/listinfo/help-cfengine -- Jesse Becker NHGRI Linux support (Digicon Contractor)

Re: Cfengine Help: Re: Once more unto the code bridge: repository

2010-12-15 Thread Jesse Becker
sk: 510/495-2243 > > >___ >Help-cfengine mailing list >Help-cfengine@cfengine.org >https://cfengine.org/mailman/listinfo/help-cfengine -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: Once more unto the code bridge: repository

2010-12-15 Thread Jesse Becker
tron Road >Computer Systems Engineer Berkeley, CA 94720 >ESnet http://www.es.net/ Desk: 510/495-2243 > > >_______ >Help-cfengine mailing list >Help-cfengine@cfengine.org >https://cfengine.org/mailman/listinfo/help-cfengine -- Jesse Becker NHGRI Linux support (Digicon Contr

Re: Cfengine Help: Re: Overriding ps option string in 3?

2010-12-16 Thread Jesse Becker
hus, something like: $sys_prog['ps'] string => 'ps -efZ'; How is this different, fundamentally, from letting users specifiy their own package: actions? There are lots of package management systems, and there's a method to a

Re: Cfengine Help: Re: Overriding ps option string in 3?

2010-12-16 Thread Jesse Becker
ind that they have a combination of OS detection (for /proc), directory walking, and 'ps' output processing. -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: Once more unto the code bridge: repository

2010-12-16 Thread Jesse Becker
f the founder is an interested member of this community? > >Good question. I've spoken to him a few times this past year about cleaning up the wiki (there's a lot of spam), with the intent of adding cf3 content. I sent an email a week or so ago, but haven't heard back from

Reference manual error in "Allowed input range" for 'type: int'

2010-12-17 Thread Jesse Becker
ftware_patches,value,variables etc... -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

clever array and slist usage?

2010-12-17 Thread Jesse Becker
romise in question. I do have a workaround, but it's inelegant. Bascially, flatten the array into multiple slists, and have a separate promise for each one, based on the hostnames. So my question: Is there a concise way to do something like what I've posted above? -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: clever array and slist usage?

2010-12-18 Thread Jesse Becker
his behaviour >remains pretty the same since 3.0.4. > >2010/12/18 Jesse Becker : >> So, the snipped below does not work, but I wish that it did. ?It also >> isn't limited to package promises either, I can think of cases for file >> and command promises as well. >>

Re: clever array and slist usage?

2010-12-18 Thread Jesse Becker
actually went through a few iterations, trying different ideas where those classes made more sense. Thanks for the note about the bug. I forgot to mention that I'm using 3.0.5p1. Should I file a report? > >M > >On 12/18/2010 12:37 AM, Jesse Becker wrote: >> So, the snipped bel

Re: Cfengine Help: Re: Cfengine Help: cf-serverd memory leak still (v3.1.2)

2010-12-22 Thread Jesse Becker
brary versions as well, since the leak could be in those, as opposed to the core CF code. -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Confirm file/dir ownership with file_result => "owner"

2011-01-03 Thread Jesse Becker
"/tmp/test" perms => owner('root'), classes => if_ok('confirmed'); reports: !confirmed:: "FAILED Confirmed owner on /tmp/test"; confirmed:: "Confirmed owner on /

SVN browsers

2011-01-04 Thread Jesse Becker
I just noticed that there are two SVN web interfaces linked from cfengine.org: http://source.cfengine.com/browse/ http://source.cfengine.com/websvn/ Thanks! -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine

insert_lines using a block of text, after a match

2011-01-08 Thread Jesse Becker
t; { "-A INPUT -s ${servers} -p tcp -m tcp -= j NEWCHAIN" }; 'One_Rule'string => join("${const.n}", 'Server_Rules'); insert_lines: "${One_Rule}" location => findline('^-A NEWCHAIN.*5544.*'); } &

Re: Cfengine Help: Re: Random variable persistence problem -- crontab randomization

2011-01-11 Thread Jesse Becker
cally handles the server/path locations on the policy server. "/etc/yum.repos.d/local_packages.repo" copy_from => update("/etc/yum.repos.d/local_packages.repo-${yum_server}"); } -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: Lastseen in body agent control per documentation isn't valid

2011-01-14 Thread Jesse Becker
7;; reports: cfengine_3:: "I know about host [${allhosts_name}]."; "I have not seen [${deadhosts_name}] in ${deadtime} hours."; } > >___ >Help-cfengine mailing list >Help-cfengine@cfengine.org >https://cfengine.org/mailman/listinfo/help-cfengine -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: Lastseen in body agent control per documentation isn't valid

2011-01-18 Thread Jesse Becker
3_check_server_connectivity { vars: !has_myhosts:: "myhosts" slist => { hostsseen("1","notseen","address") }; classes: 'has_myhosts' => isvariable('myhosts'); "cfengine_no_connectivity" expression => reglist("@(myhosts)",escape("$(g.policyserver)")); reports: cfengine_no_connectivity:: "Not seen cfengine3 policy server: $(g.policyserver) for at least a hour"; } -- Jesse Becker ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: Lastseen in body agent control per documentation isn't valid

2011-01-18 Thread Jesse Becker
On Tue, Jan 18, 2011 at 09:42:57AM -0500, Bas van der Vlies wrote: >On 18-01-11 13:49, Jesse Becker wrote: >> On Tue, Jan 18, 2011 at 04:48, Bas van der Vlies wrote: >>>> ## Report if we lost contact with our policy server for an hour >>>> # >>>> bun

Re: Cfengine Help: Cfengine and AI

2011-01-19 Thread Jesse Becker
t-meets-the-swarm-how-the-berkeley-overmind-won-the-2010-starcraft-ai-competition.ars >2. http://www.cfengine.org/cftimes/articles/19.html > >_______ >Help-cfengine mailing list >Help-cfengine@cfengine.org >https://cfengine.org/mailman/listinfo/help-cfengine -

Re: Cfengine Help: Re: Processes in Solaris 10 and latest trunk r1736

2011-01-28 Thread Jesse Becker
, you could even do it in the standard library, no? -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: Processes in Solaris 10 and latest trunk r1736

2011-01-28 Thread Jesse Becker
On Fri, Jan 28, 2011 at 11:36:11AM -0500, Mark Burgess wrote: > >On 01/28/2011 04:51 PM, Jesse Becker wrote: >> On Fri, Jan 28, 2011 at 10:48:50AM -0500, no-re...@cfengine.com wrote: >>> Forum: Cfengine Help >>> Subject: Re: Processes in Solaris 10 and latest trunk r

Re: What SVN hooks do you use in pre-commit / post-commit?

2011-01-28 Thread Jesse Becker
ct to generate and send emails. We use v1.14, although that shouldn't matter much. (For those that don't know, it basically makes a pretty email that includes a 'diff' for the commit in question.) I'm sure there's room for improvement, but it works for us at the

Re: What SVN hooks do you use in pre-commit / post-commit?

2011-01-28 Thread Jesse Becker
ble. You don't want to have to vote on every individual commit at a time, and some patches will "depend" on other patches. That could get ugly... > >It would be very interesting to hear if any of you have smart solutions >to this peer review problem. > >Thanks.

Re: Cfengine Help: Re: Issue with action => background

2011-02-01 Thread Jesse Becker
ion. I wanted >to avoid hanging cf-agent if my external process hung. That's been my experience as well. The parent cf-agent process will wait for all child processes to complete before it will terminate. You could, I suppose, have a wrapper program to help with this, but th

Re: Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread Jesse Becker
ocally installed software that is managed outside of whatever "official" package management software is provided by the vendor (this concept breaks down a bit with the BSDs, since everything not in the core is put in /usr/local). -- Jesse Becker NHGRI Linux support (Digicon Contracto

Re: Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread Jesse Becker
ing standards (if anyone ever bother to 1) make solaris packages and 2) follow the standards). >There, I said it! :-) :) > >On 02/04/2011 08:53 PM, Aleksey Tsalolikhin wrote: >> On Fri, Feb 4, 2011 at 11:33 AM, Jesse Becker wrote: >>> >>> Theoretically, Linux sys

Re: Cfengine Help: Re: version string in community

2011-02-09 Thread Jesse Becker
> >## > > > >% cf-promises -f ./vers.cf > !! The version string may not contain the ":" character > > >___ >Help-cfengine mailing list >Hel

Re: verify service running

2011-03-04 Thread Jesse Becker
;,"${rsync_data}"); processes: # Doesn't work, since there may not be an rsyncd process! files: # configuration for xinetd and rsync is pretty # standard--copy files into place as needed commands: runs_rsync.!rsync_is_running::

Re: Cfengine Help: Re: cfengine3 processes

2011-03-10 Thread Jesse Becker
Still I think that the >first introduction of theory and syntax could use some polish. In the finest tradition of Unix manpages: it's a wonderful reference, and a lousy user's manual. :-) -- Jesse Becker NHGRI Linux support (Digicon Contractor) __

Re: Managing sudoers files with exisiting entries

2011-03-10 Thread Jesse Becker
"^#-CFENGINE_MANAGED_ENTRIES-#$"; > select_end => "^#---#$"; >} > >## > >Sudoers file after:- > >#--# >#-CFENGINE_MANAGED_ENTRIES-# >User_Alias TEST_SYSADMIN= testuser1,testuser2,testuser3 >TEST_SYSADMIN ALL= NOPASSWD: ALL >#---# > >___ >Help-cfengine mailing list >Help-cfengine@cfengine.org >https://cfengine.org/mailman/listinfo/help-cfengine -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Cfengine Help: Re: cfengine3 processes

2011-03-11 Thread Jesse Becker
__ >> Help-cfengine mailing list >> Help-cfengine@cfengine.org >> https://cfengine.org/mailman/listinfo/help-cfengine >> >___ >Help-cfengine mailing list >Help-cfengine@cfengine.org >https://cfengine.org/mailman/listinfo/help-cfengine -- Jesse Becker NHGRI Linux support (Digicon Contractor) ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

  1   2   >