no-re...@cfengine.com wrote:
>Forum: CFEngine Help
>Subject: Re: CFEngine Help: How-to restart machine after certain
>package have been installed.
>Author: juriskrumins
>Link to topic:
>https://cfengine.com/forum/read.php?3,26673,26716#msg-26716
>
>Hi Nick. Great analisys. Take a look what I've go
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: juriskrumins
Link to topic: https://cfengine.com/forum/read.php?3,26673,26716#msg-26716
Hi Nick. Great analisys. Take a look what I've got regarding the "yum vs.
yum_rpm" yo
Forum: CFEngine Help
Subject: Suggestions needed on folder structure and paths in promises
Author: sonofrage
Link to topic: https://cfengine.com/forum/read.php?3,26715,26715#msg-26715
Hi everyone,
I'm a beginner in cf-engine, and am starting with a simple project to run a few
external shell scri
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: nickanderson
Link to topic: https://cfengine.com/forum/read.php?3,26673,26713#msg-26713
Humm, so I am looking at the package_installed_regex now.
package_installed_regex =>
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: nickanderson
Link to topic: https://cfengine.com/forum/read.php?3,26673,26712#msg-26712
I really don't have a good understanding of how the package_method bodies work.
Fidde
I think inserting a file between two markers should work fine - the only
problem would be if there are duplicate lines in the file, then only one of
them would be inserted.
There might be a case for "file_preserve_block", but I don't know what the
implications would be. Maybe one of the develop
Forum: CFEngine Help
Subject: Re: Append the content of file to another one without checking for
duplicate lines
Author: jbdenis
Link to topic: https://cfengine.com/forum/read.php?3,26695,26710#msg-26710
Thank you for the suggestions.
Both of your answers confirm what I felt about an eventual co
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: nickanderson
Link to topic: https://cfengine.com/forum/read.php?3,26673,26709#msg-26709
Yeah but I think there is also a problem with the package name itself with the
yum pa
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26673,26708#msg-26708
Yes, this is a bug in Yum. If the specified package does not exist yum exists
zero. V
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: nickanderson
Link to topic: https://cfengine.com/forum/read.php?3,26673,26706#msg-26706
Actually a quick look at the difference between yum and yum_rpm seems to
indicate the
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: nickanderson
Link to topic: https://cfengine.com/forum/read.php?3,26673,26705#msg-26705
I would reccomend against changing things in the stdlib. You could copy it and
make y
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: juriskrumins
Link to topic: https://cfengine.com/forum/read.php?3,26673,26704#msg-26704
Actually "rebooting all the time" issue I've also experienced.
In my case it was caus
Forum: CFEngine Help
Subject: Re: cfagent: symbol lookup error: cfagent: undefined symbol:
ALLCLASSESREPORT
Author: jab2...@yahoo.com
Link to topic: https://cfengine.com/forum/read.php?3,26492,26703#msg-26703
It may have been a library issue. I downgrade my version to correct the issue.
I think
Forum: CFEngine Help
Subject: Re: Dynamic inbuts based on classes set from usemodule.
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26668,26702#msg-26702
Can you pair it down to a small self contained example?
___
Help-cfengin
Forum: CFEngine Help
Subject: Re: Append the content of file to another one without checking for
duplicate lines
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,26695,26701#msg-26701
BTW you need to look at my reply in the forum, because the forum-to-email
gateway strips aw
Forum: CFEngine Help
Subject: Re: Dynamic inbuts based on classes set from usemodule.
Author: vladi
Link to topic: https://cfengine.com/forum/read.php?3,26668,26698#msg-26698
Also tried this with no success:
bundle agent idalv {
classes:
"idalv_set" expression => usemodule("idalv-cftx
Forum: CFEngine Help
Subject: Re: Append the content of file to another one without checking for
duplicate lines
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,26695,26700#msg-26700
I think CFEngine resists doing this because it makes it impossible to assure
convergence. I
Forum: CFEngine Help
Subject: Re: Append the content of file to another one without checking for
duplicate lines
Author: bahamat
Link to topic: https://cfengine.com/forum/read.php?3,26695,26699#msg-26699
I would switch to using shell commands at that point. It isn't the cleanest
option, but sinc
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: nickanderson
Link to topic: https://cfengine.com/forum/read.php?3,26673,26697#msg-26697
Its working a little better than it should :)
I just noticed the vm is rebooting all
Forum: CFEngine Help
Subject: configure pcre failure in rhel4
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26696,26696#msg-26696
I'm trying to test 3.4.0b1 on a legacy host. Configure reports that it cannot
find pcre. Yet, I know that pcre and pcre-devel are installe
Forum: CFEngine Help
Subject: Append the content of file to another one without checking for
duplicate lines
Author: jbdenis
Link to topic: https://cfengine.com/forum/read.php?3,26695,26695#msg-26695
Hello,
I tried to achieve something trivial, but I don't get anywhere.
Imagine you have a big
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: nickanderson
Link to topic: https://cfengine.com/forum/read.php?3,26673,26694#msg-26694
I tested this, and it worked for me.
bundle agent main{
commands:
!am_policy_hub::
Forum: CFEngine Help
Subject: Re: Dynamic inputs and maplist function
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,26595,26693#msg-26693
I recently did something similar with my inputs, and found that the includes
don't seem to like certain variables - specifically variables
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26673,26692#msg-26692
If you run the agent in verbose mode you'll see the yum commands in action.
That migh
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: juriskrumins
Link to topic: https://cfengine.com/forum/read.php?3,26673,26691#msg-26691
Sorry for not being specific enough.
So lets start from the beginning.
What I need is:
Forum: CFEngine Help
Subject: Re: Var in var : limitation ?
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,26678,26690#msg-26690
So, why would you solve the problem this way? If you want to define a bunch of
slists for different repositories, just use an array:
"repositories[
Forum: CFEngine Help
Subject: Re: Var in var : limitation ?
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26678,26689#msg-26689
I fixed my problem like this :
bundle agent subversion {
vars:
subversion::
"service" string => "$(
Forum: CFEngine Help
Subject: Re: Var in var : limitation ?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26678,26687#msg-26687
I think there is some misunderstanding. It would be helpful if you state your
expected results. Only then can readers know your intentions.
That construct should work fine in most cases. Can you provide a self-contained
example that demonstrates the problem?
--Diego
On Jul 26, 2012, at 10:02 AM, no-re...@cfengine.com wrote:
> Forum: CFEngine Help
> Subject: Re: Var in var : limitation ?
> Author: loopx
> Link to topic: https://cfen
Forum: CFEngine Help
Subject: Re: Var in var : limitation ?
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26678,26686#msg-26686
So, I have to avoid this kind of var : $(repositories_$(service)) ?
Bad idea ?
It was to get a more generic code ... If I can't do that, I will hav
Forum: CFEngine Help
Subject: Re: Var in var : limitation ?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26678,26685#msg-26685
Global vars work everywhere. What I said was that your notiation
${localvar_${global.var}} is incorrect. Variables are evaluated at each
pro
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: nickanderson
Link to topic: https://cfengine.com/forum/read.php?3,26673,26684#msg-26684
Also can you be clarify your expectation and the current behavior?
Is the package get
Forum: CFEngine Help
Subject: Re: Var in var : limitation ?
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26678,26683#msg-26683
MMmm, good to know.
I really like this community which is very fast : good for my project ;-).
I'm not sure to understand ... global var sho
Forum: CFEngine Help
Subject: Re: How to instert white line ?
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26615,26682#msg-26682
:o
Great, thanks for this little demo :)
This should fix the problem : I was tried without space ..
Forum: CFEngine Help
Subject: Re: Avoid warning if file does not exist
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26654,26681#msg-26681
"counterintuitive " : +1
But it works so, ok for me. Good idea for next release ;)
Since I'm a noob with Cfengine3, it's normal to get m
Forum: CFEngine Help
Subject: Re: Var in var : limitation ?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26678,26680#msg-26680
The global variable is expanded in the vars section where you first call them.
The local variables are not holding a reference.
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26673,26679#msg-26679
The repaired class on the packages promise is based on the return code from the
packag
Forum: CFEngine Help
Subject: Var in var : limitation ?
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26678,26678#msg-26678
Hello,
I've got a little issue with var. First, I made this kind of var :
vars:
servers_management::
"
Forum: CFEngine Help
Subject: Re: Dynamic inbuts based on classes set from usemodule.
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26668,26677#msg-26677
If you want a common bundle to be evaluated for use with the common control
body then it must reside in promises.cf
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: nickanderson
Link to topic: https://cfengine.com/forum/read.php?3,26673,26676#msg-26676
I see a likely typo in your original post.
classes => if_rapired("restart_machine");
Forum: CFEngine Help
Subject: Re: Avoid warning if file does not exist
Author: lauwersw
Link to topic: https://cfengine.com/forum/read.php?3,26654,26675#msg-26675
loopx Wrote:
---
> Found! It's not possible to specify var in class
Yeah, that's v
Forum: CFEngine Help
Subject: Re: CFEngine Help: How-to restart machine after certain package have
been installed.
Author: juriskrumins
Link to topic: https://cfengine.com/forum/read.php?3,26673,26674#msg-26674
Yes. Well actually I've partly solved this issue, but anyway I don't feel like
my sol
Is it in fact installing the package you want? At a cusery glance I think you
might want addupdate for the package policy.
--
Sent from Kaiten Mail for Android. Please excuse my brevity.
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https:/
Forum: CFEngine Help
Subject: Re: Avoid warning if file does not exist
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26654,26672#msg-26672
Found! It's not possible to specify var in class name => use "ifvarclass" :
redhat_6::
"found :
Forum: CFEngine Help
Subject: How-to restart machine after certain package have been installed.
Author: juriskrumins
Link to topic: https://cfengine.com/forum/read.php?3,26671,26671#msg-26671
I'm just fighting with kind of simple problem and can't figure out how to do it.
What I basically need is
Forum: CFEngine Help
Subject: Re: Avoid warning if file does not exist
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26654,26670#msg-26670
Hi,
Using "classes" to define class, I can't use defined class like this (to make a
loop over all NIC configuration found) :
Forum: CFEngine Help
Subject: JobForce24- Jobs available with Security Clearance
Author: jobforce
Link to topic: https://cfengine.com/forum/read.php?3,26669,26669#msg-26669
Security cleared jobs are available at JobsForce24. You can search for your
jobs and security related problems from our webs
47 matches
Mail list logo