Remote copy help

2010-02-26 Thread Ian Goldstein
Hello, I was hoping somebody can help me find out why my remote copy is not working. It used to work with 3.0.2, but since I installed 3.0.3, it stopped. On my policy server, I ran cf-serverd in verbose mode and I believe the key error is "cf3 cfServerd access list is empty, no files are visib

Re: splitstring(), or splitting a string into characters

2010-02-26 Thread Daniel V Klein
Yes, only arrays are indexable. And yes, regextract is fairly new... > Hi Dan, > > Thanks for the tip. \B does seem to work in the way that I expected the > null pattern to (although I understand the subtle difference you point > out. Fortunately, our usernames shouldn't have any word boundari

Re: splitstring(), or splitting a string into characters

2010-02-26 Thread Jim Lawson
Hi Dan, Thanks for the tip. \B does seem to work in the way that I expected the null pattern to (although I understand the subtle difference you point out. Fortunately, our usernames shouldn't have any word boundaries in them.) The other issue that I am running into is that it seems that slists

Editing known_hosts files

2010-02-26 Thread Justin Lloyd
Ok, I'm thoroughly stumped here. I had something from testing several months ago that I thought was doing the right thing, but now I don't think it was. I want to insert into ~root/.ssh/known_hosts on certain hosts the root public ssh key from a trusted root host. But the trickier part is to delet

Re: splitstring(), or splitting a string into characters

2010-02-26 Thread daniel . klein
Jim- You're right, splitstring does not split on every character (and maybe it should if you specify a null pattern). And you missed on "." (because that makes every character a separator, and then there are no characters to separate) and on "[.]" (because a '.' in a [character class] is just a d

splitstring(), or splitting a string into characters

2010-02-26 Thread Jim Lawson
Hi help-cfengine, Running community 3.0.3. Given a string, is there a way to address the characters in the string? splitstring() seems to work fine as long as there is a delimiter, e.g. vars: "words" slist => splitstring("foo:bar:baz", ":", 3); But it doesn't seem to function quite a

$(this.promiser) not working in promise comment

2010-02-26 Thread Justin Lloyd
Reading through section 12.6 about the variable context "this", it doesn't explicitly state whether $(this.promiser) would be available within the promise's comment. This does not work (pun intended): bundle agent test { files: "/tmp/blah" handle => "create_blah",

hostnamekeys is true but server continues to save keys with ip

2010-02-26 Thread Assarsson, Emil
Hi, The hostnamekeys and dynamicaddresses confuses me a lot. Are not the server supposed to save the keys in files with hostname instead of IP addresses? More: the server seems to not accept Allowconnects => { ".*\.domain\.net" } Can this be related? I don't have any problem doing dns lookups a

Re: SOLVED / Minor Bug? :cf2: Mysterious Syntax error

2010-02-26 Thread Erlend Leganger
On 26 February 2010 17:13, wrote: > Thanks for your suggestion, > > but infact it does not change anything here renaming the modules itself - I > just renamed the module to more usual name without the colon > but as before it works but still throws the syntax error. > > I finally just got rid of

SOLVED / Minor Bug? :cf2: Mysterious Syntax error

2010-02-26 Thread Andreas.Balg
Thanks for your suggestion, but infact it does not change anything here renaming the modules itself - I just renamed the module to more usual name without the colon but as before it works but still throws the syntax error. I finally just got rid of the syntax error by writing the variable $(ho

Re: cf2: Mysterious Syntax error

2010-02-26 Thread Paul Krizak
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 Southwest Pkwy MS B200.3A Senior System

Re: lastseen confusion

2010-02-26 Thread Mark Burgess
I don't know what "in transition" means. The last seen report is available in community. Select a report type like html and and output directory (default /var/cfengine/reports) M Erlend Leganger wrote: > On 26 February 2010 10:05, Mark Burgess wrote: >> I think I wrote about it in a special t

Re: file transfer the 2nd try

2010-02-26 Thread Nakarin Phooripoom
You should add a shared point, either folders or files, to server access_rules. bundle server access_rules { access: "/srv/cf-serverd" admit => { "172\.24\..*" }; "/jawoll" admit => { "172\.24\..*" } } Cheers, --Nakarin On Feb 26, 2010, at 11:38 AM, Seifert

Re: lastseen confusion

2010-02-26 Thread Erlend Leganger
On 26 February 2010 10:05, Mark Burgess wrote: > > I think I wrote about it in a special topics guide on reporting... > I guess this is the link to that guide: https://cfengine.com/inside/document/SpecialTopic_Reporting.pdf But it didn't help me, it mentions cf-report once and lastseen once, bo

cf2: Mysterious Syntax error

2010-02-26 Thread Andreas.Balg
Hi there , the following line gives me errors although either way infact it seems to work as expected. Whats the problem - how do I have to write it? Where is my error? cf.groups contains the following: groups: # this preparatory module sets groups from contents of hostlist.xml service

file transfer the 2nd try

2010-02-26 Thread Seifert, Christian
Here ist my configuration: cf-serverd.cf on the policy server: body server control { trustkeysfrom => { "172.24.1.58" }; allowconnects => { "172.24.1.58" }; maxconnections => "10"; logallconnections => "true"; } bundle server access_rules { access: "/srv/cf-serverd" ad

Re: File Transfer

2010-02-26 Thread Erlend Leganger
On 26 February 2010 11:00, Seifert, Christian wrote: > I want to transfer some files from a server to any client. That’s my task > > > Well, the example given can easily be expanded to transfer some files from a server (the policy server) to any client, so I think you have the solution or am I mi

Re: lastseen confusion

2010-02-26 Thread Mark Burgess
I think I wrote about it in a special topics guide on reporting... Erlend Leganger wrote: > On 26 February 2010 08:48, Mark mailto:m...@iu.hio.no>> > wrote: > > It works perfectly here > > > Mark > > > Good, but I don't know how to use and I can't find any documentation on > it. Wher

Re: lastseen confusion

2010-02-26 Thread Erlend Leganger
On 26 February 2010 08:48, Mark wrote: > It works perfectly here > > > Mark > Good, but I don't know how to use and I can't find any documentation on it. Where is cf-report documented? I tried the cf3-reference, cf3-tutoial and cf-report --help, but couldn't find a good description of how to use

Re: File Transfer

2010-02-26 Thread Erlend Leganger
On 26 February 2010 08:06, Seifert, Christian wrote: > Hello everybody, > > for my IT education i have to do a automatically file transfer from a > policy server to any client servers with cfengine. Has anyone a hint or an > example configuration on his machines which could help me? > I am not qu