gt;
> It makes sense when they're considered together, and it's better syntax than
> Min20_24_59.
>
>
> On Oct 12, 2012, at 10:21 AM, Brad Beyenhof wrote:
>
>> On Fri, Oct 12, 2012 at 7:31 AM, Bas van der Vlies wrote:
>>>
>>> When i specify a
16:26:20 CEST 2012
--
****************
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services Amsterdam, The Netherlands *
smime.p7s
Description: S
" is not
allowed in 'edit_line' constraint body, near token '2"'
It would be nice if the kind of checking could be done for other sections.
--
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Comp
fferences
between forum and email messages.
--
****************
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services Amsterdam, The Netherlands *
*
ist.*
cf3> Comment: Remove all files starting with security.*
cf3> Comment: Remove file xpra.squeeze
cf3> Comment: Copy the syslog-ng config file
cf3> Comment: Copy the syslog-ng config file
cf3> Comment: Copy the syslog-ng config file
cf3> Com
On 09/20/2012 05:10 PM, Bas van der Vlies wrote:
> On 09/20/2012 04:58 PM, no-re...@cfengine.com wrote:
>> Forum: CFEngine Help
>> Subject: Re: problem with variable in bundle agent
>> Author: neilhwatson
>> Link to topic: https://cfengine.com/forum/read.php?3,27443,274
gt; reasonable solution to the problem to you? Do you have other ideas?
>
Jessica,
We have the same command in our promises.cf file to make sure cf-agent is run
with up-to-date file:
{{{
exec_command => "$(sys.workdir/bin//cf-agent -f failsafe.cf &&
$(sys.workdir)/bin/cf
perms_cp'
>
I did not include it. Here is the body:
body copy_from sara_hash_no_perms_cp(from,server)
{
source => "${from}";
servers => { "${server}" };
preserve => "false";
compare => "hash";
}
--
**
On 09/20/2012 11:31 AM, Bas van der Vlies wrote:
> Cfengine community: 3.3.2
> OS: debian wheezy
>
> I have the following bundle:
>
> bundle agent sara_template_process(final_destination, owner, mode)
> {
> vars:
>
> any::
> "tem
t; Object /etc/node_status/templates/autofs had permission 600, changed
it to 400
cf3> ?> defining promise result class template_copied_resolv_conf
cf3> -> Updated file from install2:/data/cfengine3/templates/autofs
cf3> ?> defining promise result class template_copied_
Later on in the code cfengine does
another version check.
{{{
Checking if latest available version is newer than installed...
}}}
here is the decision to kskip the package.
I have reported the bug and a patch is included in the ticket:
* https://cfengine.com/dev/issues/1165
* https://cfengine.com/bugtracker/v
Erland,
There are Solaris packages available on:
* http://www.opencsw.org/packages/CSWcfengine3utils
regards
--
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services
send i pull request and here are my outputs with the patch commited:
{{{
: sys.arch value is x86_64
R: sys.cdate value is Tue_Jul_24_14_23_34_2012
R: sys.cf_agent value is "/var/lib/cfengine3/bin/cf-agent"
R: sys.cf_execd value is "/var/lib/cfengine3/bin/cf-execd"
R: s
s qualified */
char *p = strchr(nodename, '.');
if (p != NULL)
{
strlcpy(uqname, nodename, MIN(CF_BUFSIZE, p - nodename + 1));
}
else
{
strcpy(uqname, nodename);
}
strcpy(domain, ""); &
#
47 # common variables:
48 # * string: certifcate.config_dir - directory on the host
49 # * string: certifcate.bundle_dir - directory in the policy
server
50 # * string: certifcate.local_ca_dir - directory on host to include
certificate that must include
51 #
>
> In this case the default value kicks in if the string is empty or if it
> starts with a dollar sign.
>
> Neat isn't it? :)
>
Should cfengine detect that the variable has not been resolved and use the
default value?
--
***
On 22 jun. 2012, at 18:23, Ted Zlatanov wrote:
> On Thu, 21 Jun 2012 15:44:48 +0200 Bas van der Vlies wrote:
>
> BvdV> On 06/21/2012 02:50 PM, Ted Zlatanov wrote:
>>> On Thu, 21 Jun 2012 13:46:15 +0200 Bas van der Vlies wrote:
>
>>> I have not updated CFEng
On 06/21/2012 02:50 PM, Ted Zlatanov wrote:
> On Thu, 21 Jun 2012 13:46:15 +0200 Bas van der Vlies wrote:
>
> BvdV> Question which cfengine_stdlib.cf to use? Is copbl repository the
> leading one
>
> BvdV> There is one in the copbl and one in the design-center repos
}}}
So there are 4 different versions in the cfengine repositories!
regards
--
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services Amsterdam, The Netherlands
iable expected, but "@{}" is malformed Naked
> variable expected, but "@{}" is malformed Naked variable expected, but "@{}"
> is malformed Naked variable expected, but "@{}" is malformed
>
>
I had also the kind of Periodically emails. Since we upgrade our nodes
Fix compilation on Solaris 11 (Mantis #1091).
>
> Downloads:
>
> https://cfengine.com/source-code/download?file=cfengine-3.3.2.tar.gz
>
> Checksums:
>
> MD5 13235bfa13f8cbfb53517ac2244803ce
> SHA1 e669f51bbc31f65cfd45bc895d0b101287606563
>
--
*
cause it. Can anyone else
> reproduce?
09:08 gb-r11n7.irc.sara.nl:/var/tmp/bas/2706930
root# cf-agent -KI ./test_groups.cf
Unexpected argument with no preceding option: ./test_groups.cf
Fatal CFEngine error: Aborted
no segv
--
*************
"varray[domain_search]" slist => { "irc.sara.nl", "sara.nl"
},
policy => "overridable";
## Initialize template_variables
#
"templates" usebundle => template("cluster.v
Libraries [runtime]
FWIW i am also using debian squeeze and encountered no problems, but i always
make my own debian packages.
--
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing
https://cfengine.com/bugtracker/view.php?id=1080
--
****
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services Amsterdam, The Nether
s and have to decide in the template file which variable to use. It would
be nice if can decide what i want in the template file.
--
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services Amsterdam, The
ariables (Is not readable but works, like Perl ;-)):
"cfg[$(param_keys)]" slist => { "@($(params)[$(param_keys)])" },
policy => "overridable";
I see in the reference manual this:
* SSLCertificateFile $(stage_file.params[apache_ssl_crt][1])
Does this mead item 1 fro
On 04/13/2012 10:16 AM, Bas van der Vlies wrote:
I am using the new template functionality in 3.3.0 and using a default set of
variables and can override them. But my set of
variables are list and strings. For strings it is easy but what about lists?
Here is an example of what i am trying to
"bas string $(cfg[ldap_base])";
"bas string $(cfg[ldap_user])";
"bas list $(cfg[ldap_servers])";
}
bundle agent test
{
vars:
any::
"varray[ldap_servers]" slist => { "A", "B"
ed that as starting point. I wanted to knew
what was possible with 'services' and found the documentation confusing and posted a piece of it as reference. But the mails explain
why.
--
************
* Bas van der Vlies
On 04/12/2012 05:19 PM, Nick Anderson wrote:
On 04/12/2012 09:43 AM, Bas van der Vlies wrote:
and if i used edit_template the new line are gone:
By the way i love this new feature!. Is there a way to preserve the layout?
Diego mentioned that blank lines were stripped in the webinar yesterday
?
--
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services Amsterdam, The Netherlands *
smime.p7s
Description: S/MIME
y? And can it be clearer what can be used in the Community version and what is only
available for Nova? Thanks
--
****************
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Serv
the hostseen database. So
i can use the lastseen function:
* https://cfengine.com/bugtracker/view.php?id=508
regards
--
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services
t;,"/etc/node_status/cluster");
}}}
--
****************
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services Amsterdam, The Netherlands *
***
"$(torque.mom_priv_dir)"
comment => "Sync the mom_priv directory",
perms => mog("0755", "root", "root"),
depth_search => recurse_ignore("1", "@(exclude_dir)&quo
--
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services Amsterdam, The Netherlands *
smime.p7s
Description: S/MIME Cryptographic Signature
Help-cfengine mailing list
Help-cfengine@cfengine.org<mailto:Help-cfengine@cfengine.org>
https://cfengine.org/mailman/listinfo/help-cfengine
--
Bas van der Vlies
b...@sara.nl<mailto:b...@sara.nl>
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
ecent fiddling going on with cfengine.com.
___
http://source.cfengine.com/websvn/
--
****
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Comp
but argument 5 has type '__ino_t'
files_operators.c:1181: warning: format '%llu' expects type 'long long unsigned
int', but argument 6 has type '__ino_t'
cf-agent.c: In function 'KeepControlPromises':
cf-agent.c:602: warning: format '%s' e
aluation. Maybe open a bug at
> http://bug.cfengine.com/ ?
>
bug report 516 handles the problems with variable expansion and order:
* https://cfengine.com/bugtracker/view.php?id=516
--
Bas van der Vlies
b...@sara.nl
___
Help-cfengine mailin
__
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
--
****************
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services
s, you can control which server can copy
files and you can also use cf-runagent to start a cf-agent run on a node.
--
********
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services Amst
to
just use the class a string in the files and reports section without manually
doing the translation as shown above.
--
Bas van der Vlies
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
"usebundle_positional" or something like that. That
> would preserve backwards compatibility.
>
I also like the idea of having default values and if specified override them
without having
positional arguments.
--
Bas van der Vlies
b...@sara.nl
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
process if we just can append the packages
to a list and install all the packages at the end. Maybe there also other
scenarios for this.
regadsr
--
Bas van der Vlies
b...@sara.nl
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https
> This would also be nice to have for the common body library, meaning
> that each body or bundle for example had a copbl_ prefix:
>
> - body acl copbl_access_generic
> - body acl copbl_ntfs
> - body acl copbl_strict
> - body action copbl_bg
> - body action copbl_if_elapsed
> -
e that show the behavior:
>>
>> bundle impossible global
>> {
>> vars:
>> "hello" string => "dit is een globale variable";
>> }
>>
>> body common control
>> {
>&g
gt; that suggestion, though it might be hard to implement in a clear way.
>
Maybe this can work, introduce a for example a combine function that can
except multiple bodies statement and you can override the settings in settings
e.g.:
copy_from => combine( default( "$(g.policys
variable";
}
body common control
{
bundlesequence => { test };
}
bundle agent test
{
reports:
cfengine::
"$(global.hello)";
}
--
Bas van der Vlies
b...@sara.nl
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
Indeed very nice.
PS) I still need to go to the web interface to read this message. Is there
a fix. So i can read posts with arrays with an email program?
--
* Bas van der Vliese-mail: b...@sara.nl
t; -> "Some Person",
comment => "Make sure ${testfile} exists",
create => "true";
commands:
"/bin/date >> ${testfile}"
contain=> in_shell,
comment=> "Echo current dat
to be a host with a duplicate
key
cf3> !! Unspecified server refusal (see verbose server output)cf3> Couldn't
recv
cf3> !!! System error for recv: "Connection reset by peer"
No sign of class 'foobar'. Anyone?
I think it is a bug, see this
aired( cron_job_added );
reports:
!VIXIE_CRON::
"No Vixie cron software installed";
cron_job_added::
"$(name) is installed in $(vixie_cron_dir)"
=> "Failsafe.cf 2.0.0";
}
body agent control
{
any::
ifelapsed => "0";
skipidentify => "true";
}
}}}
--
*
On 24-08-11 16:08, Bas van der Vlies wrote:
>
>> root@testserver:/var/cfengine/inputs# cf-runagent
>> cf3>!!
>>
>> cf3>!!
>>
>> cf3>!!
>>
>> cf3>!!
>>
>> cf3>!!
>>
>> root@testserver:/var
gent -f failsafe.cf &&
/var/lib/cfengine3/bin/cf-agent --inform -DChange)^M
Transaction Send[t 44][Packed text]^M
Attempting to send 52 bytes^M
SendSocketStream, sent 52^M
Transaction Send[t 44][Packed text]^M
Attempting to send 52 bytes^M
SendSocketStream, sent 52^M
Transaction Send[t 73][P
; }
I just tested it with 3.2.0 and it works as expected.
{{{
gb-r5n1.irc.sara.nl:/var/tmp/bas
root# cf-agent -f /var/tmp/bas/test.cf -K
R: foo: bar
R: conditional: $(conditional)
touch /tmp/foo
root# cf-agent -f /var/tmp/bas/test.cf -K
R: foo: bar
R: conditional: this sometimes happens
}}
https://cfengine.com/forum/read.php?3,23121,23130#msg-23130
--
****
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services Amsterdam, The Nether
ick the cfengine parser for reports section ;-)
#
"all" or => { "any" };
}}}
and use the class 'all' in our reports.
my 2
--
* Bas van der Vlies
purge'' in cfengine_stdlib.cf
or make an option for it. I just want to use the package commands from the
cfengine_stdlib.cf and remove the whole package.
--
************
* Bas van der Vliese-mail: b...@sar
On 27-07-11 12:29, Mikhail Gusarov wrote:
> On 07/27/2011 12:13 PM, Bas van der Vlies wrote:
>
>> I regularly get these errors from clients:
>> {{{
>> Protocol transaction broken off (1)
>>!!! System reports error for recv: "Resource temporarily unavailabl
m reports error for recv: "Resource temporarily unavailable"
I: Made in version '2.4.0' of
'/var/lib/cfengine3/inputs/bundles/postfix.cf' near line 77
I: Comment: Copy postfix files that does require a restart and mirror it
}}}
--
***************
> Is this a feature or simply something that nobody has tried before? As far as
> I understand it, '/' is an absolute path.
>
> Cheers,
> Sven
>
> ___
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
--
Bas van der Vlies
b...@sara.nl
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
y update subver ...:
> cf3> !! Finished command related to promiser "subversion" -- an error
> occurred (returned 1)
> cf3> Package schedule execution failed for subversion-1.6.11-7.el5.x86_64
>
>
Sven,
That is a bug in my code/patch. I tested it a lot with add,addu
oblem?
--
****
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services Amsterdam, The Nether
ting up Install Process
cf3> Q:yum -y install apr-1 ...:Package apr-1.2.7-11.el5_6.5.x86_64 already
installed and latest version
cf3> Q:yum -y install apr-1 ...:Package apr-1.2.7-11.el5_6.5.i386 already
installed and latest version
cf3> Q:yum -y install apr-1 ...:Nothing to do
cf3> Q:
e version of existing packages
> I: Made in version 'not specified' of
> '/var/cfengine/inputs/dcsunix/packagesClient.cf' near line 41
> !! You must supply a method for determining the version of existing packages
> I: Made in version 'not specified' of
> '/var/
stalled | grep wireshark
> wireshark.x86_64 1.0.11-1.el5_5.5
> installed
>
>
> cf3> ?? Already have a (cached) package list for this manager
> cf3> -> Package version specified implicitly in promiser's name
> cf3> -> Looking for
che problem, see:
* https://cfengine.com/bugtracker/view.php?id=627
--
****************
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services
On 22-06-11 09:44, Bas van der Vlies wrote:
> On 21-06-11 21:49, Seva Gluschenko wrote:
>> I'm not sure if I've read you right, but if you mean that or => ""
>> works and or => {} doesn't, perhaps, it's high time to file a bug
>> re
hat is correct the "" works and { } doesn't, see:
{{{
>>>> "PBS_MOM_1" or => "NODES";
>>>> "PBS_MOM_2" or => { "NODES" };
PBS_MON_1 gets defined (with waring message&qu
_PBS_MOM and NODES.
>
Seva,
Thanks for the explanation. I have misread the expression syntax and finally
i understand how to use expressions ;-).
The working examples for 'or' and 'and' are strings and not lists. If an list
is used the the tests will fail. Is this an issue?
On 17-06-11 16:17, Bas van der Vlies wrote:
>
> On 17 jun 2011, at 15:07, Seva Gluschenko wrote:
>
>> I'd rather rewrote it as follows:
I have done some experiments and was a bit surprise over the outcome, maybe
some can explain to me why some work and others not:
*
'PBS_MOM' and => { "PBS_ok", "PBS_reg", "${sys.host}" };
>
> 2011/6/17 Jesse Becker :
>> On Fri, Jun 17, 2011 at 05:25:44AM -0400, Bas van der Vlies wrote:
>>> I want to define a classs like this:
>>> classes:
>&
perator? For me it would be useful or are there other ways to accomplish this?
PS) I used this syntax a lot in cf2 to define classes.
--
****************
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Aca
I have another question. I used the cfengine syntax page on cfengine,org a lot,
but i can not find it on cfengine,com. So the question where can i find it?
Further i get an error on: http://cfengine.com/pages/tech, quick reference link
* http://cfengine.com/manuals/cf-QuickRef3
--
Bas van der
se several people have reported
issues with variable expansion:
* Filed bug https://cfengine.com/bugtracker/view.php?id=516
--
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services Amsterdam, The Netherlands *
***
uot;),
To our surprise we end up with the following /var/tmp/config file:
{{{
cluster sara
ideal_load 100
$pbsserver gpubatch
$arch x86_64
$pbsserver batch
}}}
This is totally not convergent. Is this the intended behaviour or is this a
bug?
--
***
I find out from the MD5 hashes in
> my server's ppkeys dir what keys to revoke? The new key naming scheme seems
> like a nightmare compared to the old, simpler, root-IP.pub.
>
> Am I missing the obvious here?
>
Did you use:
cf-
On 27 apr 2011, at 17:38, Erik Mouw wrote:
> On Apr 27, 2011, at 11:36, Bas van der Vlies wrote:
>
>> We have several software repositories at our site (debian, centos, ..)
>> where we maintain are own software. This software is updated frequently and
>> we are alw
>
> I was asked to review the book in the works, and from what I saw, I was very
> discouraged. =( I asked that the publishers look at a complete re-write.
>
I was also asked and i totally agree with you!
--
********
*
s, wait for cf 3.1.3
#
refresh_processes => { "none" };
--
****************
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Serv
: symbol lookup error:
/var/lib/cfengine3/bin/cf-agent: undefined symbol: NoteVarUsageDB
--
* Bas van der Vliese-mail
-serverd daemon or must this daemon also be killed/restarted?
cf3 knows when the configuration is changed due to cf-promises caching. So if
the configuration is changed it would be useful/handy if the daemon reread
their configuration files. Saves me a complex update.cf script ;-)
--
B
configuration flle.
--
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services Amsterdam, The Netherlands
install cfengine3 ...
}}}
On 12 apr 2011, at 14:05, Bas van der Vlies wrote:
> I have the following bundle on debian:
> bundle agent cfengine_upgrade_package(version)
> {
> vars:
> debian::
> "package_name" string => "cf
t;>>>>>>>>>>>>>>>>>>>>>>>>
cf3>Offering these package-promise suggestions to the managers
cf3> >>>>>>>>>>>>>>>>>>>>>>>>&
ganisation of the bundle sequence ? I
> would like to prepare it in a way, where one Admin is unable to block all
> promises with simple typo. I was hoping that using hard clasesses solves the
> problem in a way that files belonging to working set of promises wouldn't be
>
erved keyword i can not be used.
> -Dan
>
> On Mar 31, 2011, at 4:55 AM, Bas van der Vlies wrote:
>
>> On 30-03-11 21:38, Seva Gluschenko wrote:
>>> Perhaps, because it doesn't make much sense, since cf-promises only
>>> verifies files and exits, taking no a
> 2011/3/31 Bas van der Vlies:
>> On 30-03-11 21:38, Seva Gluschenko wrote:
>>>
>>> Perhaps, because it doesn't make much sense, since cf-promises only
>>> verifies files and exits, taking no actions.
>>>
>>
>> Maybe your answer is vali
defined.
> 2011/3/30 Bas van der Vlies:
>>
>>
>> Have question about this command. All cfengine programs set a hard class:
>> cf-monitor --> monitor
>> cf-agent --> agent
>> cf-serverd --> server
>> cf-execd --> executor
>&g
Have question about this command. All cfengine programs set a hard class:
cf-monitor --> monitor
cf-agent --> agent
cf-serverd --> server
cf-execd --> executor
But cf-promises not. My question is why?
--
Bas van der Vlies
gt; mlz.
>
>
> On Wed, Mar 30, 2011 at 11:57 AM, Bas van der Vlies <mailto:b...@sara.nl>> wrote:
>
> On 29-03-11 15:17, M LZ wrote:
> >
> > Hi,
> >
> > I encounter the following problem, extracted from a more complex
> conf
has value test_var_value
>
> Is it something that I miss or things are not working the way the
> documentation says?
>
> Test run on cfengine-3.1.4, debian_5 linux and sparc solaris 10 .
>
I just tested this example with svn version 1917 (3.1.5a) on debian squeeze
and every
8.*",
"192.168.149.*",
"192.168.150.*"
};
instead of:
allowconnects => { "127.0.0.1" , "192.168.144.0/21" };
For now all my problems are gone. Do you use CIDR notation for the admit rules?
--
**
.
Maybe a suggestion. Use a cfagent wrapper script. that is executed by
cf-execd. That will check the state of the NFS-mount. If this is oke execute
cf-agent else bail out, kill cf-agent processes (if possible) and mail a
message. It is not ideal!
--
Bas van der Vlies
b...@sara.nl
=> { "root" };
}
bundle server access_rules()
{
access:
any::
"/data/cfengine3"
admit => { "192.168.144.0/21" };
roles:
".*" authorize
.
--
* Bas van der Vliese-mail: b...@sara.nl *
* SARA - Academic Computing Services Amsterdam, The Netherlands *
___
Help-cfengine mailing list
Help-cfengine
quot;$(bundle_dir)/$(subdir)";
}
in hourly.cf:
bundle agent hourly {
methods:
any::
"any" usebundle => torque_config("lisa");
}
--
*
1 - 100 of 197 matches
Mail list logo