Re: Directory permissions, and multiple body bundles.

2010-02-10 Thread Mark Burgess
> But one thing perl does very well is to allow the number of programmers > contributing content to scale - which seems to me to be the important > part if you want to avoid re-inventing every wheel and building things > from atoms by yourself. The point of using perl is that I can make an > http

Re: Directory permissions, and multiple body bundles.

2010-02-10 Thread Erlend Leganger
How about allowing inline body definitions so instead of this (adapted from the OP): bundle agent test{ files: "/root/.ssh/authorized_keys" create => "true", perms => m("600"); } body perms m(mode){ mode => "$(mode)"; } just write this: bundle agent test{ files:

Re: Directory permissions, and multiple body bundles.

2010-02-10 Thread NWatson
I'm a pretty good perl hacker. I often refer to perl as my Swiss army knife. However, using perl on the scale Cfengine is designed to handle would be difficult. Having to keep a collection of perl modules, and dependencies, all at the correct version across dissimilar UNIX platforms, some of

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

2010-02-10 Thread Justin Lloyd
Suppose you have an slist that contains a list the only netgroups you want in /etc/passwd (ignore /etc/shadow for this example) on a given system. It's easy to ensure they're all there, but how would you ensure that no other netgroups are in the file? For example, given: bundle agent test { va

Re: Directory permissions, and multiple body bundles.

2010-02-10 Thread Les Mikesell
On 2/10/2010 2:00 AM, Mark Burgess wrote: >> Can a mostly-uncoordinated >> set of people write different parts of a cfengine conf without namespace >> collisions? Is there a way to track internal version dependencies among >> the parts? > > Yes, there are private name spaces in cfengine. Cfengine

Re: Directory permissions, and multiple body bundles.

2010-02-10 Thread NWatson
Moving beyond the hypothetical, Cfengine is a practical solution to practical system administration problems. Why don't you describe some actual problems that you are facing and how you think Cfengine can help. We'll then be able offer our advice. Sincerely, -- Neil Watson 416-673-3465 CONFI

Re: Directory permissions, and multiple body bundles.

2010-02-10 Thread Les Mikesell
On 2/10/2010 1:20 PM, nwat...@symcor.com wrote: > Moving beyond the hypothetical, Cfengine is a practical solution to > practical system administration problems. Why don't you describe some > actual problems that you are facing and how you think Cfengine can help. > We'll then be able offer our ad

Re: Directory permissions, and multiple body bundles.

2010-02-10 Thread NWatson
Les, I think you'll do yourself a service by starting small. Evaluate Cfengine in small lab. Get a feel for how Cfengine works and how you manage objects with it. Then you'll be able to better judge how Cfengine help you. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING Thi