Forum: CFEngine Help
Subject: Re: How can I get the interface name of a certain IP address?
Author: weijianliao
Link to topic: https://cfengine.com/forum/read.php?3,27650,27664#msg-27664
Thanks dude! It works and canonify helps me to solve another problem.Thanks
again !
_
Forum: CFEngine Help
Subject: Re: [ANNOUNCE] CFEngine Community 3.4.0beta2 is released
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,27604,27660#msg-27660
Thank you everyone for the excellent feedback! We really appreciate it. Indeed
we have a number of open bugs that stil
Forum: CFEngine Help
Subject: Re: How can I get the interface name of a certain IP address?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27650,27658#msg-27658
body common control {
bundlesequence => { "main", };
}
bundle agent main {
methods:
"any" usebundle => te
Forum: CFEngine Help
Subject: Re: [ANNOUNCE] CFEngine Community 3.4.0beta2 is released
Author: lauwersw
Link to topic: https://cfengine.com/forum/read.php?3,27604,27656#msg-27656
davidlee Wrote:
---
>
> 3. Easy aside this is still a redundant fe
Forum: CFEngine Help
Subject: Re: variable expansion
Author: weijianliao
Link to topic: https://cfengine.com/forum/read.php?3,27652,27654#msg-27654
How if you run with -vvv arguments to see if there is any useful messages?
___
Help-cfengine mailing list
Forum: CFEngine Help
Subject: variable expansion
Author: abid
Link to topic: https://cfengine.com/forum/read.php?3,27652,27652#msg-27652
Community CF3.2.3
I'm seeing an inconsistency in variable expansion. Why does this work:
#promises.cf
body common control
{
bundlesequence => { "test" };
Forum: CFEngine Help
Subject: Re: [ANNOUNCE] CFEngine Community 3.4.0beta2 is released
Author: davidlee
Link to topic: https://cfengine.com/forum/read.php?3,27604,27651#msg-27651
3. Easy aside this is still a redundant feature. I would prefer to see efforts
focused on the large number of open bu
Forum: CFEngine Help
Subject: How can I get the interface name of a certain IP address?
Author: weijianliao
Link to topic: https://cfengine.com/forum/read.php?3,27650,27650#msg-27650
Here is the precondition:
bundle agent test
{
vars:
"dns_servers" slist => { "192.168.1.1","192.168.1.2" };
Forum: CFEngine Help
Subject: Re: CFEngine Help: Re: [ANNOUNCE] CFEngine Community 3.4.0beta2 is
released
Author: lauwersw
Link to topic: https://cfengine.com/forum/read.php?3,27604,27648#msg-27648
Mikhail Gusarov Wrote:
---
> > On comments vs h
Forum: CFEngine Help
Subject: Re: Do I really have to restart cfengine3 after changing promises.cf?
Author: Charlie
Link to topic: https://cfengine.com/forum/read.php?3,27637,27645#msg-27645
My mistake. I must have been testing on another box that had a version prior
to 3.3.5. On 3.3.5, chang
Forum: CFEngine Help
Subject: Re: Do I really have to restart cfengine3 after changing promises.cf?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27637,27640#msg-27640
Policy files, inculding promsies.cf, do not get downloaded to the client. The
client downloads them f
Forum: CFEngine Help
Subject: Re: Do I really have to restart cfengine3 after changing promises.cf?
Author: Charlie
Link to topic: https://cfengine.com/forum/read.php?3,27637,27639#msg-27639
Perhaps it's semantics, but the central authority does control the clients ...
via promises.cf.
The promi
Forum: CFEngine Help
Subject: Re: Do I really have to restart cfengine3 after changing promises.cf?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27637,27638#msg-27638
I believe newer versions of Cfengine (3.3.?) will notice changes in cf-execd's
control body and reread
Forum: CFEngine Help
Subject: Do I really have to restart cfengine3 after changing promises.cf?
Author: Charlie
Link to topic: https://cfengine.com/forum/read.php?3,27637,27637#msg-27637
I'm running cfengine-community 3.3.5 on CentOS 6.3.
I've found that when I make changes to some things in prom
Forum: CFEngine Help
Subject: Re: copy_from symbolic links with link_type=none
Author: augmentedfourth
Link to topic: https://cfengine.com/forum/read.php?3,26584,27636#msg-27636
jbdenis: How did copylink_patterns help you in this case? I've played with that
as well but gotten nowhere. I too would
Forum: CFEngine Help
Subject: Re: CFEngine Help: tokyocabinet-1.4.47 compiler error on AIX5.3
Author: cfengine2o12
Link to topic: https://cfengine.com/forum/read.php?3,27076,27635#msg-27635
Is there anything w/o rpm? our install may not support to rpms..
__
Forum: CFEngine Help
Subject: Re: configure:18021: error: Cannot find PCRE
Author: cfengine2o12
Link to topic: https://cfengine.com/forum/read.php?3,27586,27634#msg-27634
yes --with-pcre=/usr/local already tried but that didn't help
___
Help-cfengin
Forum: CFEngine Help
Subject: Re: getindices from array problems
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27630,27631#msg-27631
The servers attribute in the copy_from body can be a list of servers. If the
first server does not answer the next server in the list wi
Forum: CFEngine Help
Subject: Re: [ANNOUNCE] CFEngine Community 3.4.0beta2 is released
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27604,27629#msg-27629
I'm not opposed to adding new ways of doing things. Indeed I've been a user and
fan of Perl for most of my career.
Forum: CFEngine Help
Subject: Re: [ANNOUNCE] CFEngine Community 3.4.0beta2 is released
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27604,27623#msg-27623
If handles now become important how will they work with variable handles? See
here for a an example and the curren
Forum: CFEngine Help
Subject: Re: CFEngine Help: Re: auto-scrolling website
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,27619,27621#msg-27621
At the time I posted the comment on your blog, IE was the only allowed browser
at work, and it just had the one option. We've opene
Forum: CFEngine Help
Subject: Re: Bootstrapping / Files copied
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,27314,27620#msg-27620
tjavo87 Wrote:
---
> I'm interested how you've build the cfengine
> configuration.. Would you
Forum: CFEngine Help
Subject: Re: auto-scrolling website
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,27522,27618#msg-27618
Can you point me to a reference on how to implement one? I'd be happy to do it.
I personally use it by defining a search keyword and using it direct
Forum: CFEngine Help
Subject: Re: auto-scrolling website
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,27522,27617#msg-27617
zzamboni Wrote:
---
> I might as well advertise again my
> cross-referenced index of the CFEngine ma
Forum: CFEngine Help
Subject: Re: [ANNOUNCE] CFEngine Community 3.4.0beta2 is released
Author: msvob...@linkedin.com
Link to topic: https://cfengine.com/forum/read.php?3,27604,27616#msg-27616
On comments vs handles thing -- I dont think comments show up in the output of
verbose execution, which i
Forum: CFEngine Help
Subject: Re: [ANNOUNCE] CFEngine Community 3.4.0beta2 is released
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,27604,27615#msg-27615
Mike,
There is one case in which things may break with this change, but we believe
this will be minimal: if anyone wa
Forum: CFEngine Help
Subject: Re: [ANNOUNCE] CFEngine Community 3.4.0beta2 is released
Author: msvob...@linkedin.com
Link to topic: https://cfengine.com/forum/read.php?3,27604,27614#msg-27614
FWIW, I'm all for sexy new features / functionality as long as it doesn't break
backwards compatibility.
Forum: CFEngine Help
Subject: Re: [ANNOUNCE] CFEngine Community 3.4.0beta2 is released
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,27604,27613#msg-27613
Neil, Marco,
The active depends_on is essentially a shortcut for doing things with classes -
internally that's how it
Forum: CFEngine Help
Subject: Re: CFEngine Help: Re: [ANNOUNCE] CFEngine Community 3.4.0beta2 is
released
Author: Authority
Link to topic: https://cfengine.com/forum/read.php?3,27604,27612#msg-27612
So your complaint is that it's like Puppet? That's pretty weak. I've never
used Puppet so I jus
Forum: CFEngine Help
Subject: Re: CFEngine Help: Re: [ANNOUNCE] CFEngine Community 3.4.0beta2 is
released
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27604,27611#msg-27611
Marco Marongiu Wrote:
---
> When this featur
Forum: Announcements
Subject: CFEngine Community 3.4.0beta2 released
Author: CFEngine
Link to topic: https://cfengine.com/forum/read.php?1,27608,27608#msg-27608
Good day.
CFEngine Community 3.4.0beta2 is now available for testing.
New features:
- XML editing capabilities. See the
Forum: CFEngine Help
Subject: Re: [ANNOUNCE] CFEngine Community 3.4.0beta2 is released
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27604,27607#msg-27607
"This option is only used only for documentation currently. In commercial
versions of CFEngine, using this attribut
Forum: CFEngine Help
Subject: Re: [ANNOUNCE] CFEngine Community 3.4.0beta2 is released
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27604,27605#msg-27605
Mikhail Gusarov Wrote:
---
>
> - The "depends_on" attribute is
Forum: CFEngine Help
Subject: Re: cf_promises_validated : bug 1258
Author: nickanderson
Link to topic: https://cfengine.com/forum/read.php?3,27307,27603#msg-27603
davidlee Wrote:
> Neil, you say "For small sites, don't even bother
> with cf_promises_validated." But the only place
> it seems to b
Forum: CFEngine Help
Subject: Re: cf_promises_validated : bug 1258
Author: davidlee
Link to topic: https://cfengine.com/forum/read.php?3,27307,27602#msg-27602
Neil and Nick: Many thanks for your replies. I will try to absorb them over
the coming days.
But a few initial comments:
Neil, you sa
Forum: CFEngine Help
Subject: Re: configure:14448: error: Cannot find OpenSSL on HP-UX 11.31.
cfengine-3.2.4
Author: mvpel
Link to topic: https://cfengine.com/forum/read.php?3,27200,27597#msg-27597
I posted something here a while back describing how I got everything compiled
on HP-UX 11.11,
Forum: CFEngine Help
Subject: Re: CFEngine Help: Disable telnet with cfengine
Author: mvpel
Link to topic: https://cfengine.com/forum/read.php?3,27567,27596#msg-27596
It would also be beneficial to apply a promise to the inetd configuration to
deactivate the telnet service entirely.
Forum: CFEngine Help
Subject: Re: configure:18021: error: Cannot find PCRE
Author: mvpel
Link to topic: https://cfengine.com/forum/read.php?3,27586,27595#msg-27595
Try specifying --with-pcre=/usr/local - that's what I've always used.
___
Help-cfengine m
Forum: CFEngine Help
Subject: Re: cf_promises_validated : bug 1258
Author: nickanderson
Link to topic: https://cfengine.com/forum/read.php?3,27307,27593#msg-27593
> (1) Within any machine, is the copy in "inputs"
> (i.e. "inputs/cf_promises_validated") used at all?
> I suspect not.
its my unders
Forum: CFEngine Help
Subject: Re: cf_promises_validated : bug 1258
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27307,27592#msg-27592
On the subject of am_policy_hub, this was closed today:
https://cfengine.com/dev/issues/1218 and also my original bug 1129.
On the sub
Forum: CFEngine Help
Subject: Re: cf_promises_validated : bug 1258
Author: davidlee
Link to topic: https://cfengine.com/forum/read.php?3,27307,27591#msg-27591
Thanks for the reply, Nick. Much appreciated.
By far the major problem seems to be a complete lack of any formal
documentation. Your re
Forum: CFEngine Help
Subject: configure:18021: error: Cannot find PCRE
Author: cfengine2o12
Link to topic: https://cfengine.com/forum/read.php?3,27586,27586#msg-27586
# grep -i pcre config.log
$ ./configure --prefix=/opt/cfengine --with-qdbm --with-pcre --disable-shared
LDFLAGS=-L/usr/local/lib
Forum: CFEngine Help
Subject: Cfengine configure:18021: error: Cannot find PCRE on HP-UX11.31
Author: cfengine2o12
Link to topic: https://cfengine.com/forum/read.php?3,27585,27585#msg-27585
# grep -i pcre config.log
$ ./configure --prefix=/opt/cfengine --with-qdbm --with-pcre --disable-shared
L
Forum: CFEngine Help
Subject: Re: auto-scrolling website
Author: Jarradvarsi
Link to topic: https://cfengine.com/forum/read.php?3,27522,27590#msg-27590
Hi,
I want to embed an auto-scrolling slideshow on my website for news updates and
photos, but I don't know what is the code for that.
Example:
Forum: CFEngine Help
Subject: Re: Starting cf-execd from inittab
Author: aleksey_c
Link to topic: https://cfengine.com/forum/read.php?3,27509,27589#msg-27589
Feature request is completed
https://github.com/cfengine/core/commit/fe3646fb7bac64f623ed8352950540213a84c53e
Thanks to Mikhail Gusarov!
_
Forum: CFEngine Help
Subject: Need criticism regarding my service control bundle.
Author: juriskrumins
Link to topic: https://cfengine.com/forum/read.php?3,27588,27588#msg-27588
The purpose of the bundle is to maintain, in this case sshd, full service
livecycle in the system. Starting from sshd c
Forum: CFEngine Help
Subject: Re: Force variables to be defined after classes?
Author: davinken
Link to topic: https://cfengine.com/forum/read.php?3,18656,27587#msg-27587
I guess the CLUSTER and cluster_classes variables need also to have the policy
=> "overridable"; declared. In this was the Re
Forum: CFEngine Help
Subject: Re: Thread died in Berkeley DB library
Author: msvob...@linkedin.com
Link to topic: https://cfengine.com/forum/read.php?3,26071,27583#msg-27583
Hey Roman
Sorry nobody responded to you on this. Here is my solution. I hit the same
exact problem. I perform two RPM
Forum: CFEngine Help
Subject: Re: Overwrite file with link in copy_from
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27574,27577#msg-27577
Try move_obstructions:
http://cfengine.com/manuals/cf3-Reference#move_005fobstructions-in-files
_
Forum: CFEngine Help
Subject: Overwrite file with link in copy_from
Author: FraserCampbell
Link to topic: https://cfengine.com/forum/read.php?3,27574,27574#msg-27574
I'm trying to replicate directory contents using copy_from but am running into
an issue with links. The source directory contains
Forum: CFEngine Help
Subject: Re: bug tracking
Author: davidlee
Link to topic: https://cfengine.com/forum/read.php?3,27306,27571#msg-27571
Firstly, a word of thanks to whoever repaired the old bugtracker, restoring
"reported by me" section. Much appreciated.
Secondly, a gentle plea for someone
Forum: CFEngine Help
Subject: Re: cf-monitord: "Internal limit 4: Buffer ran out of space
constructing string (3970 > 3968)."
Author: davidlee
Link to topic: https://cfengine.com/forum/read.php?3,26891,27569#msg-27569
I seems to be bug 1036 in the old bug-tracker.
Monitoring (cf-monitord)
It w
Forum: CFEngine Help
Subject: Re: Bootstrapping / Files copied
Author: tjavo87
Link to topic: https://cfengine.com/forum/read.php?3,27314,27568#msg-27568
sauer Wrote:
---
> All I put in the hard-coded "masterfiles" is a
> minimal failsafe.cf (and
Forum: CFEngine Help
Subject: Disable telnet with cfengine
Author: marlonc
Link to topic: https://cfengine.com/forum/read.php?3,27565,27565#msg-27565
Hi
Can we disable or restrict telnet and other ports using cfengine policy? Do you
have an example??
Thanks...
_
Forum: CFEngine Help
Subject: Re: regcmp() not working correctly?
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,27556,27564#msg-27564
Ahh. I think Authority's answer made sense. changing my regex to ".*:on.*"
solved the problem. I wont make that mistake twice.
-D
___
Forum: CFEngine Help
Subject: Re: cf-monitord: "Internal limit 4: Buffer ran out of space
constructing string (3970 > 3968)."
Author: Charlie
Link to topic: https://cfengine.com/forum/read.php?3,26891,27561#msg-27561
What bug number is it? I'd like to track it as well.
I'm getting the same erro
Forum: CFEngine Help
Subject: Re: regcmp() not working correctly?
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,27556,27559#msg-27559
Which version of CFEngine are you running? I have quite a similar bundle to
disable services and it works fine for me.
I'm running Enterp
Forum: CFEngine Help
Subject: Re: regcmp() not working correctly?
Author: Authority
Link to topic: https://cfengine.com/forum/read.php?3,27556,27558#msg-27558
It's matching the "on" in haldaemon.
Perhaps try setting a word boundary in your regex like so: .*\bon\b.*
>From my handy "Regular Expres
Forum: CFEngine Help
Subject: regcmp() not working correctly?
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,27556,27556#msg-27556
I have a bundle for disabling services:
bundle agent disable_services(name) {
vars:
"status" string => execresult("/sbin/chkconfig --list $
Forum: CFEngine Help
Subject: Re: [ANNOUNCE] Mantis -> Redmine
Author: Teamnork
Link to topic: https://cfengine.com/forum/read.php?3,27043,27555#msg-27555
Redmine is a flexible project management web aplication. Written using Ruby on
Rails framework, it is cross-platform and cross-database.
Forum: CFEngine Help
Subject: Re: auto-scrolling website
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,27522,27554#msg-27554
It seems to affect Firefox and IE users. I could not reproduce on Chrome and
Safari.
* Get to a hash link (#)
* Scroll up to the top
* Scroll down
Forum: CFEngine Help
Subject: Re: Starting cf-execd from inittab
Author: aleksey_c
Link to topic: https://cfengine.com/forum/read.php?3,27509,27552#msg-27552
Thank you for suggestion. It is a bit of hack but should work as temporary
workaround. Although CFEngine should natively support starting f
Forum: CFEngine Help
Subject: Re: auto-scrolling website
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,27522,27548#msg-27548
I can't seem to trigger this behavior in Safari nor Chrome on my Mac - so
either it's been fixed already or it's browser/platform specific?
I might
Forum: CFEngine Help
Subject: Re: Question on cf-execd duplicate report suppression
Author: ro
Link to topic: https://cfengine.com/forum/read.php?3,27134,27546#msg-27546
Okay, a few weeks ago I did some small test setup on one of the machines:
bundle agent duplicateReportTest {
commands:
Forum: CFEngine Help
Subject: Re: Trying to use a variable inside a regex
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,27490,27545#msg-27545
Unrelated, but if you want a literal $ in the regex string, shouldn't you be
using $(const.dollar)?
I generally try to use \z to avoi
Forum: CFEngine Help
Subject: Re: Starting cf-execd from inittab
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,27509,27544#msg-27544
As a related suggestion, you could probably create a small shell script for
init to monitor cf-execd by doing something similar to this
pidfi
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,27543#msg-27543
It went thru after adding PCRE_LDFLAGS in install..Now
# grep -i error config.log
confi
Forum: CFEngine Help
Subject: Re: auto-scrolling website
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27522,27540#msg-27540
The whole site drives me mental. I know I submitted a bug about the long load
times for documents. Now that bug seems to be missing.
__
Forum: CFEngine Help
Subject: Re: allclasses facility?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27436,27539#msg-27539
Yes, I saw that reference too but, could not find any functional proof of its
existance.
___
Help-cfen
Forum: CFEngine Help
Subject: Re: CFEngine Help: Managing Booleans
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,27500,27538#msg-27538
I've written this library function here it seems to work well so far:
bundle agent set_selinux_boolean(s, i){
classes:
"BOOL_OFF" ex
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,27537#msg-27537
# swlist pcre
# Initializing...
# Contacting target "cf-host"...
#
# Target: cf-host:/
Forum: CFEngine Help
Subject: Re: Trying to use a variable inside a regex
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,27490,27536#msg-27536
Yes. Silly me. I did actually get my library function to work properly.
bundle agent set_selinux_boolean(s, i){
classes:
"BOO
Forum: CFEngine Help
Subject: Re: CFEngine 3.3.5 does not like {{{ classes: "webclass" or => {
"@(webservers)" }; }}} (Was: Re: CFEngine Help: Re: False report of "no
constrants" in constrained classes promises.)
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,27525,27535#m
Forum: CFEngine Help
Subject: Re: auto-scrolling website
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,27522,27534#msg-27534
I think Javascript is a culprit. When you are at a specific place with an
anchor link and scroll up to see stuff at the beginning of the page (when
Forum: CFEngine Help
Subject: Re: auto-scrolling website
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,27522,27533#msg-27533
Yes, it drove me insane some months ago...
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https:/
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,27532#msg-27532
Please provide
swlist pcre
grep -i pcre config.log
Forum: CFEngine Help
Subject: Re: Starting cf-execd from inittab
Author: aleksey_c
Link to topic: https://cfengine.com/forum/read.php?3,27509,27527#msg-27527
Feature request registered https://cfengine.com/dev/issues/1224
___
Help-cfengine mailing list
Forum: CFEngine Help
Subject: Re: False report of "no constrants" in constrained classes promises.
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,27501,27526#msg-27526
There's no action for a classes promise with nothing in the body but an
"ifvarclass" because of the way ifvar
Forum: CFEngine Help
Subject: Re: allclasses facility?
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,27436,27524#msg-27524
neilhwatson Wrote:
---
> What other facility is there to get a list of all
> defined classes?
You're
Forum: CFEngine Help
Subject: auto-scrolling website
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,27522,27522#msg-27522
Before I go to the new bug site, I'm curious. Am I the only person being
driven absolutely insane by the inability to scroll on the reference manual
page
Forum: CFEngine Help
Subject: Re: Starting cf-execd from inittab
Author: aleksey_c
Link to topic: https://cfengine.com/forum/read.php?3,27509,27513#msg-27513
Just looked at the source code of cfengine-3.3.5\src\cf-execd.c
When starting cf-execd with --nofork or -F option ONCE flag is set to true
Forum: CFEngine Help
Subject: Re: Starting cf-execd from inittab
Author: aleksey_c
Link to topic: https://cfengine.com/forum/read.php?3,27509,27512#msg-27512
I've seen a few examples of how to make sure that cf-execd is always running.
Most of them include cron job regulary starting shell script.
Forum: CFEngine Help
Subject: Re: Starting cf-execd from inittab
Author: aleksey_c
Link to topic: https://cfengine.com/forum/read.php?3,27509,27511#msg-27511
For respawn to work correctly, processes should not fork themselves. The
respawn attribute is associated with the parent process that is st
Forum: CFEngine Help
Subject: Re: Starting cf-execd from inittab
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27509,27510#msg-27510
Why the --no-fork?
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine
Forum: CFEngine Help
Subject: Starting cf-execd from inittab
Author: aleksey_c
Link to topic: https://cfengine.com/forum/read.php?3,27509,27509#msg-27509
Does anyone have experience of starting cf-execd from inittab with respawn
option?
For example
ce:2345:respawn:/var/cfengine/bin/cf-execd --n
Forum: CFEngine Help
Subject: Re: False report of "no constrants" in constrained classes promises.
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,27501,27506#msg-27506
On 09/23/2012 02:42 AM, Aleksey Tsalolikhin wrote:
> Situation: I want to target a promise to a certain group
Forum: CFEngine Help
Subject: Re: Trying to use a variable inside a regex
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27490,27496#msg-27496
"sebooloff" expression => regcmp(".*$(i)$", execresult("/usr/sbin/getsebool
$(s)", "noshell"));
"seboolon" expression => r
Forum: CFEngine Help
Subject: Re: Trying to use a variable inside a regex
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27490,27495#msg-27495
You might have a bug here. Can you duplicate my results below? Made a wrapper
to simulate getsebool.
#!/bin/sh
STRING=$*
pri
Forum: CFEngine Help
Subject: Re: Trying to use a variable inside a regex
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,27490,27494#msg-27494
What's even more strange, is if I take your example, and use my bundle it
prints both reports:
# REgex test
body common control {
Forum: CFEngine Help
Subject: Re: Trying to use a variable inside a regex
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,27490,27493#msg-27493
It's odd Neil, If I copy/paste your code it works fine.
Here is my code as a whole:
bundle agent security
{
vars:
packages:
Forum: CFEngine Help
Subject: Re: Trying to use a variable inside a regex
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,27490,27492#msg-27492
# getsebool virt_use_nfs
virt_use_nfs --> off
I'm using 3.3.5
___
Help-cfengine mail
Forum: CFEngine Help
Subject: Re: Trying to use a variable inside a regex
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27490,27491#msg-27491
What does getsebool return? The following works in 3.4.0b1.
body common control {
bundlesequence => {
"main",
};
inputs => {
Forum: CFEngine Help
Subject: Trying to use a variable inside a regex
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,27490,27490#msg-27490
bundle agent set_selinux_boolean(s, i){
classes:
"sebooloff" expression => regcmp(".*$(i)$", execresult("/usr/sbin/getsebool
$(s)
Forum: CFEngine Help
Subject: Re: RFC: JSON support for CFEngine
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27484,27488#msg-27488
I think I see where you are going. More ways to abstract data are a good thing.
___
Help-cfe
Forum: CFEngine Help
Subject: Re: RFC: JSON support for CFEngine
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27484,27485#msg-27485
Ted,
I like the idea of abstracting data structures. Sadly, Cf3's current crop of
data structure is limited such that JSON is overkill.
Forum: CFEngine Help
Subject: Re: CFEngine Help: SELinux experience
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,27024,27483#msg-27483
Thanks Nick. I did grep around in there, but didn't find anything to do with
SElinux or setsebool.
_
Forum: CFEngine Help
Subject: Re: CFEngine Help: SELinux experience
Author: nickanderson
Link to topic: https://cfengine.com/forum/read.php?3,27024,27482#msg-27482
Your looking for verticalsysadmin_training_examples
___
Help-cfengine mailing list
Help-c
Forum: CFEngine Help
Subject: Re: CFEngine Help: SELinux experience
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,27024,27481#msg-27481
Hi Aleksey,
I'm trying to find your examples. Can you give a link or tell me where in the
git repo they are? All I see is
encfs_dropb
Forum: CFEngine Help
Subject: Managing Booleans
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,27478,27478#msg-27478
I need to manage SElinux contexts on my systems. With that, I need to set
booleans either on or off with setsebool. It there an efficient way to manage
bool
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,27477#msg-27477
However now getting error even PCRE is installed...
checking for pcre_exec in -lpcre...
1 - 100 of 5654 matches
Mail list logo