Forum: Cfengine Help
Subject: Re: How to extract values (not keys) from an array to slist?
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,21174,21178#msg-21178
I just comitted to svn a new function getvalues() which mirrors getindices and
makes a list of the values.
This is ind
Forum: Cfengine Help
Subject: Problem with special characters
Author: max_fr
Link to topic: https://cfengine.com/forum/read.php?3,21179,21179#msg-21179
Hi,
In order to change root password, i try to compare two md5 string with strcmp
function as following:
redhat::
"new_root_pw
Forum: Cfengine Help
Subject: Re: Problem with special characters
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,21179,21180#msg-21180
Does this help?
http://www.cfengine.org/manuals/cf3-reference.html#Variable-const_002edollar
Cheers,
--Nakarin
_
Rock on! Thanks Mark!
On 3/17/11 6:08 AM, "no-re...@cfengine.com" wrote:
> Forum: Cfengine Help
> Subject: Re: How to extract values (not keys) from an array to slist?
> Author: mark
> Link to topic: https://cfengine.com/forum/read.php?3,21174,21178#msg-21178
>
> I just comitted to svn a new
Forum: Cfengine Help
Subject: Re: Problem with special characters
Author: max_fr
Link to topic: https://cfengine.com/forum/read.php?3,21179,21182#msg-21182
Thanks for you help
Ok, if I understand correctly i must substitute the dollar character by the
constant const.dollar? I am surprised by th
Forum: Cfengine Help
Subject: Re: Problem with special characters
Author: berntjernberg
Link to topic: https://cfengine.com/forum/read.php?3,21179,21183#msg-21183
Hi,
Do you use the uppwd-class somewhere else?
Otherwise you don't need to compare the hash-strings to not change anything if
the cor
Forum: Cfengine Help
Subject: Re: Problem with special characters
Author: max_fr
Link to topic: https://cfengine.com/forum/read.php?3,21179,21184#msg-21184
It seems when i insert single quotes around the hash password, the dollar
character is not interpreted.
"new_root_pwd" string => "'$1$JNo
Forum: Cfengine Help
Subject: Re: Problem with special characters
Author: max_fr
Link to topic: https://cfengine.com/forum/read.php?3,21179,21185#msg-21185
berntjernberg,
Here is my complete code:
bundle agent root_pwd_update(new_pwd) {
vars:
"old_pwd" int =>
readstrin
Forum: Cfengine Help
Subject: status of process matching in Solaris?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21186,21186#msg-21186
Where are we with process matching in Solaris in community 3.1.4? Consider
this bundle:
body common control
{
bundlesequence => { "t
Forum: Cfengine Help
Subject: Re: Problem with special characters
Author: berntjernberg
Link to topic: https://cfengine.com/forum/read.php?3,21179,21187#msg-21187
Hi,
Can you use something like this:
bundle agent root_pwd_update
{
vars:
hpux::
"local_root_passwd" string
Forum: Cfengine Help
Subject: Re: status of process matching in Solaris?
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,21186,21188#msg-21188
It should be failed because of your regex as I can see on the Solaris differs
from Linux. Just my guesswork.
Cheers,
--Nakarin
__
Forum: Cfengine Help
Subject: Re: status of process matching in Solaris?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21186,21189#msg-21189
The Linux ps ends with the command. The Solaris ps ends with the zone name.
Is this relevant? How does CF parse the output of
Forum: Cfengine Help
Subject: Re: How to extract values (not keys) from an array to slist?
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,21174,21190#msg-21190
Thanks Mark.
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
Forum: Cfengine Help
Subject: Re: Problem with special characters
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,21179,21191#msg-21191
Max,
Like Bernt says, you don't need to compare things beforehand. Cfengine will
only rewrite the file if any changes have been applied, a
Forum: Cfengine Help
Subject: Re: status of process matching in Solaris?
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,21186,21192#msg-21192
Neil,
Why don't you try matching the entire process path, without anchoring it,
something like
processes:
Forum: Cfengine Help
Subject: Re: status of process matching in Solaris?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21186,21193#msg-21193
Sometimes a process gets started manually and does not have the preceding path.
I have to account for that. I also have to acc
Forum: Cfengine Help
Subject: Re: status of process matching in Solaris?
Author: berntjernberg
Link to topic: https://cfengine.com/forum/read.php?3,21186,21194#msg-21194
Hi,
I too encountered the same problem. I ended up with
execresult("pgrep -z `zonename` -f "","noshell");
not the best soluti
Forum: Cfengine Help
Subject: Re: status of process matching in Solaris?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21186,21195#msg-21195
It seems to me that CF does not split the ps line into separate strings. It
would be nice if it did then there would be less wor
Forum: Cfengine Help
Subject: Re: status of process matching in Solaris?
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,21186,21196#msg-21196
Yes it does, if you use process_select. Otherwise it matches the entire line,
as it says in the docs.
_
Forum: Cfengine Help
Subject: Re: status of process matching in Solaris?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21186,21197#msg-21197
Thanks for the tip Mark. I am closer but something is still not right.
body common control
{
bundlesequence => { "test" };
input
Forum: Cfengine Help
Subject: Re: status of process matching in Solaris?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21186,21198#msg-21198
The zone name is attached to the command string. Using the same bundle above
but with the regex '/var/cfengine/bin/)?cf-serverd.
Forum: Cfengine Help
Subject: Re: How to extract values (not keys) from an array to slist?
Author: msvob...@linkedin.com
Link to topic: https://cfengine.com/forum/read.php?3,21174,21199#msg-21199
Hey Diego
Here's what I'm working on. Hopefully, this either helps someone else trying
to solve the
Forum: Cfengine Help
Subject: Re: How to extract values (not keys) from an array to slist?
Author: msvob...@linkedin.com
Link to topic: https://cfengine.com/forum/read.php?3,21174,21200#msg-21200
Disregard the code in the example I posted before... I've been modifying this
policy a lot in the pa
On Thu, 17 Mar 2011 13:58:40 +0100 (CET) max_fr wrote:
n> Ok, if I understand correctly i must substitute the dollar character by the
constant const.dollar? I am surprised by that.
n> It is very complicate to change a hash password as following :
n> $1$JNoH0WXg$3sF.c.I5aWMoAj8LpMtOW1
n> by
n
Forum: Cfengine Help
Subject: Redhat / Fedora / CentOS processes, services, and chkconfig nirvana
Author: msvob...@linkedin.com
Link to topic: https://cfengine.com/forum/read.php?3,21202,21202#msg-21202
I spent a few hours working on this, but I finally have this policy in the
state where process
25 matches
Mail list logo