RE: Retrieving certain files from a directory

2010-03-18 Thread Justin Lloyd
riginal Message- From: nwat...@symcor.com [mailto:nwat...@symcor.com] Sent: Thursday, March 18, 2010 12:25 PM To: Justin Lloyd Cc: help-cfengine@cfengine.org; help-cfengine-boun...@cfengine.org; Nakarin Phooripoom Subject: RE: Retrieving certain files from a directory help-cfengine-boun...@cfen

RE: Retrieving certain files from a directory

2010-03-18 Thread NWatson
help-cfengine-boun...@cfengine.org wrote on 2010-03-18 14:09:04: > I'm actually confused about depth_search. Here's what the documentation > says: > > "When searching recursively from a directory, the parent directory is > not part of the search. It is only the anchor point. To alter the > parent

RE: Retrieving certain files from a directory

2010-03-18 Thread Justin Lloyd
the problem. Thanks! Justin -Original Message- From: Nakarin Phooripoom [mailto:mynameisje...@gmail.com] Sent: Thursday, March 18, 2010 4:06 AM To: Justin Lloyd Cc: help-cfengine@cfengine.org Subject: Re: Retrieving certain files from a directory Is this what you would like to have?

RE: Retrieving certain files from a directory

2010-03-18 Thread Justin Lloyd
: Retrieving certain files from a directory Can you show us what you've tried? -- Neil Watson Linux/UNIX Consultant http://watson-wilson.ca ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-

RE: Retrieving certain files from a directory

2010-03-18 Thread Justin Lloyd
hanks, Justin -Original Message- From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of Erlend Leganger Sent: Thursday, March 18, 2010 1:26 AM To: help-cfengine@cfengine.org Subject: Re: Retrieving certain files from a directory On 17 March 2010

RE: Retrieving certain files from a directory

2010-03-18 Thread Justin Lloyd
fengine@cfengine.org Subject: Re: Retrieving certain files from a directory Is this what you would like to have? # add access_rule() to cf-serverd config on the policy_server bundle server access_rules() { access: "/usr/local/etc" handle => "grant_access_etcfiles

Re: Retrieving certain files from a directory

2010-03-18 Thread Nakarin Phooripoom
Is this what you would like to have? # add access_rule() to cf-serverd config on the policy_server bundle server access_rules() { access: "/usr/local/etc" handle => "grant_access_etcfiles", comment => "Grant access to etc configurations", admit => { "192.168.200.2" }; # my cl

Re: Retrieving certain files from a directory

2010-03-18 Thread Erlend Leganger
On 17 March 2010 23:37, Justin Lloyd wrote: > > Ok, I'm stumped again. I've been working on a problem for hours. I want > to effectively do the following on each client: > > client# scp policy_host:/usr/local/etc/*.rc /usr/local/etc > > but I can't figure out how to set up the access rules and fil

Re: Retrieving certain files from a directory

2010-03-17 Thread Neil Watson
Can you show us what you've tried? -- Neil Watson Linux/UNIX Consultant http://watson-wilson.ca ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Retrieving certain files from a directory

2010-03-17 Thread Justin Lloyd
Ok, I'm stumped again. I've been working on a problem for hours. I want to effectively do the following on each client: client# scp policy_host:/usr/local/etc/*.rc /usr/local/etc but I can't figure out how to set up the access rules and files promise. I keep getting either access errors or a copy