Concatenating "inputs" from slists seems broken for cf-serverd

2011-05-17 Thread Sjoerd Oostdijck
Hi everyone, I've been trying to do some concatenation of the "inputs" from several slists. Depending on class restrictions I want some slists to be added to the inputs. When this causes a certain slist to be empty a "cf_null" ends up in the "inputs". So far so good, and most everything works fin

Cfengine Help: Re: Cfengine Help: cfengine_stdlib.cf and hardclasses

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: cfengine_stdlib.cf and hardclasses Author: di3z Link to topic: https://cfengine.com/forum/read.php?3,21982,22005#msg-22005 For example, i have following commands defined: commands: reload_firewall:: "/sbin/iptables-restore /

Cfengine Help: Re: Cfengine Help: cfengine_stdlib.cf and hardclasses

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: cfengine_stdlib.cf and hardclasses Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,21982,22006#msg-22006 So the issue is not about ifvarclass, but about matching body names and classnames indeed. One possible approach i

Cfengine Help: Why promise_summary.log is not rotated?

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Why promise_summary.log is not rotated? Author: toddnni Link to topic: https://cfengine.com/forum/read.php?3,22007,22007#msg-22007 Hi. I'm just wondering that is there any reasons why the "$(sys.workdir)/promise_summary.log" isn't rotated. It is currently growing

Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Concatenating "inputs" from slists seems broken for cf-serverd Author: schattenfell Link to topic: https://cfengine.com/forum/read.php?3,22004,22008#msg-22008 Hello, I can confirm this behaviour. By using the following code, "any.cf" will not be included. #

Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Concatenating "inputs" from slists seems broken for cf-serverd Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,22004,22009#msg-22009 This behaviour is described in Cfengine Reference Manual. The only way to expand inputs this way is t

Re: where to put local promises? site.cf?

2011-05-17 Thread Nicolas Charles
On 13/05/2011 09:42, Aleksey Tsalolikhin wrote: > Sorry, I don't recall seeing this in any of the documentation > I've read so far, but are my promises supposed to go into > site.cf? Is that right? Sorry, I just haven't seen it mentioned > anywhere and it seems important, I want to make sure I

Cfengine Help: Re: strange output by cf-runagent

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: strange output by cf-runagent Author: schattenfell Link to topic: https://cfengine.com/forum/read.php?3,21961,22010#msg-22010 Thank you for the hint. I overlooked it in the documentation. Here ist he output: ##

Cfengine Help: Re: strange output by cf-runagent

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: strange output by cf-runagent Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,21961,22012#msg-22012 >From my experience, the only situtation when cf-runagent returns "!!" in the >end is the non-zero returning code from cf-agent on the

Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Concatenating "inputs" from slists seems broken for cf-serverd Author: schattenfell Link to topic: https://cfengine.com/forum/read.php?3,22004,22013#msg-22013 Oh, thats right. Thank you. Because it was possible with "bundlesequence" I thought I could do it the sa

Cfengine Help: Re: strange output by cf-runagent

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: strange output by cf-runagent Author: schattenfell Link to topic: https://cfengine.com/forum/read.php?3,21961,22014#msg-22014 In my scenario "testserver" ist both: client and policy host. Maybe this is the problem. I will do a test where the client is no policy h

Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Concatenating "inputs" from slists seems broken for cf-serverd Author: schattenfell Link to topic: https://cfengine.com/forum/read.php?3,22004,22015#msg-22015 But a little annotation to the documentation if "inputs": ##

Re: Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd

2011-05-17 Thread Sjoerd Oostdijck
On 5/17/11 2:02 PM, no-re...@cfengine.com wrote: > Forum: Cfengine Help Subject: Re: Concatenating "inputs" from slists > seems broken for cf-serverd Author: Seva Gluschenko Link to topic: > https://cfengine.com/forum/read.php?3,22004,22009#msg-22009 > > This behaviour is described in Cfengine Ref

Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Concatenating "inputs" from slists seems broken for cf-serverd Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,22004,22016#msg-22016 Well, in general, the rule is: lists cannot be expanded. The only way to expand a list is to define a

Cfengine Help: Re: What are the functions peers and peerleaders used for?

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: What are the functions peers and peerleaders used for? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,21993,22018#msg-22018 I believe that peers are used is such cases as hosts monitoring each other and for inter-host job scheduling. Ma

Cfengine Help: Re: User/Group Management

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: User/Group Management Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,21983,22019#msg-22019 @creategroups.groups does not exist, which is why it doesn't get expanded. I think you want @definegroups.group, which is where the group array is de

Re: where to put local promises? site.cf?

2011-05-17 Thread Aleksey Tsalolikhin
On Tue, May 17, 2011 at 5:07 AM, Nicolas Charles wrote: > On 13/05/2011 09:42, Aleksey Tsalolikhin wrote: >> Sorry,  I don't recall seeing this in any of the documentation >> I've read so far, but are my promises supposed to go into >> site.cf?   Is that right?  Sorry, I just haven't seen it menti

