Namespace change

2012-09-11 Thread Mark Burgess
As discussed with Ted Z. around the design center testing/use of namespaces, we realize we could improve the consistency of the language by reversing the decision to avoid ":" as the dereference operator and change "." to ":", so we have namespace:bundle_scope.variable_lval as the hierarchy.

Re: Using vars inside commands

2012-09-11 Thread Diego Zamboni
That should work fine. Are you sure the list is being properly populated? --Diego On Sep 11, 2012, at 6:00 PM, "André Luís Lopes" wrote: Hello, I just wanted to double-check with you guys if using a var inside a command really doesn't work in CFEngine3. Example : vars: "java_binary

Using vars inside commands

2012-09-11 Thread André Luís Lopes
Hello, I just wanted to double-check with you guys if using a var inside a command really doesn't work in CFEngine3. Example : vars: "java_binary" string => execresult("/bin/ls -l /usr/java/*/bin/java | /usr/bin/awk '{print $9}' | /bin/sed ':a;N;$!ba;s/\n/,/g'", "useshell"); "java_

Re: cfengine doesn't define class with the IPs of the loopback interface

2012-09-11 Thread Aliaksei Sheshka
On Thu, Sep 6, 2012 at 7:05 PM, Diego Zamboni wrote: > It seems there's a good set of valid use cases for this - would someone care > to open a feature request for it? Please use the tracker at > https://cfengine.com/dev/projects/core > Here is https://cfengine.com/dev/issues/1112 _

CFEngine Help: Re: configure:14448: error: Cannot find OpenSSL on HP-UX 11.31..... cfengine-3.2.4

2012-09-11 Thread no-reply
Forum: CFEngine Help Subject: Re: configure:14448: error: Cannot find OpenSSL on HP-UX 11.31. cfengine-3.2.4 Author: cfengine2o12 Link to topic: https://cfengine.com/forum/read.php?3,27200,27298#msg-27298 Thanks for the detailed respond.. I tried to build QDBM but make getting an error...

CFEngine Help: Re: configure:14448: error: Cannot find OpenSSL on HP-UX 11.31..... cfengine-3.2.4

2012-09-11 Thread no-reply
Forum: CFEngine Help Subject: Re: configure:14448: error: Cannot find OpenSSL on HP-UX 11.31. cfengine-3.2.4 Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,27200,27296#msg-27296 This is the pre-install script used in the PSF above: #!/sbin/sh # Product: cfengin

CFEngine Help: Re: configure:14448: error: Cannot find OpenSSL on HP-UX 11.31..... cfengine-3.2.4

2012-09-11 Thread no-reply
Forum: CFEngine Help Subject: Re: configure:14448: error: Cannot find OpenSSL on HP-UX 11.31. cfengine-3.2.4 Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,27200,27295#msg-27295 This is what I used to build cfengine 3.3.4. I use gmake from the Porting and Archive Centre b

CFEngine Help: Re: configure:14448: error: Cannot find OpenSSL on HP-UX 11.31..... cfengine-3.2.4

2012-09-11 Thread no-reply
Forum: CFEngine Help Subject: Re: configure:14448: error: Cannot find OpenSSL on HP-UX 11.31. cfengine-3.2.4 Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,27200,27294#msg-27294 Neither. I use qdbm from the HP-UX Porting and Archive Centre. ___

CFEngine Help: Re: configure:14448: error: Cannot find OpenSSL on HP-UX 11.31..... cfengine-3.2.4

2012-09-11 Thread no-reply
Forum: CFEngine Help Subject: Re: configure:14448: error: Cannot find OpenSSL on HP-UX 11.31. cfengine-3.2.4 Author: cfengine2o12 Link to topic: https://cfengine.com/forum/read.php?3,27200,27293#msg-27293 Are you using tokyo cabinet db or BerckelyDB? Appreciate if you provide the steps to b

CFEngine Help: Re: CFEngine use of SIGAR API: System Information Gathering and Reporting

