Cfengine Help: Re: Release candidate for 3.1.0 (source code only)

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: Release candidate for 3.1.0 (source code only)
Author: Metabaron
Link to topic: https://cfengine.com/forum/read.php?3,18597,18624#msg-18624

Seva Gluschenko Wrote:
---
> Well, the issue is pretty clear and hopefully easy
> to fix. I'm going to submit it to the bug tracker
> now.
> 
> UPD:
> https://cfengine.com/bugtracker/view.php?id=268


Thanks Seva :-)

I have tested the svn release. Now it segafaults on another place: NewScope 
(name=0x469bf7 "match") at scope.c:103
Should I update the same report or create a new?

--
Emil

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Re: vars policy => "ifdefined" broken

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: vars policy => "ifdefined" broken
Author: Igor
Link to topic: https://cfengine.com/forum/read.php?3,18061,18625#msg-18625

https://cfengine.com/bugtracker/view.php?id=269

issue resolved.

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Re: I'm exploiting usemodule. There has got to be a better way to define global classes?

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: I'm exploiting usemodule. There has got to be a better way to 
define global classes?
Author: Metabaron
Link to topic: https://cfengine.com/forum/read.php?3,18623,18626#msg-18626

-- You don't need to define global classes.
-- You think you’re some kind of Jedi, waving your hand around like that?

