Forum: Cfengine Help
Subject: Re: package version
Author: eystein
Link to topic: https://cfengine.com/forum/read.php?3,19552,19576#msg-19576
Hi,
You should not quote the name of the package_method body (it's not a string,
but a reference to a body of attributes).
Try
packages:
any::
"$(any_
Forum: Cfengine Help
Subject: Re: Extended solutions guide and YOUR HELP!
Author: mario
Link to topic: https://cfengine.com/forum/read.php?3,19429,19577#msg-19577
What I think could be really helpful is linking CFengine functions used in the
wiki (or whatever knowledge collection) with the refere
Hi,
attention - cfengine2 !!!
I'm trying to set a class based on other classes (compound statement), but
seem to be running into problems:
control:
actionsequence = ( copy )
pyver = ( 'somevalue' )
classes:
has_etc_dir = ( IsDir("/etc") )
has_ETC_dir = ( IsDir("/ETC") )
Michael Potter writes:
> I would suggest you approach the problem this way:
>
> bundle common hostinfo {
>
> vars:
>
>hati::
>"ip" string => "192.168.1.2";
>
>srv1::
>"ip" string => "192.168.1.3";
> }
>
> bundle agent test
> {
>classes:
>"ok" e
Marc Baudoin écrit :
> Marc Baudoin écrit :
> >
> > I've just got an e-mail from a Cfengine client saying:
> >
> > cf3:/var/cfengine/inputs/stg_storage.cf:17,0: Broken variable syntax or
> > bracket mismatch in string ( $(s\321G@), near token ''
> > cf-agent was not able to get confirm
Forum: Cfengine Help
Subject: merge two classes
Author: Ferjama
Link to topic: https://cfengine.com/forum/read.php?3,19581,19581#msg-19581
Hi,
I'm new to cfengine3 and trying to convert my old configurations from cf2. Most
worked well so far but I still got a Problem with the classes.
Please ca
Forum: Cfengine Help
Subject: Re: merge two classes
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,19581,19582#msg-19582
Stephan,
the conversion is straightforward:
classes:
"srv_grp_a" or=> { "server_a", "server_3", "server_Bob" };
"cl_b" and
Forum: Cfengine Help
Subject: Re: merge two classes
Author: Ferjama
Link to topic: https://cfengine.com/forum/read.php?3,19581,19583#msg-19583
This was to easy.
Thanks for your help!
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfe
Forum: Cfengine Help
Subject: Re: Dynamic build of variable names
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,19565,19584#msg-19584
I've managed Bind with CF2 before. It was easiest to maintain normal Bind
files and have CF copy them out to the DNS hosts.
http://w
Forum: Cfengine Help
Subject: Re: Cfengine Help: cf-execd: is daemon or cron better?
Author: berntjernberg
Link to topic: https://cfengine.com/forum/read.php?3,19555,19585#msg-19585
Hi,
Maybe you can configure the smf manifest to be of type "transient mode" which
is like "run and forget".
This w
no-re...@cfengine.com writes:
> I've managed Bind with CF2 before. It was easiest to maintain normal
> Bind files and have CF copy them out to the DNS hosts.
> http://watson-wilson.ca/blog/cfcookbook.html#SECTION00013
I'm doing the same with my CF2 setup and found that duplicatin
Forum: Cfengine Help
Subject: Re: Extended solutions guide and YOUR HELP!
Author: JarleB
Link to topic: https://cfengine.com/forum/read.php?3,19429,19587#msg-19587
How about using an existing service like http://snippler.com ?
___
Help-cfengine mailing
I'd be willing to administer an "index" page of Cfengine configs,
pointing to people's
wiki's, github or SVN repos, or websites/blogs. This would be more
useful/accessible
to the community if hosted on or at least linked from cfengine.org.
This would give a (practical) mix of centralization and d
What's this? I couldn't figure it out from looking at the site, Jarle.
On Thu, Dec 2, 2010 at 7:35 AM, wrote:
> Forum: Cfengine Help
> Subject: Re: Extended solutions guide and YOUR HELP!
> Author: JarleB
> Link to topic: https://cfengine.com/forum/read.php?3,19429,19587#msg-19587
>
> How about
On Thu, Dec 02, 2010 at 04:01:34AM -0500, no-re...@cfengine.com wrote:
>Forum: Cfengine Help
>Subject: Re: Extended solutions guide and YOUR HELP!
>Author: mario
>Link to topic: https://cfengine.com/forum/read.php?3,19429,19577#msg-19577
>
>What I think could be really helpful is linking CFengine f
Yeah, but whats the point of using SMF if you're just going to "set it and
forget it?"
The power of SMF is that you want it to restart things when they have
abnormal exit statuses. If you plan on using a transient SMF status that
doesn't monitor the health of the process, then you might as well j
On Thu, Dec 02, 2010 at 02:52:07AM -0500, no-re...@cfengine.com wrote:
>Forum: Cfengine Help
>Subject: Re: Extended solutions guide and YOUR HELP!
>Author: mark
>Link to topic: https://cfengine.com/forum/read.php?3,19429,19574#msg-19574
>
>Let's try to make a short list of programs. In my experienc
Forum: Cfengine Help
Subject: Changing the default location for debugging files?
Author: jgreer
Link to topic: https://cfengine.com/forum/read.php?3,19593,19593#msg-19593
Is it possible to configure the path where *.cf.txt and *.cf.html
error-debugging files land, or turn them off?
>From the man
> Could you elaborate on "taggable free submissions"? How is this
> different from pages/snippets/code from having arbitrary tags, suitable
> for later organization?
>
Just as you say -- submissions of a stream of raw text with som tags
that can easily be scanned and categorized automagically.
On Thu, Dec 02, 2010 at 11:57:55AM -0500, Mark Burgess wrote:
>
>> Could you elaborate on "taggable free submissions"? How is this
>> different from pages/snippets/code from having arbitrary tags, suitable
>> for later organization?
>>
>
>Just as you say -- submissions of a stream of raw text wit
I have a file (/etc/fstab) with well defined fields and
subfields, and am trying to edit one of the fields, including removing
duplicate entries.
Here's the original line in question:
/dev/md2 /scratch ext3 defaults 1 2
Here's what I want it to look like at the end:
/dev/md2 /sc
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: ro
Link to topic: https://cfengine.com/forum/read.php?3,19505,19597#msg-19597
Thanks for the warning! I see this as a temporary solution until something
native has been brought up.
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,19505,19598#msg-19598
>From my point of view, the wiser solution could be to flag package
>installation by some global class which stops other package promis
Jesse,
I could propose to replace field_edits with file_edits, for example,
generic (library ready) body:
bundle edit_line etc_fstab(device,mpoint,fstype,opts,passes)
{
classes:
"already_there" expression =>
regline("$(device)\s+$(mpoint)\s+$(fstype)\s+$(opts)\s+$(passes)",
"$(edit.filename
Hi,
I'm looking to solve two related problems and was hoping to be able to
trigger them with classes based on a couple of conditions, but I've yet
been able to figure out how to do them. They are:
* Setting a class if a specified file changes
* Setting a class if a speci
Forum: Cfengine Help
Subject: Re: field_edit and duplication
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,19596,19600#msg-19600
Perhaps storage promises could be enhanced to handle more than just NFS mounts.
___
Help-cfengine
Simon,
if you want to act on that file or directory, and there's no certain need to
distinguish between a change and a moment of creation, you can place a
promise on them and use action => if_repaired for trigger further changes
when necessary.
If you want to act on different objects using that f
On Thu, Dec 02, 2010 at 03:21:08PM -0500, no-re...@cfengine.com wrote:
>Forum: Cfengine Help
>Subject: Re: field_edit and duplication
>Author: neilhwatson
>Link to topic: https://cfengine.com/forum/read.php?3,19596,19600#msg-19600
>
>Perhaps storage promises could be enhanced to handle more than ju
Forum: Cfengine Help
Subject: Re: Set class on file changes
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,19601,19602#msg-19602
I did look at this briefly some time ago. I don't think that there is a way
using the current changes body.
Forum: Cfengine Help
Subject: Re: field_edit and duplication
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,19596,19605#msg-19605
Then the documentation seems of date.
http://www.cfengine.org/manuals/cf3-reference.html#mount-in-storage
___
I want to run cf-agent on the policy host, so that the files and configs
are updated.
I'm getting the following error, which may or may not be related to
running on the policy host.
Thank you.
cf3 Work directory is /var/lib/cfengine3
cf3 cf3: INFO: /var/lib/cfengine3/bin is a symbolic link, n
Please disregard my previous question. I now see what is happening here.
Sandra
On 12/02/2010 04:11 PM, Sandra Wittenbrock wrote:
> I want to run cf-agent on the policy host, so that the files and
> configs are updated.
>
> I'm getting the following error, which may or may not be related to
>
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: ro
Link to topic: https://cfengine.com/forum/read.php?3,19505,19608#msg-19608
Hi Seva,
okay, I did some testing using the above exec_command locking.
Basically it did work, but I noticed that no output of the main run is recor
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,19505,19609#msg-19609
Sounds weird. Can you please provide more details upon that? Some important
information is missing here, I think. What do you call main
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: ro
Link to topic: https://cfengine.com/forum/read.php?3,19505,19610#msg-19610
Oh, I just discarded my test setup...
Main run... that's the initial, long and lengthy cfengine run that does all the
really hard work - configurin
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,19505,19611#msg-19611
I would suggest checking process list to make sure your "main run" isn't stuck
waiting for package promises to be done. For unknown rea
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: ro
Link to topic: https://cfengine.com/forum/read.php?3,19505,19612#msg-19612
I did check this; cf-agent had definately finished.
___
Help-cfengine mailing list
Help-cfengine@cfengin
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,19505,19613#msg-19613
Twice as weird ) But a bug report cannot be filed since details of your
experiment left uncovered.
___
38 matches
Mail list logo