Re: Deleting lines from a files that don't match a list

2010-02-11 Thread Mark Burgess
I patched the code so that the premodelling done in edit files does not count peeudo- repairs. This is in svn and will be in the next releases beginning of March. Justin Lloyd wrote: > Neil, > > That does seem to work, though I'm really hoping that it's working like Mark > says and that the pr

RE: Cfengine on Facebook

2010-02-11 Thread Zamboni, Diego
Hi Mark, It works great with Google Reader. I had to add the feed URL manually, as the GReader "Subscribe" bookmarklet didn't work on the page - I guess the page is missing some tag that indicates the location of the feed, though I don't know the details for how it should be specified. Cheers,

Re: Deleting lines from a files that don't match a list

2010-02-11 Thread Mark Burgess
I'll look into this. Justin Lloyd wrote: > Neil, > > That does seem to work, though I'm really hoping that it's working like Mark > says and that the promises repaired percentage is fixed to reflect how it > really works. > > Here's what I have, based on your code: > > bundle agent test { >

RE: Deleting lines from a files that don't match a list

2010-02-11 Thread Justin Lloyd
Neil, That does seem to work, though I'm really hoping that it's working like Mark says and that the promises repaired percentage is fixed to reflect how it really works. Here's what I have, based on your code: bundle agent test { vars: "myfile" string => "/tmp/passwd_test";

RE: Deleting lines from a files that don't match a list

2010-02-11 Thread NWatson
Try this. It worked for me and only edited when necessary. ## body common control { bundlesequence => { "test" }; } bundle agent test { vars: "ldaps" slist => { "+...@unix", "+...@ops" }; files: "/tmp/edittest"

Re: Cfengine on Facebook

2010-02-11 Thread Mark Burgess
Ok, I made one at http://www.iu.hio.no/~mark/blog.html Let me know if it works Zamboni, Diego wrote: > Right - I have seen those, I was referring to Mark's personal blog, which I > find interesting but I couldn't find an RSS feed in it. > > --Diego > > > -Original Message- > From: Br

RE: Deleting lines from a files that don't match a list

2010-02-11 Thread Justin Lloyd
Mark, Anything you can provide to clear up how that works would be great, no matter how long it takes you to respond. :) In the interim, while I'm going to start deploying today and tomorrow, I'll play around with this issue some more to see if I can actually get it to work the way I want. Thank

Re: Deleting lines from a files that don't match a list

2010-02-11 Thread Mark Burgess
Cfengine does indeed work that way, but it is possible that it reports differently in promises repaired. I have not had time to reply carefully to this, but I will try to do so if you are willing to wait. M Justin Lloyd wrote: > Neil, > > You may recall from our previous discussion about this

RE: Deleting lines from a files that don't match a list

2010-02-11 Thread Justin Lloyd
Neil, You may recall from our previous discussion about this and the testing I did (with the nodename file example, my email from 2/5 at 11:27 AM MST) that Cfengine doesn't appear to work that way. Thanks for the suggestions. I'll look into them and report back on the results. Justin -Ori

RE: Community Open Promise Body Library suggestions

2010-02-11 Thread Justin Lloyd
Another thought would be to add a third true/false parameter to the copy bodies in library.cf or to add new ones to enable backups. So either: body secure_cp(from, server, backup) body remote_cp(from, server, backup) body local_cp(from, backup) or new ones, perhaps like this: body secure_cp_with

Re: arrays with IP addresses

2010-02-11 Thread NWatson
Canonify might help you. For grouping like systems I often must do so manually using a common bundle. For example # classes.cf # Since vars are defined before classes custom classes will need to be defined # here, outside of their relevant bundles and

arrays with IP addresses

2010-02-11 Thread milo...@gmail.com
Hi, I want to use an array for some settings in my mailserver. I used the IP address of the node in the array, but it's not working, I guess beacause of the '.' in the IP address. I use 3.0.3 community version. vars: "array[XX.YY.ZZ.19][example.com][bindip]" string => "XX.YY.ZZ.113";

RE: Deleting lines from a files that don't match a list

2010-02-11 Thread NWatson
I was under the impression that when editing files Cf3 can be made to apply all edits to a copy in memory and then only update the target file if the result was a change. It might be worth more testing. Other options are use a template with expand_scalars or writing a module with your favouri

RE: Deleting lines from a files that don't match a list

2010-02-11 Thread Justin Lloyd
Wow, I'm surprised to have received no responses to this so far, but it does seem to be a hard problem. In fact, I was thinking about it more last night and this morning and it's even trickier than I thought last night. I may have to come up with a different approach, but I would like to restate my