summaryrefslogtreecommitdiffstats
path: root/doc/client/tools
diff options
context:
space:
mode:
Diffstat (limited to 'doc/client/tools')
-rw-r--r--doc/client/tools/index.txt55
-rw-r--r--doc/client/tools/yumng.txt301
2 files changed, 262 insertions, 94 deletions
diff --git a/doc/client/tools/index.txt b/doc/client/tools/index.txt
index d845235f4..9d560ff6e 100644
--- a/doc/client/tools/index.txt
+++ b/doc/client/tools/index.txt
@@ -5,25 +5,40 @@
Client Tool Drivers
===================
-Client tool drivers allow bcfg2 to execute configuration operations by interfacing with platform and distribution specific tools.
+Client tool drivers allow bcfg2 to execute configuration operations by
+interfacing with platform and distribution specific tools.
-Tool drivers handle any reconfiguration or verification operation. So far we have tools that primarily deal with packaging systems and service management. The POSIX tool also handles file system and permissions/groups operations.
+Tool drivers handle any reconfiguration or verification operation. So
+far we have tools that primarily deal with packaging systems and service
+management. The POSIX tool also handles file system and permissions/groups
+operations.
-To write your own tool driver, to handle a new packaging format, or new service architecture see WritingClientToolDrivers.
+To write your own tool driver, to handle a new packaging format, or new
+service architecture see WritingClientToolDrivers.
-When the bcfg2 client is run, it attempts to instantiate each of these drivers. The succeeding list of drivers are printed as a debug message after this process has completed. Drivers can supercede one another, for example, the Yum driver conflicts (and unloads) the RPM driver. This behavior can be overridden by running the bcfg2 client with the -D flag. This flag takes a colon delimited list of drivers to use on the system.
+When the bcfg2 client is run, it attempts to instantiate each of these
+drivers. The succeeding list of drivers are printed as a debug message
+after this process has completed. Drivers can supercede one another,
+for example, the Yum driver conflicts (and unloads) the RPM driver. This
+behavior can be overridden by running the bcfg2 client with the -D
+flag. This flag takes a colon delimited list of drivers to use on
+the system.
Currently these are the tool drivers that are distributed with bcfg2:
Action
------
-Pre and post-install tests and actions. This driver executes commands and supplies status information to the bcfg2 server via the statistics mechanism. It can also be used to prevent bundle installation when pre-conditions are not met. See the UsingActions page for more details.
+Pre and post-install tests and actions. This driver executes commands
+and supplies status information to the bcfg2 server via the statistics
+mechanism. It can also be used to prevent bundle installation when
+pre-conditions are not met. See the UsingActions page for more details.
APT
---
-Debian Packages. This tool driver is used to handle packages on dpkg based systems and employs the "apt" executable.
+Debian Packages. This tool driver is used to handle packages on dpkg
+based systems and employs the "apt" executable.
Blast
-----
@@ -35,7 +50,11 @@ Chkconfig
Tool to manage services (primarily on Redhat based distros).
-.. note:: Start and stop are standard arguments, but the one for reload isn't consistent across services. You can specify which argument to use with the `reload` property in Service tags. Example: `<Service name="ftp" reload="condrestart" status="on" type="chkconfig">`
+.. note:: Start and stop are standard arguments, but the one for reload
+ isn't consistent across services. You can specify which argument
+ to use with the `reload` property in Service tags. Example:
+ `<Service name="ftp" reload="condrestart" status="on"
+ type="chkconfig">`
DebInit
-------
@@ -55,12 +74,17 @@ FreeBSD Service Support. Only bundle updates will work.
FreeBSDPackage
--------------
-FreeBSD Packages. Verifies packages and their version numbers but can't install packages.
+FreeBSD Packages. Verifies packages and their version numbers but can't
+install packages.
launchd
-------
-Mac OS X Services. To use this tool, you must maintain a standard launch daemon .plist file in `/Library/LaunchDaemons/` (example ssh.plist) and setup a `<Service name="com.openssh.sshd" type="launchd" status="on" />` entry in your config to load or unload the service. Note the name is the ''Label'' specified inside of the .plist file
+Mac OS X Services. To use this tool, you must maintain a standard launch
+daemon .plist file in ``/Library/LaunchDaemons/`` (example ssh.plist) and
+setup a `<Service name="com.openssh.sshd" type="launchd" status="on" />`
+entry in your config to load or unload the service. Note the name is the
+''Label'' specified inside of the .plist file
Portage
-------
@@ -70,12 +94,14 @@ Support for Gentoo Packages.
POSIX
-----
-Files and Permissions are handled by the POSIX driver. Usage well documented other places.
+Files and Permissions are handled by the POSIX driver. Usage well
+documented other places.
RcUpdate
--------
-Uses the rc-update executable to manage services on distributions such as Gentoo.
+Uses the rc-update executable to manage services on distributions such
+as Gentoo.
RPM
---
@@ -86,7 +112,9 @@ Executes rpm to manage packages most often on redhat based systems.
RPMng
-----
-Next-generation RPM tool, will be default in upcoming release. Handles RPM sublties like epoch and prelinking and 64-bit platforms better than RPM client tool. [wiki:ClientTools/RPMng RPMng/YUMng Documentation.]
+Next-generation RPM tool, will be default in upcoming release. Handles
+RPM sublties like epoch and prelinking and 64-bit platforms better than
+RPM client tool. :ref:`client-tools-yumng`
SMF
---
@@ -113,4 +141,5 @@ Handles RPMs using the YUM package manager.
YUMng
-----
-Handles RPMs using the YUM package manager. Handles sublties better than the Yum client tool. [wiki:ClientTools/RPMng RPMng/YUMng Documentation.]
+Handles RPMs using the YUM package manager. Handles sublties better than
+the Yum client tool. :ref:`client-tools-yumng`
diff --git a/doc/client/tools/yumng.txt b/doc/client/tools/yumng.txt
index 178bba6ec..8e7ffa1eb 100644
--- a/doc/client/tools/yumng.txt
+++ b/doc/client/tools/yumng.txt
@@ -9,9 +9,12 @@ BCFG2 RPMng/YUMng Client Drivers
Introduction
============
-The goal of this driver is to resolve the issues that exist with the RPM and Yum client tool drivers.
+The goal of this driver is to resolve the issues that exist with the
+RPM and Yum client tool drivers.
-For the most part, the issues are due to RPM being able to have multiple packages of the same name installed. This is an issue on all Red Hat and SUSE based distributions.
+For the most part, the issues are due to RPM being able to have multiple
+packages of the same name installed. This is an issue on all Red Hat
+and SUSE based distributions.
Examples of this are:
@@ -28,10 +31,13 @@ the RPMng driver. Alternatively, you can use the newer :ref:`Packages
Development Status
==================
-Initial development of the drivers was done on Centos 4.4 x86_64, with testing on openSUSE 10.2 x86_64. Centos has been tested with a new style Pkgmgr file and openSUSE with an old style file (see the Configuration section below for what this means). Testing has now moved to Centos 5 x86_64 adn old style files are no longer (as of 0.9.5) being tested.
-
-RPMng/YUMng are the default RPM drivers from bcfg2 0.9.5 and later.
+Initial development of the drivers was done on Centos 4.4 x86_64, with
+testing on openSUSE 10.2 x86_64. Centos has been tested with a new style
+Pkgmgr file and openSUSE with an old style file (see the Configuration
+section below for what this means). Testing has now moved to Centos 5
+x86_64 and old style files are no longer being tested.
+RPMng/YUMng are the default RPM drivers.
Features
========
@@ -60,19 +66,30 @@ The rpmtools module conatins most of the rpm-python code and is imported by RPMn
RPMng.RefreshPackages()
-----------------------
-The RPMng.RefreshPackages method generates the installed dict using rpm-python code from the rpmtools module. Full name, epoch, version, release and arch information is stored.
+The RPMng.RefreshPackages method generates the installed dict using
+rpm-python code from the rpmtools module. Full name, epoch, version,
+release and arch information is stored.
RPMng.VerifyPackages()
----------------------
-The RPMng.VerifyPackages method generates a number of structures that record the state of the of the system compared to the bcfg2 literal configuration retrieved from the server. These structures are mainly used by the RPMng.Install method.
+The RPMng.VerifyPackages method generates a number of structures that
+record the state of the of the system compared to the bcfg2 literal
+configuration retrieved from the server. These structures are mainly
+used by the RPMng.Install method.
-AS part of the verification process an rpm package level verification is carried out using rpm-python code from the rpmtools module. Full details of the failures are returned in a complicated dict/list structure for later use.
+AS part of the verification process an rpm package level verification is
+carried out using rpm-python code from the rpmtools module. Full details
+of the failures are returned in a complicated dict/list structure for
+later use.
RPMng.Install()
---------------
-The RPMng.Install method attempts to fix what the RPMng.VerifyPackages method found wrong. It does this by installing, reinstalling, deleting and upgrading RPMs. RPMng.Install does not use rpm-python. It does use the following rppm commands as appropriate::
+The RPMng.Install method attempts to fix what the RPMng.VerifyPackages
+method found wrong. It does this by installing, reinstalling, deleting
+and upgrading RPMs. RPMng.Install does not use rpm-python. It does use
+the following rppm commands as appropriate::
rpm -install
@@ -80,12 +97,19 @@ The RPMng.Install method attempts to fix what the RPMng.VerifyPackages method f
rpm -upgrade
-A method (RPMng.to reinstall_check()) to decide whether to do a reinstall of a package instance or not has been added, but is very simple at this stage. Currently it will prevent a reinstall if the only reason for a verification failure was due to an RPM configuration (%config) file. A package reinstall will not replace these, so there is no point reinstalling.
+A method (RPMng.to reinstall_check()) to decide whether to do a reinstall
+of a package instance or not has been added, but is very simple at
+this stage. Currently it will prevent a reinstall if the only reason
+for a verification failure was due to an RPM configuration (%config)
+file. A package reinstall will not replace these, so there is no point
+reinstalling.
RPMng.Remove()
--------------
-The RPMng.Remove method is written using rpm-python code in the rpmtools module. Full nevra information is used in the selection of the package removal.
+The RPMng.Remove method is written using rpm-python code in the rpmtools
+module. Full nevra information is used in the selection of the package
+removal.
Installation
============
@@ -93,7 +117,11 @@ Installation
isprelink
---------
-This is a Python C extension module that checks to see if a file has been prelinked or not. It should be built and installed on systems that have the prelink package installed (only Red Hat family systems as far as I can tell). rpmtools will function without the isprelink module, but performance is not good.
+This is a Python C extension module that checks to see if a file has
+been prelinked or not. It should be built and installed on systems that
+have the prelink package installed (only Red Hat family systems as far
+as I can tell). rpmtools will function without the isprelink module,
+but performance is not good.
Source can be found here ftp://ftp.mcs.anl.gov/pub/bcfg/isprelink-0.1.2.tar.gz
@@ -101,7 +129,8 @@ To compile and install prelink, execute::
python setup.py install
-in the rpmtools directory. The elfutils-libelf-devel package is required for the compilation.
+in the rpmtools directory. The elfutils-libelf-devel package is required
+for the compilation.
There are Centos x86_64 RPMs here ftp://ftp.mcs.anl.gov/pub/bcfg/redhat/
@@ -111,13 +140,15 @@ Configuration and Usage
Loading of RPMng
----------------
-The RPMng driver can be loaded by command line options, client configuration file options or as the default driver for RPM packages.
+The RPMng driver can be loaded by command line options, client
+configuration file options or as the default driver for RPM packages.
From the command line::
bcfg2 -n -v -d -D Action,POSIX,Chkconfig,RPMng
-This produces quite a bit of output so you may want to redirect the output to a file for review.
+This produces quite a bit of output so you may want to redirect the
+output to a file for review.
In the bcfg2.conf file::
@@ -130,7 +161,9 @@ In the bcfg2.conf file::
Configuration File Options
--------------------------
-A number of paramters can be set in the client configuration for both the RPMng and YUMng drivers. Each driver has its own section. A full client configuration file with all the options specified is below::
+A number of paramters can be set in the client configuration for both
+the RPMng and YUMng drivers. Each driver has its own section. A full
+client configuration file with all the options specified is below::
[communication]
protocol = xmlrpc/ssl
@@ -166,13 +199,24 @@ A number of paramters can be set in the client configuration for both the RPMng
installOnlyPkgs
^^^^^^^^^^^^^^^
-Install only packages are packages that should only ever be installed or deleted, not upgraded.
+Install only packages are packages that should only ever be installed
+or deleted, not upgraded.
-The only packages for which this is an absolute on, are the gpg-pubkey packages. It is however 'best' practice to only ever install/delete kernel packages. The wisdom being that the package for the currently running kernel should always be installed. Doing an upgrade would delete the running kernel package.
+The only packages for which this is an absolute on, are the gpg-pubkey
+packages. It is however 'best' practice to only ever install/delete
+kernel packages. The wisdom being that the package for the currently
+running kernel should always be installed. Doing an upgrade would delete
+the running kernel package.
-The RPMng driver follows the YUM practice of having a list of install only packages. A default list is hard coded in RPMng.py. This maybe over ridden in the client configuration file.
+The RPMng driver follows the YUM practice of having a list of install
+only packages. A default list is hard coded in RPMng.py. This maybe over
+ridden in the client configuration file.
-Note that except for gpg-pubkey packages (which are always added to the list by the driver) the list in the client configuration file completely replaces the default list. An empty list means that there are no install only packages (except for gpg-pubkey), which is the behaviour of the old RPM driver.
+Note that except for gpg-pubkey packages (which are always added to the
+list by the driver) the list in the client configuration file completely
+replaces the default list. An empty list means that there are no install
+only packages (except for gpg-pubkey), which is the behaviour of the
+old RPM driver.
Example - an empty list::
@@ -187,14 +231,18 @@ Example - The default list::
erase_flags
^^^^^^^^^^^
-erase_flags are rpm options used by 'rpm -erase' in the client Remove() method. The RPMng erase is written using rpm-python and does not use the rpm command.
+erase_flags are rpm options used by 'rpm -erase' in the client Remove()
+method. The RPMng erase is written using rpm-python and does not use
+the rpm command.
-The erase flags are specified in the client configuration file as a comma separated list and apply to all RPM erase operations. The default is::
+The erase flags are specified in the client configuration file as a comma
+separated list and apply to all RPM erase operations. The default is::
[RPMng]
erase_flags = allmatches
-The following rpm erase options are supported, see the rpm man page for details.::
+The following rpm erase options are supported, see the rpm man page
+for details.::
noscripts
notriggers
@@ -209,9 +257,9 @@ pkg_checks
The RPMng/YUMng drivers do the following three checks/status:
-# Installed
-# Version
-# rpm verify
+#. Installed
+#. Version
+#. rpm verify
Setting pkg_checks = true (the default) in the client configuration file means that all three checks will be done for all packages.
Setting pkg_checks = false in the client configuration file means that only the Installed check will be done for all packages.
@@ -227,9 +275,9 @@ pkg_verify
The RPMng/YUMng drivers do the following three checks/status:
-# Installed
-# Version
-# rpm verify
+#. Installed
+#. Version
+#. rpm verify
Setting pkg_verify = true (the default) in the client configuration file means that all three checks will be done for all packages as long as pkg_checks = true.
Setting pkg_verify = false in the client configuration file means that the rpm verify wil not be done for all packages on the client.
@@ -282,7 +330,9 @@ The RPMng/YUMng drivers do the following three checks/status:
#. Version
#. rpm verify
-verify_fail_action controls whether or not a package instance will be reinstlled if the version check fails (i.e. if the installed package instance isn't the same version as specified in the configuration).
+verify_fail_action controls whether or not a package instance will be
+reinstlled if the version check fails (i.e. if the installed package
+instance isn't the same version as specified in the configuration).
If verify_fail_action = reinstall then the package instance is reinstalled.
If verify_fail_action = none then the package instance is not reinstalled.
@@ -296,7 +346,10 @@ If verify_fail_action = none then the package instance is not reinstalled.
Interactive Mode
----------------
-Running the client in interactive mode (-I) prompts for the actions to be taken as before. Prompts are per package and may apply to multiple instances of that package. Each per package prompt will contain a list of actions per instance.
+Running the client in interactive mode (-I) prompts for the actions to
+be taken as before. Prompts are per package and may apply to multiple
+instances of that package. Each per package prompt will contain a list
+of actions per instance.
Actions are encoded as
@@ -309,7 +362,6 @@ R - Reinstall
U - Upgrade/Downgrade
-
An example is below. The example is from a system that is still using the old Pkgmgr format, so the epoch and arch appear as '*'.::
Install/Upgrade/delete Package aaa_base instance(s) - R(*:10.2-38.*) (y/N)
@@ -326,21 +378,41 @@ An example is below. The example is from a system that is still using the old P
GPG Keys
--------
-GPG is used by RPM to 'sign' packages. All vendor packages are signed with the vendors GPG key. Additional signatures maybe added to the rpm file at the users discretion.
+GPG is used by RPM to 'sign' packages. All vendor packages are signed
+with the vendors GPG key. Additional signatures maybe added to the rpm
+file at the users discretion.
-It is normal to have multiple GPG keys installed. For example, SLES10 out of the box has six GPG keys installed.
+It is normal to have multiple GPG keys installed. For example, SLES10
+out of the box has six GPG keys installed.
-To the RPM database all GPG 'packages' have the name 'gpg-pubkey', which may be nothing like the name of the file specified in the rpm -import command. For example on Centos 4 the file name is RPM-GPG-KEY-centos4. For SLES10 this means that there are six packages with the name 'gpg-pubkey' installed.
+To the RPM database all GPG 'packages' have the name 'gpg-pubkey', which
+may be nothing like the name of the file specified in the rpm -import
+command. For example on Centos 4 the file name is RPM-GPG-KEY-centos4.
+For SLES10 this means that there are six packages with the name
+'gpg-pubkey' installed.
RPM does not check GPG keys at package installation, YUM does.
-RPMng uses the rpm command for installation and does not therefore check GPG signatures at package install time. RPMng uses rpm-python for verification and does by default do signature checks as part of the client Inventory process. To do the signature check the appropriate GPG keys must be installed. rpm-python is not very friendly if the required key(s) is not installed (it crashes the client).
+RPMng uses the rpm command for installation and does not therefore
+check GPG signatures at package install time. RPMng uses rpm-python
+for verification and does by default do signature checks as part of the
+client Inventory process. To do the signature check the appropriate GPG
+keys must be installed. rpm-python is not very friendly if the required
+key(s) is not installed (it crashes the client).
-The RPMng driver detects, on a per package instance basis, if the appropriate key is installed. If it is not, a warning message is printed and the signature check is disabled for that package instance, for that client run only.
+The RPMng driver detects, on a per package instance basis, if the
+appropriate key is installed. If it is not, a warning message is printed
+and the signature check is disabled for that package instance, for that
+client run only.
-GPG keys can be installed and removed by the RPMng driver. To install a GPG key configure it in Pkgmgr/Rules as a package and add gpg-pubkey to the clients abstract configuration. The gpg-pubkey package/instance is treated as an install only package. gpg-pubkey packages are installed by the RPMng driver with the rpm -import command.
+GPG keys can be installed and removed by the RPMng driver. To install a
+GPG key configure it in Pkgmgr/Rules as a package and add gpg-pubkey to
+the clients abstract configuration. The gpg-pubkey package/instance is
+treated as an install only package. gpg-pubkey packages are installed
+by the RPMng driver with the rpm -import command.
-gpg-pubkey packages will be removed by bcfg2 -r packages if they are not in the clients configuration.
+gpg-pubkey packages will be removed by bcfg2 -r packages if they are
+not in the clients configuration.
.. code-block:: xml
@@ -360,51 +432,94 @@ Example gpg-pubkey Pkgmgr configuration file.
Pkgmgr Configuration
--------------------
-Also see the general :ref:`Pkgmgr <server-plugins-generators-pkgmgr>` and [wiki:altsrc altsrc] pages.
+Also see the general :ref:`Pkgmgr <server-plugins-generators-pkgmgr>`
+and :ref:`unsorted-altsrc` pages.
Package Tag (Old style)
^^^^^^^^^^^^^^^^^^^^^^^
-Old style (meaning no Instance tag) Pkgmgr files have limited support. Specifically the multiarch and verify attributes are ignored.
+Old style (meaning no Instance tag) Pkgmgr files have limited support.
+Specifically the multiarch and verify attributes are ignored.
If multiarch type support is needed a new style format file must be used.
-If some control over the verification is needed, replace the verify attribute with the pkg_checks or verify_flags attributes. The pkg_checks and verify_flags attributes are detailed under the Instance tag heading.
+If some control over the verification is needed, replace the verify
+attribute with the pkg_checks or verify_flags attributes. The pkg_checks
+and verify_flags attributes are detailed under the Instance tag heading.
Package Tag (New Style) and Attributes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-The new style package tag supports the name and pkg_checks attributes and requires the use of Instance tag entries.
+The new style package tag supports the name and pkg_checks attributes
+and requires the use of Instance tag entries.
-New style configuration files must be generated from the RPM headers. Either from RPM files or from the RPM DB.
+New style configuration files must be generated from the RPM headers.
+Either from RPM files or from the RPM DB.
-The included pkgmgr_gen.py can be used as a starting point for generating configuration files from directories of RPM package files. pkgmgr_gen.py --help for the options.
+The included pkgmgr_gen.py can be used as a starting point for generating
+configuration files from directories of RPM package files. pkgmgr_gen.py
+--help for the options.
-The included pkgmgr_update.py can be used to update the package instance versions in configuration files from directories of package files. pkgmgr_update.py --help for the options.
+The included pkgmgr_update.py can be used to update the package instance
+versions in configuration files from directories of package files.
+pkgmgr_update.py --help for the options.
-|| '' '''Attribute''' '' || '' '''Description''' '' || '' '''Values''' '' ||
-|| name || Package name. || String ||
-|| pkg_checks || Do the version and rpm verify checks. || true(default) or false ||
++------------+---------------------------------------+------------------------+
+| Attribute | Description | Values |
++============+=======================================+========================+
+| name | Package name. | String |
++------------+---------------------------------------+------------------------+
+| pkg_checks | Do the version and rpm verify checks. | true(default) or false |
++------------+---------------------------------------+------------------------+
Instance Tag and Attributes
^^^^^^^^^^^^^^^^^^^^^^^^^^^
The instance tag supports the following attributes:
-|| '' '''Attribute''' '' || '' '''Description''' '' || '' '''Values''' '' ||
-|| simplefile || Package file name. || String (see Notes below) ||
-|| epoch || Package epoch. || String (numeric only) (optional) ||
-|| version || Package version. || String ||
-|| release || Package release. || String ||
-|| arch || Package architecture. || Architecture String e.g. (i386|i586|i686|x86_64) ||
-|| verify_flags || Comma separated list of rpm --verify options. See the rpm man page for their details. || nodeps, nodigest, nofiles, noscripts, nosignature, nolinkto, nomd5, nosize, nouser, nogroup, nomtime, nomode, nordev ||
-|| pkg_verify || Do the rpm verify || true(default) or false||
-|| install_action || Install package instance if it is not installed. || install(default) or none ||
-|| version_fail_action || Upgrade package if the incorrect version is installed. || upgrade(default) or none ||
-|| verify_fail_action || Reinstall the package instance if the rpm verify failed. || reinstall(default) or none ||
++---------------------+----------------------------+--------------------------+
+| Attribute | Description | Values |
++=====================+============================+==========================+
+| simplefile | Package file name. | String (see Notes below) |
++---------------------+----------------------------+--------------------------+
+| epoch | Package epoch. | String (numeric only) |
+| | | (optional) |
++---------------------+----------------------------+--------------------------+
+| version | Package version. | String |
++---------------------+----------------------------+--------------------------+
+| release | Package release. | String |
++---------------------+----------------------------+--------------------------+
+| arch | Package architecture. | Architecture String e.g. |
+| | | (i386|i586|i686|x86_64) |
++---------------------+----------------------------+--------------------------+
+| verify_flags | Comma separated list of | nodeps, nodigest, |
+| | rpm --verify options. See | nofiles, noscripts, |
+| | the rpm man page for their | nosignature, nolinkto, |
+| | details. | nomd5, nosize, nouser, |
+| | | nogroup, nomtime, |
+| | | nomode, nordev |
++---------------------+----------------------------+--------------------------+
+| pkg_verify | Do the rpm verify | true(default) or false |
++---------------------+----------------------------+--------------------------+
+| install_action | Install package instance | install(default) or none |
+| | if it is not installed. | |
++---------------------+----------------------------+--------------------------+
+| version_fail_action | Upgrade package if the | upgrade(default) or none |
+| | incorrect version is | |
+| | installed. | |
++---------------------+----------------------------+--------------------------+
+| verify_fail_action | Reinstall the package | reinstall(default) or |
+| | instance if the rpm verify | none |
+| | failed | |
++---------------------+----------------------------+--------------------------+
.. note::
- The simplefile attribute doesn't need to be just the filename, meaning the basename. It is joined with the uri attribute from the PackageList Tag to form the URL that the client will use to download the package. So the uri could just be the host portion of the url and simple file could be the directory path.
+
+ The simplefile attribute doesn't need to be just the filename,
+ meaning the basename. It is joined with the uri attribute from the
+ PackageList Tag to form the URL that the client will use to download
+ the package. So the uri could just be the host portion of the url
+ and simple file could be the directory path.
e.g.
@@ -421,29 +536,41 @@ The instance tag supports the following attributes:
</Group>
</PackageList>
-The values for epoch, version, release and arch attributes must come from the RPM header, not the RPM file name.
+The values for epoch, version, release and arch attributes must come
+from the RPM header, not the RPM file name.
Epoch is a strange thing. In short::
epoch not set == epoch=None < epoch='0' < epoch='1'
-and it is an int, but elementtree attributes have to be str or unicode, so the driver is constantly converting.
+and it is an int, but elementtree attributes have to be str or unicode,
+so the driver is constantly converting.
Ignore Tag
^^^^^^^^^^
-The Ignore tag is used to "mask out" individual files from the RPM verification. This is done by comparing the verification failure results with the Ignore tag name. If there is a match, that entry is not used by the client to determine if a package has failed verification.
+The Ignore tag is used to "mask out" individual files from the RPM
+verification. This is done by comparing the verification failure results
+with the Ignore tag name. If there is a match, that entry is not used
+by the client to determine if a package has failed verification.
-Ignore tag entries can be specified at both the Package level, in which case they apply to all Instances, and/or at the Instance level, in which case they only apply to that instance.
+Ignore tag entries can be specified at both the Package level, in which
+case they apply to all Instances, and/or at the Instance level, in which
+case they only apply to that instance.
-Ignore tag entries only work with the RPMng driver. They do not appear to be supported in YUMng as of 1.0pre5.
+Ignore tag entries only work with the RPMng driver. They do not appear
+to be supported in YUMng as of 1.0pre5.
-Ignore tag entries can be specified in both old and new style Pkgmgr files.
+Ignore tag entries can be specified in both old and new style Pkgmgr
+files.
The Ignore Tag supports the following attributes:
-|| '' '''Attribute''' '' || '' '''Description''' '' || '' '''Values''' '' ||
-|| name || File name. || String ||
++-----------+-------------+--------+
+| Attribute | Description | Values |
++===========+=============+========+
+| name | File name. | String |
++-----------+-------------+--------+
Example
@@ -457,17 +584,20 @@ Example
Automated Generation of Pkgmgr Configuration Files
--------------------------------------------------
-The two utilities detailed below are provided in the tools directory of the source tarball.
+The two utilities detailed below are provided in the tools directory of
+the source tarball.
-Also see the general :ref:`Pkgmgr <server-plugins-generators-pkgmgr>` and [wiki:altsrc altsrc] pages.
+Also see the general :ref:`Pkgmgr <server-plugins-generators-pkgmgr>`
+and :ref:`unsorted-altsrc` pages.
pkgmgr_gen.py
^^^^^^^^^^^^^
-pkgmgr_gen will generate a Pkgrmgr file from a list of directories containing RPMs or from a list of YUM repositories.::
-
- [root@bcfg2 Pkgmgr]# pkgmgr_gen.py --help
- usage: pkgmgr_gen.py [options]
+pkgmgr_gen will generate a Pkgmgr file from a list of directories
+containing RPMs or from a list of YUM repositories.::
+
+ [root@bcfg2 Pkgmgr]# pkgmgr_gen.py --help usage: pkgmgr_gen.py
+ [options]
options:
-h, --help show this help message and exit
@@ -517,7 +647,10 @@ pkgmgr_gen will generate a Pkgrmgr file from a list of directories containing RP
pkgmgr_update.py
----------------
-pkgmgr_update will update the release (meaning the epoch, version and release) information in an existing Pkgrmgr file from a list of directories containing RPMs or from a list of YUM repositories. All Tags and other attributes in the existing file will remain unchanged.::
+pkgmgr_update will update the release (meaning the epoch, version
+and release) information in an existing Pkgrmgr file from a list of
+directories containing RPMs or from a list of YUM repositories. All Tags
+and other attributes in the existing file will remain unchanged.::
[root@bcfg2 Pkgmgr]# pkgmgr_update.py --help
usage: pkgmgr_update.py [options]
@@ -542,7 +675,8 @@ Pkgmgr Configuration Examples
verify_flags
^^^^^^^^^^^^
-This entry was used for the Centos test client used during RPMng development.
+This entry was used for the Centos test client used during RPMng
+development.
.. code-block:: xml
@@ -577,7 +711,8 @@ Per Instance Ignore
.. note:: In this case a per instance ignore is actually a bad idea as the verify failure is because of multiarch issues where the last package installed wins. So this would be better as a Package level ignore.
-Ignore tag entries only work with the RPMng driver. They do not appear to be supported in YUMng as of 1.0pre5.
+Ignore tag entries only work with the RPMng driver. They do not appear
+to be supported in YUMng as of 1.0pre5.
.. code-block:: xml
@@ -591,7 +726,8 @@ Ignore tag entries only work with the RPMng driver. They do not appear to be su
pkg_checks
^^^^^^^^^^
-If pkg_checks = false the version information is not required. If pkg_checks = true the full information is needed as normal.
+If pkg_checks = false the version information is not required. If
+pkg_checks = true the full information is needed as normal.
For YUMng a minimal entry is
@@ -599,7 +735,9 @@ For YUMng a minimal entry is
<Package name="bcfg2" type="yum" pkg_checks="False"/>
-Infact for YUMng, with pkg_checks = false, any combination of the nevra attributes that will build a valid yum package name (see the Misc heading on the yum man page) is valid.
+In fact for YUMng, with pkg_checks = false, any combination of the nevra
+attributes that will build a valid yum package name (see the Misc heading
+on the yum man page) is valid.
.. code-block:: xml
@@ -614,7 +752,8 @@ For RPMng a minimal entry is
verify_fail_action
^^^^^^^^^^^^^^^^^^
-The way I have bcfg2 configured for my development systems. This way it reports bad, but doesn't do anything about it.
+The way I have bcfg2 configured for my development systems. This way
+it reports bad, but doesn't do anything about it.
.. code-block:: xml