Re: CFEngine Help: Re: executable file doesn't exist. bundles processing.

2012-04-26 Thread Denis Zinevich
Thanks man ! That worked. Exactly what i need. 24.04.2012, 21:19, "no-re...@cfengine.com" : > Forum: CFEngine Help > Subject: Re: executable file doesn't exist. bundles processing. > Author: phnakarin > Link to topic: https://cfengine.com/forum/read.php?3,25667,25676#msg-25676 > > This warning is

Re: CFEngine Help: Re: executable file doesn't exist. bundles processing.

2012-04-24 Thread Denis Zinevich
24.04.2012 20:43, no-re...@cfengine.com wrote: > I would rather check for the binary first then run returnzero() to avoid the > problem. For example; But isn't it same as I'm doing ? The one difference is that you propose to do it in one bundle and I'm using two. In case I mailed before I do: me

Re: executable file doesn't exist. bundles processing.

2012-04-24 Thread Denis Zinevich
thanks. That what i guessed. But it there way to avoid this ? 24.04.2012, 16:00, "Neil Watson" : > During the run, and the three sub-runs, Cfengine will attempt to > evaluate variables and classes.  So the commands that may be associated > with vars and classes promises will be run, if possible, e

executable file doesn't exist. bundles processing.

2012-04-24 Thread Denis Zinevich
Hi, Seems it is some cf specific that I missed. Can someone clarify please. I have such bundles: bundle agent install_custom_pack { files: . classes: "custom_pack_installed" expression => fileexists("/usr/bin/customfile"); methods: custom_pack_installed:: "install_custom_plu

methods usage for different bundlesequnce

2012-04-04 Thread Denis Zinevich
Hello all, I'm using one bundle to make servers grouping. In bundlesequence i have: bundlesequence => { "update", "garbage_collection", "groups", "main" }; groups define server groups: something like:

Re: CFEngine Help: Re: bundle common variables

2012-04-03 Thread Denis Zinevich
btw, one more clarification about bundle common do i have to include my common bundles to body common control bundlesequence ? 03.04.2012, 18:03, "Nick Anderson" : > On 04/03/2012 09:55 AM, Denis Zinevich wrote: > >>  thanks. >>  just half a minute ago figured out my

Re: CFEngine Help: Re: bundle common variables

2012-04-03 Thread Denis Zinevich
thanks. just half a minute ago figured out my mistake. Here's piece of doc, may be usefull for someone else: "Only local lists can be expanded directly. Thus ‘$(list)’ can be expanded but not ‘$(context.list)’. Global list references have to be mapped into a local context if you want to use them

bundle common variables

2012-04-03 Thread Denis Zinevich
Hello, I didn't found yet any documentation regarding this. Can anyone clarify for bundle common somebundle only classes are global ? not variables ? I'm trying to make: bundle common test { vars: "test" string => "2"; } and i can't access that var from agent bundles. ( tried both $

CFEngine Help: Re: installing specific packages from local directory

2012-04-02 Thread Denis Zinevich
Thanks, that works fine, but i was wondering if there is some less smart/clever way ? Like just to specify directory/list of files and install everything in it. What i'm thinking about is just say: - vars: "r" slist => { "R-core-2.12.2-1.el5.x86_64.rpm", "libRmath-2.12.2-1.el5.

installing specific packages from local directory

2012-03-30 Thread Denis Zinevich
Hello all, can someone clarify what is right way for installing rpm's from local directory ? I can do this with command: rpm -i but that does not seem to be right way. I've tried to get use of some bodis from stdlib, but all of them seems to be much more complex and flexible than i nee

Re: CFEngine Help: Re: vars values depending on classes

2012-02-28 Thread Denis Zinevich
Thanks guys, that helped. But is it normal approach ? I mean if i want to have default xmx value for all servers that i didn't mention explicitly ? 28.02.2012, 17:05, "no-re...@cfengine.com" : > Forum: CFEngine Help > Subject: Re: vars values depending on classes > Author: zzamboni > Link to top

vars values depending on classes

2012-02-28 Thread Denis Zinevich
Hello, I'm trying to get template file with different values for different envs. So I'm using expand_template and trying to get different values like in Neil's example (http://watson-wilson.ca/2011/05/template-files-using-cfengine.html) Piece of my conf: bundle agent jboss_install { classes: