CFEngine Help: User Management

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: User Management Author: josephvj Link to topic: https://cfengine.com/forum/read.php?3,24588,24588#msg-24588 Hi, I'm new to this platform. I wonder if it's possible to write a script for checking users and create them if not. A simple basic script is as below, no id

Re: CFEngine Help: User Management

2012-01-19 Thread Nick Anderson
On 01/19/2012 08:21 AM, no-re...@cfengine.com wrote: > Forum: CFEngine Help > Subject: User Management > Author: josephvj > Link to topic: https://cfengine.com/forum/read.php?3,24588,24588#msg-24588 > > Hi, > > I'm new to this platform. I wonder if it's possible to write a script for > checking

CFEngine Help: Re: CFEngine Help: User Management

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine Help: User Management Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,24589,24590#msg-24590 Nick, thanks for the mention. Just for reference, an up-to-date version of my create_users() bundle (which is used in my book - I think for

Re: CFEngine Help: Re: CFEngine Help: User Management

2012-01-19 Thread Nick Anderson
On 01/19/2012 09:48 AM, no-re...@cfengine.com wrote: > Author: zzamboni > Not sure if it would really be lighter, since now we have two processes (expr > and date). > > I personally don't like the direct-file-editing approach to managing users, > because it is highly system-dependent, and it onl

CFEngine BoF time change to 6:00 PM (at So Cal Linux Expo on Friday, Jan 20 in Los Angeles)

2012-01-19 Thread Aleksey Tsalolikhin
Those of you attending SCALE (www.socallinuxexpo.org), please note the CFEngine BoF has been rescheduled to 6:00 PM - 7:00 PM in the Century AB room. Best, Aleksey ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/lis

CFEngine Help: Re: cfengine rpm spec file

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: Re: cfengine rpm spec file Author: Jimbo Link to topic: https://cfengine.com/forum/read.php?3,20297,24593#msg-24593 +1 this would also help building RPMs for non-Linux operating systems ___ Help-cfengine mailing list Help-c

CFEngine Help: Re: error building cfengine 3.1.5 under AIX w/ IBM xlc compiler

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: Re: error building cfengine 3.1.5 under AIX w/ IBM xlc compiler Author: jonesy1234 Link to topic: https://cfengine.com/forum/read.php?3,24547,24594#msg-24594 Take a look at the reference manual - http://cfengine.com/manuals/cf3-reference.html#A-complete-configuration

CFEngine Help: Promises repaired in promise_summary

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: Promises repaired in promise_summary Author: jonesy1234 Link to topic: https://cfengine.com/forum/read.php?3,24595,24595#msg-24595 I'm struggling to understand why cfengine reports 8% repaired in the following output when it hasn't reported to have done anything? Cou

CFEngine Help: Re: maintaining /etc/security/limits.conf with cf3

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: Re: maintaining /etc/security/limits.conf with cf3 Author: n...@cmdln.org Link to topic: https://cfengine.com/forum/read.php?3,21465,24596#msg-24596 I stumbled on this today while searching for a solution to maintin the limits.conf file, curious if anyone was able to

CFEngine Help: Re: Promises repaired in promise_summary

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: Re: Promises repaired in promise_summary Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,24595,24597#msg-24597 When a command promise is run it is considered repaired. ___ Help-cfengine mailing list

CFEngine Help: Re: Promises repaired in promise_summary

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: Re: Promises repaired in promise_summary Author: simonblake Link to topic: https://cfengine.com/forum/read.php?3,24595,24598#msg-24598 returnszero and execresult don't count as repaired promises, so if you're running commands to establish the state of the system, the

Re: CFEngine Help: Re: Promises repaired in promise_summary

2012-01-19 Thread Nick Anderson
On 01/19/2012 04:09 PM, no-re...@cfengine.com wrote: > returnszero and execresult don't count as repaired promises, so if you're > running commands to establish the state of the system, they can be a good way > to reduce the number of repairs reported every run. So instead of doing Thanks for c

CFEngine Help: issue using PCRE regex to filter part of the line

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: issue using PCRE regex to filter part of the line Author: milindk Link to topic: https://cfengine.com/forum/read.php?3,24600,24600#msg-24600 I want to append every kernel like in grub.conf with elevator=noop , but I want to filter the lines from appending the elevato

CFEngine Help: Re: cfengine rpm spec file

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: Re: cfengine rpm spec file Author: simonblake Link to topic: https://cfengine.com/forum/read.php?3,20297,24601#msg-24601 +1, particularly if we could have the debian control files as well, to make it easy to build a debian package from the source. __

CFEngine Help: Re: Promises repaired in promise_summary

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: Re: Promises repaired in promise_summary Author: jonesy1234 Link to topic: https://cfengine.com/forum/read.php?3,24595,24602#msg-24602 So I'm using some modules to pull in values from the OS as follows:- bundle agent modules { commands: "$(sys.workdir)/input

CFEngine Help: Dealing with vars changing

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: Dealing with vars changing Author: jonesy1234 Link to topic: https://cfengine.com/forum/read.php?3,24603,24603#msg-24603 I have a setup that requires a slightly different value for a var depending a class. For example most of my systems run standard AIX syslog, two r

Re: CFEngine Help: Dealing with vars changing

2012-01-19 Thread Nick Anderson
On 01/19/2012 10:52 PM, no-re...@cfengine.com wrote: > Forum: CFEngine Help > Subject: Dealing with vars changing > Author: jonesy1234 > Link to topic: https://cfengine.com/forum/read.php?3,24603,24603#msg-24603 > > I have a setup that requires a slightly different value for a var depending a > c

Re: CFEngine Help: Dealing with vars changing

2012-01-19 Thread Nick Anderson
On 01/19/2012 11:10 PM, Nick Anderson wrote: > I dont understand how the variables arent clobbering eachother in this > policy. > > Maybe its late and I am missing something, but it looks to me like your > redefining daemon, processes, argument, cfg_file, cfg_source, mode, > user, group. Did you i

CFEngine Help: Re: Dealing with vars changing

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: Re: Dealing with vars changing Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,24603,24606#msg-24606 Mike Svoboda posted this example of doing something similar to what you want: https://cfengine.com/forum/read.php?3,24105,24120 I think this is

CFEngine Help: Re: issue using PCRE regex to filter part of the line

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: Re: issue using PCRE regex to filter part of the line Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,24600,24607#msg-24607 >From my quick evaluation, your promise should be defined like follows: "^\s*kernel\s+(?!.*elevator=.*)" ___

CFEngine Help: Re: issue using PCRE regex to filter part of the line

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: Re: issue using PCRE regex to filter part of the line Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,24600,24608#msg-24608 This is a bit of a kludge, but it works. The add_parameter() bundle reads the file and determines which ones start with t

CFEngine Help: Re: issue using PCRE regex to filter part of the line

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: Re: issue using PCRE regex to filter part of the line Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,24600,24609#msg-24609 Or you could use Seva's regex and have a much shorter and simpler policy. I think I got a bit carried away :) I have edi

CFEngine Help: Re: maintaining /etc/security/limits.conf with cf3

2012-01-19 Thread no-reply
Forum: CFEngine Help Subject: Re: maintaining /etc/security/limits.conf with cf3 Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,21465,24610#msg-24610 The code below works, if CFEngine is the only thing that touches the file, because it needs to empty it every time. The par