Cfengine Help: Re: How to extract values (not keys) from an array to slist?

2011-03-16 Thread no-reply
Forum: Cfengine Help Subject: Re: How to extract values (not keys) from an array to slist? Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,21174,21177#msg-21177 I struggled with this same problem some time ago, and eventually realized that I didn't really need a getvalues()

Cfengine Help: Re: set_user_field multiple lines

2011-03-16 Thread no-reply
Forum: Cfengine Help Subject: Re: set_user_field multiple lines Author: regan99 Link to topic: https://cfengine.com/forum/read.php?3,21094,21176#msg-21176 Was your goal for it to look like this? backoffice:x:1002:user1,user2,user3 exploration:x:1003:user4,user5 If so, I think it's the same iss

Cfengine Help: Re: How to extract values (not keys) from an array to slist?

2011-03-16 Thread no-reply
Forum: Cfengine Help Subject: Re: How to extract values (not keys) from an array to slist? Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,21174,21175#msg-21175 Mike Svoboda Wrote: --- > So, I can use getindexes() to extract th

How to extract values (not keys) from an array to slist?

2011-03-16 Thread Mike Svoboda
So, I can use getindexes() to extract the indexes of an array into an slist. I need to do the opposite, and extract just the values. Anyone have a working solution? I just need to be able to create an slist with all of the values of the array. Thanks Mike _

Cfengine Help: Re: your opinion about user account management

2011-03-16 Thread no-reply
Forum: Cfengine Help Subject: Re: your opinion about user account management Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,21170,21173#msg-21173 santa Wrote: --- > I would like to know what's the best way to manage user accou

Re: Cfengine Help: Re: Bundling the configuration into modules

2011-03-16 Thread Jesse Becker
On Wed, Mar 09, 2011 at 07:44:58AM -0500, no-re...@cfengine.com wrote: >Forum: Cfengine Help >Subject: Re: Bundling the configuration into modules >Author: neilhwatson >Link to topic: https://cfengine.com/forum/read.php?3,20949,21008#msg-21008 > >Typically files are organizes thus: > >Cfengine poli

Cfengine Help: Re: Class based scheduling?

2011-03-16 Thread no-reply
Forum: Cfengine Help Subject: Re: Class based scheduling? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,21169,21171#msg-21171 Yes, I believe that should work. Test carefully though. I've made a few scheduling mistakes in the past.

Cfengine Help: your opinion about user account management

2011-03-16 Thread no-reply
Forum: Cfengine Help Subject: your opinion about user account management Author: santa Link to topic: https://cfengine.com/forum/read.php?3,21170,21170#msg-21170 Hello, I would like to know what's the best way to manage user accounts with cfengine 3. I think I will have to manage around 30 users

Cfengine Help: Class based scheduling?

2011-03-16 Thread no-reply
Forum: Cfengine Help Subject: Class based scheduling? Author: daveseff Link to topic: https://cfengine.com/forum/read.php?3,21169,21169#msg-21169 If I want to limit a group of machines from waking up and phoning home to a certain time, is this a vaild use of the config? body executor control {

Cfengine Help: Re: Cfengine Help: Re: How to create classes of operating system sorted by version

2011-03-16 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: How to create classes of operating system sorted by version Author: max_fr Link to topic: https://cfengine.com/forum/read.php?3,21167,21168#msg-21168 Thanks you both! Yes, the second solution is more easy to use. Max

Re: Cfengine Help: Re: How to create classes of operating system sorted by version

2011-03-16 Thread Trond Hasle Amundsen
no-re...@cfengine.com writes: > classes: > "redhat_5_4_plus" or => {"redhat_5_4", "redhat_5_5", "redhat_5_6", > "redhat_5_7", "redhat_5_8"}; > > > Not super elegant but it should cover all possible future Red Hat 5 updates. If we're going for elegance I would use classmatch(): classes:

Cfengine Help: Re: How to create classes of operating system sorted by version

2011-03-16 Thread no-reply
Forum: Cfengine Help Subject: Re: How to create classes of operating system sorted by version Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,21163,21166#msg-21166 classes: "redhat_5_4_plus" or => {"redhat_5_4", "redhat_5_5", "redhat_5_6", "redhat_5_7", "redhat_5_8"};

Cfengine Help: Re: Cfengine Help: Re: Running cf-serverd as non-root

2011-03-16 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Running cf-serverd as non-root Author: berntjernberg Link to topic: https://cfengine.com/forum/read.php?3,21152,21165#msg-21165 Hi, One can start cf-serverd as non-root with strict permissions on user's home directory and .cfagent. # ls -ld

Cfengine Help: Re: Cfengine Help: Re: Running cf-serverd as non-root

2011-03-16 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Running cf-serverd as non-root Author: berntjernberg Link to topic: https://cfengine.com/forum/read.php?3,21152,21164#msg-21164 Hi, Thanks for the response, I think this is an important discussion. > Having said that, let's consider least priv

Cfengine Help: How to create classes of operating system sorted by version

2011-03-16 Thread no-reply
Forum: Cfengine Help Subject: How to create classes of operating system sorted by version Author: max_fr Link to topic: https://cfengine.com/forum/read.php?3,21163,21163#msg-21163 Hi, I would like create classes of operating system sorted by minor version. For example, i have many redhat version

Re: Random Segfault

2011-03-16 Thread Eystein Måløy Stenberg
Ted, There were two race conditions in cf-serverd of Cfengine 3.1.2. It is likely that this is what you are seeing, so please try to upgrade to 3.1.4. If that does not help, please have a look at http://www.cfengine.org/pages/troubleshoot to see how to gather enough data for it to be fixed. --