Cfengine Help: Re: Simple File Edits

2010-07-06 Thread no-reply
Forum: Cfengine Help Subject: Re: Simple File Edits Author: AS5C0TT Link to topic: https://cfengine.com/forum/read.php?3,17636,17641#msg-17641 Definitely think the COPBL has the stuff you need. Take a look at http://www.cfengine.org/manuals/cf3-solutions.html#Add-users-to-passwd-and-group It

Re: Simple File Edits

2010-07-05 Thread tktucker
The solution page has an example for adding users and it contains examples for editing lines which you could use for the LogLevel change. adding users -> http://www.cfengine.org/manuals/cf3-solutions.html#Add-users-to-passwd-and-group edit_line -> http://www.cfengine.org/manuals/cf3-solutio

Simple File Edits

2010-07-05 Thread Ben Rockwood
I'm having a very hard time wrapping my head around Cfengine3. One example is simple line edits in a config file. Let say I want to change "LogLevel info" to "LogLevel debug" in /etc/ssh/sshd_config, whats the right way to do that? Another is adding a new user. Do I need to call "useradd ..." a