Brad Lhotsky wrote:
I want to append a
postgresql* to exclude, because I manage those RPMs manually.
It would be nice if yum allowed for more flexibility on the
commandline, but we deal with the need for various yum configuration
file differences by defining variables and building the file entirely
with cfengine, something like the following. (Note that cfengine
doesn't actually rewrite the file if it isn't necessary.)
control:
!class1.!class2.!class3.!class4::
YumExcludes = ( "" )
class1|classs2::
YumExcludes = ( "sendmail*" )
class3::
YumExcludes = ( "bind*" )
class4::
YumExcludes = ( "openssh*" )
editfiles:
{ /etc/yum.conf
EmptyEntireFilePlease
AppendIfNoSuchLine "[main]"
AppendIfNoSuchLine "cachedir=/var/cache/yum"
...(more stuff)
AppendIfNoSuchLine "exclude=${YumExcludes}"
AppendIfNoSuchLine "${LogString}"
AppendIfNoSuchLine "[base]"
AppendIfNoSuchLine "name=${server} common repo"
AppendIfNoSuchLine "baseurl=ftp://${server}/distro"
AutoCreate
}
-Ed
_______________________________________________
Help-cfengine mailing list
[email protected]
http://cfengine.org/mailman/listinfo/help-cfengine