(Sorry, I couldn't help it :-P)

--
Emil

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Re: Release candidate for 3.1.0 (source code only)

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: Release candidate for 3.1.0 (source code only)
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,18597,18627#msg-18627

Well, since I'm not Cfengine developer, it's not me whom to ask for. From my 
humble opinion, you can use the same report.

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Re: Release candidate for 3.1.0 (source code only)

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: Release candidate for 3.1.0 (source code only)
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,18597,18628#msg-18628

Same report is great, but please send the policy code that causes the fault, 
and remember the backtrace

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Re: Cfagent hangs on 'copy'

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: Cfagent hangs on 'copy'
Author: danci1973
Link to topic: https://cfengine.com/forum/read.php?3,18586,18629#msg-18629

mark Wrote:
---
> This sounds like a bug that used to be in the
> server.  I would recommend you upgrade to the last
> version 2 if you can.

Well, that didn't help... I installed 2.2.10 on the problematic client and it 
still 'hangs' and timeouts after a (long) while.

  Danilo

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Re: I'm exploiting usemodule. There has got to be a better way to define global classes?

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: I'm exploiting usemodule. There has got to be a better way to 
define global classes?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18623,18630#msg-18630

Why would you need to do such a thing?  Can you give a practical example?

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Re: Cfagent hangs on 'copy'

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: Cfagent hangs on 'copy'
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18586,18631#msg-18631

You might have to upgrade the server also.

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Removing packages w/o specifying version, package_method yum, RHEL5

2010-10-06 Thread Jim Lawson
|Hi help-cfengine,

I'm trying to use cfengine_stdlib.cf's definition of "package_method
yum" to remove some packages. 

This is under RHEL5, with cfengine community 3.0.5p1.

Here's an example .cf that fails:



body common control {

inputs => {"cfengine_stdlib.cf"};
# sha1sum c0d0b9457b86bedacd914b6bf951188a1ed16e69

bundlesequence => {"main"};

}

bundle agent main {

vars:

"RHEL_virtualization_packages" slist => {
"rhn-virtualization-common",
"rhn-virtualization-host",
"libvirt-python", "libvirt" };

packages:

any::
"$(RHEL_virtualization_packages)"
package_policy => "delete",
package_method => yum;

}



Running this gives the result:

Q:   rpm -e libvirt.*  ...:error: package libvirt.* is not installed
Q:   rpm -e libvirt.*  ...:

rpm -e doesn't understand $(packagename).*.

I made the following modification to cfengine_stdlib.cf which seems to
address my problem, at least:



diff --git a/cfengine_stdlib.cf b/cfengine_stdlib.cf
index 30715fa..de9af0e 100644
--- a/cfengine_stdlib.cf
+++ b/cfengine_stdlib.cf
@@ -988,7 +988,7 @@ package_list_version_regex => "[^\s]\s+([^\s]+).*";
 package_list_arch_regex=> "[^.]+\.([^\s]+).*";
 
 package_installed_regex => ".*installed.*";
-package_name_convention => "$(name).$(arch)";
+package_name_convention => "$(name)";
 
 package_add_command => "/usr/bin/yum -y install";
 package_delete_command => "/bin/rpm -e";




However, I don't know if this might break something else. 
Comments/suggestions welcome.|

--
Jim Lawson
Systems Architecture & Administration
Enterprise Technology Services
University of Vermont
Burlington, VT USA


___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Edit region of file - remove existing content

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Edit region of file - remove existing content
Author: kholloway
Link to topic: https://cfengine.com/forum/read.php?3,18633,18633#msg-18633

All,
 I'm trying to edit a file of any kind that has a start/end delimiter and I 
want to remove all the text between the start/end delimiter and replace it with 
the contents of another file.
The insert portion works perfectly but the delete is being greedy and deleting 
EVERYTHING after the start delimiter.
The code below is self contained for testing, it appears that the delete 
portion is not respecting the end delimiter.
Delete_select portion is taken directly from the CF3 PDF manual and again does 
delete everything from start delim to EOF instead of to end delim.

Thanks in advance for any suggestions!

OS: Solaris 10
CF3 Ver: 3.0.5p1

bundle agent test {
files:
 testhost::
"/tmp/test_dest.txt"
comment => "Test, insert stuff into selected region of 
file",
edit_line => insert_between_region('## CF3 DO NOT EDIT 
##','/tmp/test_insert.txt');
}

# Replace everything between start and end delimiters with our data
# Start and end delim are the same for our test but could be different with 
some minor changes
bundle edit_line insert_between_region(delim, insert_file)
{

delete_lines:
 ".*"
select_region => start_end('${delim}','${delim}'),
delete_select => example('${delim}');

insert_lines:
 "${insert_file}"
select_region => start_end('${delim}','${delim}'),
insert_type => 'file';

}

body delete_select example(s)
{
delete_if_not_match_from_list => { @(s) };
#delete_if_not_contains_from_list => { $(s) };
}

body select_region start_end(start,end)
{
select_start => "$(start)";
select_end => "$(end)";
include_start_delimiter => "false";
include_end_delimiter   => "false";
}

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Re: Edit region of file - remove existing content

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: Edit region of file - remove existing content
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18633,18634#msg-18634

Have you tried using different start and end delimiters?

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Re: I'm exploiting usemodule. There has got to be a better way to define global classes?

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: I'm exploiting usemodule. There has got to be a better way to 
define global classes?
Author: msvob...@linkedin.com
Link to topic: https://cfengine.com/forum/read.php?3,18623,18635#msg-18635

I'm trying to limit execution of policies without having to modify the policies 
themselves.

Here's the idea...

bundlesequence first executes policy_controller.cf

In this policy, i read a file

policy1:file1
policy2:file1
policy3:file1
policy4:weapons_free

File1:
hostA
hostB
hostC
hostD

So when I want to execute policy4, if it notices that "weapons free" isn't 
there, it will execute the policy as defined.  If it notices file1, it will 
only apply the policy on the machines listed in File1.

This means we can make modifications to File1 and change which hosts are 
testing that policy first, instead of modifying classes in the policy itself

If there's a better way of doing this, let me know.  But if I notice 
policy1:file1 in policy_controller.cf, I need to define global classes so the 
"other policies in bundlesequence" can pick up if they are restricted or not.

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Re: Removing packages w/o specifying version, package_method yum, RHEL5

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: Removing packages w/o specifying version, package_method yum, RHEL5
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,18632,18636#msg-18636

Jim,

You may want to define package_delete_convention instead, so that the name-only 
specification applies only to package deletion.
http://www.cfengine.org/manuals/cf3-reference.html#package_005fmethod-in-packages

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Re: Edit region of file - remove existing content

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: Edit region of file - remove existing content
Author: kholloway
Link to topic: https://cfengine.com/forum/read.php?3,18633,18637#msg-18637

Just tried with this code and a different start/ending delim.
Outcome is identical, everything between the selected region gets deleted and 
replaced but everything past the end delim in the file gets deleted to EOF.
It's as if the end of the select region is simply being ignored.

bundle agent test
{
   files:
 testhost::
"/tmp/test_dest.txt"
comment => "Test, insert stuff into selected region of 
file",
edit_line => insert_between_region('## CF3 DO NOT EDIT 
START ##','## CF3 DO NOT EDIT END ##','/tmp/test_insert.txt');
}

# Replace everything between start and end delimiters with our data
bundle edit_line insert_between_region(sdelim, edelim, insert_file)
{

delete_lines:
 ".*"
select_region => start_end('${sdelim}','${edelim}'),
delete_select => example('${sdelim}','${edelim}');

insert_lines:
 "${insert_file}"
select_region => start_end('${sdelim}','${edelim}'),
insert_type => 'file';

}

body delete_select example(s,e) 
{
delete_if_not_match_from_list => { $(s), $(e) }; 
#delete_if_not_contains_from_list => { $(s), $(e) };
}

body select_region start_end(start,end) 
{ 
select_start => "$(start)";
select_end => "$(end)"; 
include_start_delimiter => "false";
include_end_delimiter   => "false";
}

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Re: Edit region of file - remove existing content

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: Edit region of file - remove existing content
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18633,18638#msg-18638

I've not done this type of editing before.  You might try just inserting text 
in your region to see if that works as expected.  If so then move on to just 
deleting.  If both work then look again at combining them as you have done here.

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Random delugues of cf-twin processes

2010-10-06 Thread Simon Oxwell
Hi all,

 

 

I'm running cfengine 3.0.4 under a number of Solaris 10 zones across a
number of Logical Domains.

 

Occasionally - it seems to be just after installation - we get a build
up of cf-twin processes, which don't seem to be hung per se - they're
consuming some cpu cycles and they have a log file open :

 

root 27065 1   0   Oct 01 ?  11:38
/var/opt/CCcfengine3/bin/cf-execd

root 25831 25830   1   Oct 01 ?1456:15
/var/opt/CCcfengine3/bin/cf-twin -f failsafe.cf

 root 25830 27065   0   Oct 01 ?   0:00 sh -c
"/var/opt/CCcfengine3/bin/cf-twin" -f failsafe.cf &&
"/var/opt/CCcfengine

 

and then more and more  of the last two

 

Until we get this:

 

File descriptor 254 of child higher than MAX_FD, check for defunct
children

 

Or similar,  repeated in the syslog..

 

I've used gcore to get a dump of the hung processes to get a backtrace
to try and figure out what they're doing, which doesn't help me so much,
but might be able to help someone here:

 

# mdb core.198

Loading modules: [ libc.so.1 libavl.so.1 ld.so.1 ]

> $C

ffbe95a8 CompareVariable+0x14(ffbeba70, 0, ffbeba84, 315d00, ff00,
ff)

ffbe9610 GetVariable+0x48c(ee174, ffbed368, ffbec2e8, ffbec2ec,
ffbed37a, 3ec)

ffbec288 NewScalar+0x94(ee174, ffbed368, ffbed768, 0, ff00, 12)

ffbec2f8 Unix_GetInterfaceInfo+0xdc8(1, 3137, 19aa48, 313700, ff00,
ff)

ffbfebb8 CfGetInterfaceInfo+0xc(1, decd8, dece0, d4f98, ffbfec7c,
80808080)

ffbfec18 GenericInitialize+0x104(3, ffbffd54, d9d48, 4, feaa2a00,
fec3647c)

ffbffc88 main+0x38(3, ffbffd54, ffbffd64, d4c00, feaa0140, 0)

ffbffcf0 _start+0x108(0, 0, 0, 0, 0, 0)

 

# mdb core.3469

Loading modules: [ libc.so.1 libavl.so.1 ld.so.1 ]

> $C

ffbe96f0 GetVariable+0x494(ee174, ffbed448, ffbec3c8, ffbec3cc,
ffbed45a, 3ec)

ffbec368 NewScalar+0x94(ee174, ffbed448, ffbed848, 0, ff00, 12)

ffbec3d8 Unix_GetInterfaceInfo+0xdc8(1, 3137, 19aa48, 313700, ff00,
ff)

ffbfec98 CfGetInterfaceInfo+0xc(1, decd8, dece0, d4f98, ffbfed5c,
80808080)

ffbfecf8 GenericInitialize+0x104(3, ffbffe34, d9d48, 4, feaa2a00,
fec3647c)

ffbffd68 main+0x38(3, ffbffe34, ffbffe44, d4c00, feaa0140, 0)

ffbffdd0 _start+0x108(0, 0, 0, 0, 0, 0)

 

 

Does anyone have any ideas as what's happening and how it be able to be
avoided? (pretty much of a long shot, I know)

 

 

Simon

 

--

Simon Oxwell

ControlCircle

Senior Server Engineer

The Datacentre People

0044 (0)20 7517 6594

Hertsmere House, 2 Hertsmere Road,

simon.oxw...@controlcircle.com  

London, E14 4AB

 

 

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Re: "Hourly" splayclass for daily staggered script execution; some nodes not executing

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: "Hourly" splayclass for daily staggered script execution; some 
nodes not executing
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18359,18640#msg-18640


bundle agent test {

classes:

"rand" dist => { "2", "3", "5" };

reports:

rand_2::
"There is a 2 in 10 chance of classs rand_2 being 
defined";
rand_3::
"There is a 3 in 10 chance of classs rand_3 being 
defined";
rand_5::
"There is a 5 in 10 chance of classs rand_5 being 
defined";
}


You could then compound classes such as 'rand_3.Hr15' and further limit this to 
once during hour 15 using ifelapsed.

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Re: Edit region of file - remove existing content

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: Edit region of file - remove existing content
Author: kholloway
Link to topic: https://cfengine.com/forum/read.php?3,18633,18641#msg-18641

Good suggestion, I have already done that before I posted my original request. 
:)
The insert works as expected, it's the delete that's causing the problem.
The delete ALWAYS deletes to EOF instead of end of delimiter.

I will submit a bug report on this also since it does not seem like intended 
behavior.

Thanks.

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Re: Removing packages w/o specifying version, package_method yum, RHEL5

2010-10-06 Thread Jim Lawson

> Forum: Cfengine Help
> Subject: Re: Removing packages w/o specifying version, package_method yum, 
> RHEL5
> Author: zzamboni
> Link to topic: https://cfengine.com/forum/read.php?3,18632,18636#msg-18636
>
> Jim,
>
> You may want to define package_delete_convention instead, so that the 
> name-only specification applies only to package deletion.
> http://www.cfengine.org/manuals/cf3-reference.html#package_005fmethod-in-packages
>
>   

This works, thanks!  Should it be added to cfengine_stdlib.cf?



diff --git a/cfengine_stdlib.cf b/cfengine_stdlib.cf
index 30715fa..9bca448 100644
--- a/cfengine_stdlib.cf
+++ b/cfengine_stdlib.cf
@@ -989,6 +989,7 @@ package_list_arch_regex=> "[^.]+\.([^\s]+).*";
 
 package_installed_regex => ".*installed.*";
 package_name_convention => "$(name).$(arch)";
+package_delete_convention => "$(name)";
 
 package_add_command => "/usr/bin/yum -y install";
 package_delete_command => "/bin/rpm -e";



Jim
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


installing particular package versions

2010-10-06 Thread Grant Street
Hello

We are currently on cfengine 2 and are looking to migrate to 3. One 
issue we have is the the inability to install a particular rpm version 
using the the package action.

This causes us to "store" our current package versions by administering 
the repo rather than just in the cfengine config files. Yum is more than 
capable of installing a particular version from multiple on offer from 
the repo.

I just need to confirm if this is still the case in cfengine 3? It seems 
that this is not fixed according to the docs below.
http://www.cfengine.org/manuals/cf3-reference.html#packages-in-agent-promises

thanks in advance

Grant
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Re: installing particular package versions

2010-10-06 Thread Mark Burgess

Cfengine 3 just gives you a generic interface to pass through to the package 
manager, So
it's up to you to say what you want. I never specify version numbers, but some 
people want
to. In some cases package managers give unwanted side effects like "smart" 
management of
dependencies that can break stuff, but that's not a Cfengine issue.

Grant Street wrote:
> Hello
> 
> We are currently on cfengine 2 and are looking to migrate to 3. One 
> issue we have is the the inability to install a particular rpm version 
> using the the package action.
> 
> This causes us to "store" our current package versions by administering 
> the repo rather than just in the cfengine config files. Yum is more than 
> capable of installing a particular version from multiple on offer from 
> the repo.
> 
> I just need to confirm if this is still the case in cfengine 3? It seems 
> that this is not fixed according to the docs below.
> http://www.cfengine.org/manuals/cf3-reference.html#packages-in-agent-promises
> 
> thanks in advance
> 
> Grant
> ___
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

-- 
Mark Burgess

-
Professor of Network and System Administration
Oslo University College, Norway

Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Re: installing particular package versions

2010-10-06 Thread Grant Street
Hi Mark

So does that mean that cfengine 3 will pass the version number of a 
package through to the package manager?

eg in cfengine 2
in the repo there are the following packages
app-1.0
app-2.0
app-3.0

If I use the following

packages:
 appcmp=eq version=0:2.0 action=install

cfengine 2 will only issue the following to install the package

yum install app

In doing so yum will install the most recent version ie version 3.0

all that would be required would be to issue

yum install app-2.0

So to manage this not only do I have to have logic in cfengine, where it 
should be, to define the version, I have to delete versions that are too 
new or create separate repo's. When all else fails I have to resort to 
command line rpm installs. This is what cfengine is meant to help with.
It already does something similar by passing x86_64/i386 through

Anyway just trying to get an idea of the scale of the migration work. 
cfengine has been great so far and has been great part of infrastructure.

Grant

On 07/10/10 15:11, Mark Burgess wrote:
>
> Cfengine 3 just gives you a generic interface to pass through to the package 
> manager, So
> it's up to you to say what you want. I never specify version numbers, but 
> some people want
> to. In some cases package managers give unwanted side effects like "smart" 
> management of
> dependencies that can break stuff, but that's not a Cfengine issue.
>
> Grant Street wrote:
>> Hello
>>
>> We are currently on cfengine 2 and are looking to migrate to 3. One
>> issue we have is the the inability to install a particular rpm version
>> using the the package action.
>>
>> This causes us to "store" our current package versions by administering
>> the repo rather than just in the cfengine config files. Yum is more than
>> capable of installing a particular version from multiple on offer from
>> the repo.
>>
>> I just need to confirm if this is still the case in cfengine 3? It seems
>> that this is not fixed according to the docs below.
>> http://www.cfengine.org/manuals/cf3-reference.html#packages-in-agent-promises
>>
>> thanks in advance
>>
>> Grant
>> ___
>> Help-cfengine mailing list
>> Help-cfengine@cfengine.org
>> https://cfengine.org/mailman/listinfo/help-cfengine
>

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Re: installing particular package versions

2010-10-06 Thread Mark Burgess

Grant, you will find a description in the manuals. As I said, you can choose. 
Cfengine
doesn't do anything that you don't ask it to do. Cfengine 3 is a completely new 
animal,
so don't begin by comparing it to 2. I would tyically say:

http://www.cfengine.org/manuals/cf3-reference.html#packages-in-agent-promises

Grant Street wrote:
> Hi Mark
> 
> So does that mean that cfengine 3 will pass the version number of a
> package through to the package manager?
> 
> eg in cfengine 2
> in the repo there are the following packages
> app-1.0
> app-2.0
> app-3.0
> 
> If I use the following
> 
> packages:
> appcmp=eq version=0:2.0 action=install
> 
> cfengine 2 will only issue the following to install the package
> 
> yum install app
> 
> In doing so yum will install the most recent version ie version 3.0
> 
> all that would be required would be to issue
> 
> yum install app-2.0
> 
> So to manage this not only do I have to have logic in cfengine, where it
> should be, to define the version, I have to delete versions that are too
> new or create separate repo's. When all else fails I have to resort to
> command line rpm installs. This is what cfengine is meant to help with.
> It already does something similar by passing x86_64/i386 through
> 
> Anyway just trying to get an idea of the scale of the migration work.
> cfengine has been great so far and has been great part of infrastructure.
> 
> Grant
> 
> On 07/10/10 15:11, Mark Burgess wrote:
>>
>> Cfengine 3 just gives you a generic interface to pass through to the
>> package manager, So
>> it's up to you to say what you want. I never specify version numbers,
>> but some people want
>> to. In some cases package managers give unwanted side effects like
>> "smart" management of
>> dependencies that can break stuff, but that's not a Cfengine issue.
>>
>> Grant Street wrote:
>>> Hello
>>>
>>> We are currently on cfengine 2 and are looking to migrate to 3. One
>>> issue we have is the the inability to install a particular rpm version
>>> using the the package action.
>>>
>>> This causes us to "store" our current package versions by administering
>>> the repo rather than just in the cfengine config files. Yum is more than
>>> capable of installing a particular version from multiple on offer from
>>> the repo.
>>>
>>> I just need to confirm if this is still the case in cfengine 3? It seems
>>> that this is not fixed according to the docs below.
>>> http://www.cfengine.org/manuals/cf3-reference.html#packages-in-agent-promises
>>>
>>>
>>> thanks in advance
>>>
>>> Grant
>>> ___
>>> Help-cfengine mailing list
>>> Help-cfengine@cfengine.org
>>> https://cfengine.org/mailman/listinfo/help-cfengine
>>
> 

-- 
Mark Burgess

-
Professor of Network and System Administration
Oslo University College, Norway

Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


Cfengine Help: Re: I'm exploiting usemodule. There has got to be a better way to define global classes?

2010-10-06 Thread no-reply
Forum: Cfengine Help
Subject: Re: I'm exploiting usemodule. There has got to be a better way to 
define global classes?
Author: Metabaron
Link to topic: https://cfengine.com/forum/read.php?3,18623,18647#msg-18647

I actually recognize this problem. I use the regline function to check if a 
file /etc/cfclass.conf contains a line like for example "frontend-tomcat". This 
lets me give a role to a server without having to change the promises.

I didn't find a way to localy define additional global classes.

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine