Passing iteratted lists to append_if_no_lines

2012-05-17 Thread Ron Parker
I am trying to create a bundle that will populate a users .ssh/authorized_keys on machines where they have accounts. I currently have: bundle agent ssh { vars: "user[user123]" string => "ssh-dss ...== user@machine"; "username"slist => getindices("user"); "no_$(usernam

Problems editing /etc/exports

2012-06-08 Thread Ron Parker
rting with whitespace_policy using various settings and the results have always been the new line being added even when one exists with only whitespace differences. The worst case scenario was using whitespace_policy where a new line was added for each export every single time cf-agent ran. Givi

Re: Problems editing /etc/exports

2012-06-11 Thread Ron Parker
exports" edit_line => cc_doexport("/export/dir1 192.168.159.0/255.255.255.0(rw)"); # Single tab in the middle of the string } bundle edit_line cc_doexport(line) { insert_lines: "$(line)" whitespace_policy => { "ignore_embedded" }; }

Re: Problems editing /etc/exports

2012-06-11 Thread Ron Parker
159.0/255.255.255.0(rw)"; insert_lines: "$(line)"; } Here, the delete_lines fail to delete the line the test.sh script creates. -rdp On Mon, Jun 11, 2012 at 10:03 AM, Ron Parker wrote: > On Fri, Jun 8, 2012 at 6:41 PM, Nick Anderson wrote: > >> Hey Ron, can y

Authentication problems with multiple interfaces

2012-06-12 Thread Ron Parker
:10.6.8.200) So, how do I get them to play nicely? I notice that the server mentions the agents VNIC IP in a couple places and its public IP in others. Also odd is the attempt by the client to access a file named /var/cfengine/ppkeys/root-.pub. On a sidenote the secondary IP on eth0:

Re: Authentication problems with multiple interfaces

2012-06-12 Thread Ron Parker
On Tue, Jun 12, 2012 at 8:53 AM, Ron Parker wrote: > I have a client machine that is attempting to copy some logs from > another client machine. They same public keys that the policy hub has > for the clients have been installed on each of the machines. > > Here is how their

Re: feature proposal for cfengine.el

2012-06-15 Thread Ron Parker
ton, auto-insert, yasnippet, srecode. See http://www.emacswiki.org/emacs/CategoryTemplates lists most of them, however auto-insert is conspicuously absent, http://www.emacswiki.org/emacs/AutoInsertMode. -- Ron Parker Don't type things you find on

To xdev or not to xdev

2012-06-19 Thread Ron Parker
It's not clear to me from the reference manual. If I want to set permissions on a directory and all of it's descendents that are not (NFS) mounts, do I want xdev to be true or false? -- Ron Parker Don't type things you find on the Internet int

180+ instances of cf-execd and cf-agent

2012-06-21 Thread Ron Parker
does not have any child processes showing up in pstree. The second question is how may I prevent this in the future but still have the system converge in a reasonable amount of time? -- Ron Parker Don't type things you find on the Internet into your com

Re: CFEngine Help: Re: 180+ instances of cf-execd and cf-agent

2012-06-21 Thread Ron Parker
fengine is shutdown. > > 2. For the longer-term strategy, plan a transition to a more recent version > of cfengine. > > ___ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cf

Removed packages treated as installed by stdlib

2012-06-22 Thread Ron Parker
t over the wall that corrected it on the Ubuntu box I was working with, https://github.com/cfengine/copbl/pull/10. -- Ron Parker Don't type things you find on the Internet into your computer! :(){ :|:&};: ___ Help-cfengine mailing list Help-cf

Directory is controlled by another user - trusting its content is potentially risky (possible race)

2012-06-27 Thread Ron Parker
k"), delete => tidy; processes: "svn" restart_class => "no_svn_running"; I know there's a potential race between setting the class and performing the deletion on the next pass, but in this specific case it would cause no problems. -- Ron P

Re: CFEngine Help: Re: Directory is controlled by another user - trusting its content is potentially risky (possible race)

2012-06-27 Thread Ron Parker
jects directory which also contain a .svn subdirectory. I could use a different recurse depth, but if so how would I limit it to lock files in the .svn subdirectories? I didn't see a way to build a list of directories and then iterate over those to find a specific file within them. -- Ron Pa

Re: CFEngine Help: Re: Directory is controlled by another user - trusting its content is potentially risky (possible race)

2012-06-27 Thread Ron Parker
nd nowhere else. On Wed, Jun 27, 2012 at 2:23 PM, Ron Parker wrote: > Thanks for the response Neil, > > On Wed, Jun 27, 2012 at 12:05 PM,  neilwatson wrote: > >> What does the '.*' mean in your mind?  Can that be replaced with a different >> recurse depth in  the d

Re: CFEngine Help: Re: Directory is controlled by another user - trusting its content is potentially risky (possible race)

2012-06-27 Thread Ron Parker
On Wed, Jun 27, 2012 at 2:30 PM, Jesse Becker wrote: > Could you use a module to generate an slist of ".svn directories with > lock files", and then iterate over that? My original implementation used an execresult to do that but I was trying to keep it all in CFEngine. I may have to revert to tha

File access granted only when cf-serverd is manually started

2012-07-13 Thread Ron Parker
ose messages go away and access is granted. And yes, it normally runs under root if I look at the process table. -- Ron Parker Never plug a non-switching power supply into 208V. ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/m