2012-09-11 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine use of SIGAR API: System Information Gathering and Reporting Author: mvpel Link to topic: https://cfengine.com/forum/read.php?3,27288,27292#msg-27292 I suppose the level of concern about not having been updated since 2010 depends on whether it's "mature

CFEngine Help: Re: Hostname gets truncated at 8 chars in cfengine-community 3.3.5 on hpux 11.31

2012-09-11 Thread no-reply
Forum: CFEngine Help Subject: Re: Hostname gets truncated at 8 chars in cfengine-community 3.3.5 on hpux 11.31 Author: mvpel Link to topic: https://cfengine.com/forum/read.php?3,27262,27291#msg-27291 The classes are set in sysinfo.c in the DetectDomainName() function, which is given one argument

CFEngine Help: Re: CFEngine use of SIGAR API: System Information Gathering and Reporting

2012-09-11 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine use of SIGAR API: System Information Gathering and Reporting Author: mikesphar Link to topic: https://cfengine.com/forum/read.php?3,27288,27289#msg-27289 mvpel Wrote: --- > While working on implementing

CFEngine Help: CFEngine use of SIGAR API: System Information Gathering and Reporting

2012-09-11 Thread no-reply
Forum: CFEngine Help Subject: CFEngine use of SIGAR API: System Information Gathering and Reporting Author: mvpel Link to topic: https://cfengine.com/forum/read.php?3,27288,27288#msg-27288 While working on implementing sys.mac_addresses for HP-UX, I came across SIGAR: http://www.hyperic.com/produ

Re: CFEngine Help: Re: iterating over a global list

2012-09-11 Thread Gregory Matthews
On 11/09/12 15:51, no-re...@cfengine.com wrote: > > Implicit iteration over non-local variables was added in 3.3.0. > > https://github.com/cfengine/core/blob/3.3.x/ChangeLog well, that is pretty clear. Thanks for everyones input, I have a workaround in place until we can upgrade. We are migrating

CFEngine Help: Re: iterating over a global list

2012-09-11 Thread no-reply
Forum: CFEngine Help Subject: Re: iterating over a global list Author: Authority Link to topic: https://cfengine.com/forum/read.php?3,27280,27286#msg-27286 Implicit iteration over non-local variables was added in 3.3.0. https://github.com/cfengine/core/blob/3.3.x/ChangeLog __

Re: CFEngine Help: Re: iterating over a global list

2012-09-11 Thread Nick Anderson
On 09/11/2012 08:57 AM, no-re...@cfengine.com wrote: > The version mentioned, 3.2.1, is pretty old. You might consider an upgrade. > I am not certain that iteration over foriegn lists will work. Typical > practice is to make it local then iterate over that. > var: >'local_list' slist => {

CFEngine Help: Re: iterating over a global list

2012-09-11 Thread no-reply
Forum: CFEngine Help Subject: Re: iterating over a global list Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,27280,27283#msg-27283 It is best practice to have common bundles in the bundlesequence. While the agent will define variables and classes from a common bundle t

Re: iterating over a global list

2012-09-11 Thread Gregory Matthews
On 11/09/12 13:59, Seva Gluschenko wrote: > Gregory, > > Pay your attention to common bundles which are the only way to define > global variables, i.e.: eh? I thought all variables had global scope but they just needed to be qualified with the bundle name in which they are defined? G > > bundle

Re: iterating over a global list

2012-09-11 Thread Seva Gluschenko
Gregory, Pay your attention to common bundles which are the only way to define global variables, i.e.: bundle common g { vars: ... } Meanwhile, there's no need to include common bundles into the bundlesequence. -- Best, Seva 2012/9/11 Gregory Matthews : > what is wrong here? > > body common

iterating over a global list

2012-09-11 Thread Gregory Matthews
what is wrong here? body common control { bundlesequence => { "g", "test" }; inputs => { "cfengine_stdlib.cf" }; } bundle agent g { vars: "list" slist => { "1", "2", "3" }; } bundle agent test { reports: "debug: $(g.list)"; } results in: R: debug list: $(g.list) defining the list lo