Cfengine Help: Re: Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,22004,22021#msg-22021 touch /var/cfengine/inputs/cf_null ? :) ___ Hel

Re: How do I set a persistent class in Cfengine 3?

2011-05-17 Thread Aleksey Tsalolikhin
On Mon, May 16, 2011 at 3:47 AM, Nicolas Charles wrote: > In the body class, you have "persist_time" that allows you to set the > number of minutes the related class should remain active > > In the cfengine_stdlib.cf : > > body classes state_repaired(x) > { > promise_repaired =>  { "$(x)" }; > per

invoking a module - when should I use the usemodule() function, or when a commands promise with module attribute set to true?

2011-05-17 Thread Aleksey Tsalolikhin
I see in the reference manual that there are two ways to invoke a module. 11.87 Function usemodule Modules must reside in WORKDIR/modules but no longer require a special naming convention. 7.1.3 module attribute of commands type promise (set to true) I guess function is there to give

Cfengine Help: Re: Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd Author: schattenfell Link to topic: https://cfengine.com/forum/read.php?3,22004,22024#msg-22024 Hello, now I can confirm what is meant. If you want to make an efficient config wher

Cfengine Help: Re: Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd Author: jeromebaum Link to topic: https://cfengine.com/forum/read.php?3,22004,22025#msg-22025 Say you're on CL_webserver. @cf_database isn't defined, so @(cf_database) is expanded

Cfengine Help: Re: Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd Author: schattenfell Link to topic: https://cfengine.com/forum/read.php?3,22004,22026#msg-22026 OK, and what is the best way in this test scenario, to get these empty lists defined

Cfengine Help: Re: Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd Author: jeromebaum Link to topic: https://cfengine.com/forum/read.php?3,22004,22027#msg-22027 Don't know about the "best" way, but: 1. Can you define a default empty list and overr

Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Concatenating "inputs" from slists seems broken for cf-serverd Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,22004,22028#msg-22028 Start with a default list and build upon it. body common control { bundlesequence => { "test" }; inputs

Cfengine Help: Re: invoking a module - when should I use the usemodule() function, or when a commands promise with module attribute set to true?

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: invoking a module - when should I use the usemodule() function, or when a commands promise with module attribute set to true? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,22023,22029#msg-22029 I'm not sure what Mark and co. had in mind

Cfengine Help: Re: Concatenating "inputs" from slists seems broken for cf-serverd

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Concatenating "inputs" from slists seems broken for cf-serverd Author: schattenfell Link to topic: https://cfengine.com/forum/read.php?3,22004,22030#msg-22030 I thought appending a list elements to the same list with new declaration like: "inputs" slist => { "up

Cfengine Help: Re: Cfengine Help: Re: Successful 3.1.4 build on HP-UX 11.11

2011-05-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Successful 3.1.4 build on HP-UX 11.11 Author: mvpel Link to topic: https://cfengine.com/forum/read.php?3,21916,22031#msg-22031 I ran a configure and build with the AC_REPLACE_FUNC configure.ac change for setlinebuf(), and everything worked as e

Re: Cfengine Help: Re: Cfengine Help: Re: Successful 3.1.4 build on HP-UX 11.11

2011-05-17 Thread Mikhail Gusarov
On 17.05.2011 21:44, no-re...@cfengine.com wrote: > On another point, I'm not quite sure where to handle the > _XOPEN_SOURCE_EXTENDED thing to fix the "socklen_t" vs. "int" warning in > client_protocol.c and server.c - we'd probably want to check for the presence > of the socklen_t type, but th

regex problem - version 3.1.4

2011-05-17 Thread Jones, Stephen (MAS)
Hi all, I'm trying to do the simplest thing and it's becoming very frustrating. In my present company someone wrote a shell script to clean up files, rotate logs etc and I'm trying to replicate it's functionality with cfengine. Here is what I have so far... body common control { bundlesequence

Multiple cf-serverd processes per host

2011-05-17 Thread Andrey Bondarenko
I want to use cfengine to manage configuration of several non-root accounts on a server and I don't have root login. Both cf-agent, and cf-execd are running just fine. Now I'd like to use cf-runagent to force policy updates, but there is a problem. AFAIIK cf-serverd should be run by each target ac

Re: regex problem - version 3.1.4

2011-05-17 Thread Mikhail Gusarov
On 18.05.2011 01:18, Jones, Stephen (MAS) wrote: > commands: > >"/bin/gzip /var/adm/$(rotate_daily_var_adm).*" contain => shellcommand; > } body contain shellcommand { useshell => "yes"; } -- Mikhail Gusarov ___ Help-cfengine mailing