Package needs to be set up correctly. It takes a combination of
Version [Major. Minor, release] Package Base and Build stamp to work.
Extract Command: Checks to see if the rpm is installed by querying rpm
using Package Base.
If it is not installed it installs the package.
If it is installed it will check to see if the pacakage base * verison
is greater, lesser or equal to the installed package.
If it is lesser or greater it will remove the old package the install
the new package.
If it is equal it lets you know that the package is already installed.
Get Command: Does a yum list to package base to see if a Yum Package
by that name is available. If it cannot find one on the first try it
will clean the yum repo on the machine and try again to see if there
is a package available.
assetPackageIsInstalled: Queries the Rpm db wioth the package base
name to see if it was installed.
assertPackageIsVerofoed: Overridden for empty installation and
Installed Verifies Package
remove: Removes the Yum Package
version: Queries the rpm DB for version info of Package.
I also have added a Yum Builder:
Yum Builder is a SubType of Builder.
I updates a yum repo as well as updating ControlTier that a YumRpm
Package is available
Build: Now has createRepo command in it.
repoImport: Does not import any file into ControlTier. It does
register the package though. The RPM must be in the target Dir.
runBuildScript: I change the original Ant Implementation to a exec
script call that passes in file base version major minor release and
build stamp. I am working on a rpmbuild script that can build any tgz
file dropped into a rpm directory setup so that ControlTier actually
builds rpms that Yum can use. I have a spec already setup but I am
not quite ready to release it. Eventually this will go with with this
so that uses can build regular RPMS from this builder.
createRepo. Scps files from targetDir to repo, update repo.
runCreateRepo. Allows Builder to call multiple repos to update
runImportBuilders: Allows Builder to import multiple packages that
have been built.
Please test these out and ask any qiestions.