Changes between Version 31 and Version 32 of Doc/SCDB/Usage
- Timestamp:
- Jan 22, 2010, 3:05:53 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Doc/SCDB/Usage
v31 v32 172 172 === Checking Package Dependencies === 173 173 174 Profile compilation cannot check if all the dependencies for all packages present in the profile can be satisfied. By default, this is checked by SPMA on the client before trying to deploy de RPM changes. A tool can be used to check dependencies after compilation but before deployment. This is done by analyzing the profile and checking the metadata for each RPM present, using YUM as a source for the dependency metadata . The tool is `utils/checkdeps/checkdeps`. Its usage and requirements are described in a [https://sourceforge.net/apps/mediawiki/quattor/index.php?title=Client_dependencies_check dedicated page].174 Profile compilation cannot check if all the dependencies for all packages present in the profile can be satisfied. By default, this is checked by SPMA on the client before trying to deploy de RPM changes. A tool can be used to check dependencies after compilation but before deployment. This is done by analyzing the profile and checking the metadata for each RPM present, using YUM as a source for the dependency metadata (this requires each RPM repository to be configured as a YUM repository). The tool is `utils/checkdeps/checkdeps`. Its usage and requirements are described in a [https://sourceforge.net/apps/mediawiki/quattor/index.php?title=Client_dependencies_check dedicated page]. 175 175 176 176 One nice feature of `checkdeps` is that it can report missing packages are Pan lines to add to the configuration. This is done with option -p. A typical calling sequence for `checkdeps` is: … … 178 178 util/checkdeps/checkdeps [-p] -x build/xml/mynode.xml 179 179 }}} 180 181 `checkdeps` has a requirement of a recent enough version of YUM. '''This is not possible to run it on a SL4 machine'''. In addition it has a few dependencies that are not installed by default. If you want to be able to run on a Quattor-managed machine, you can add the following to the machine template: 182 {{{ 183 include { 'config/quattor/scdb' }; 184 }}} 185 186 If the machine (must be a Linux one as one requirement is YUM) is not manged by Quattor, read the template for your OS version to know what you need to install. 187 188 To configure the RPM repositories as YUM repositories, if the RPM server is managed by Quattor, you can include the following to the machine profile: 189 {{{ 190 # Mandatory: list of directory whose subdirectories may contain RPM. No default. 191 # Example: list('/www/htdocs/packages'). 192 variable QUATTOR_RPM_REPOS_ROOTS ?= list(); 193 # Optional: path of script to use for creating/updating YUM repositories. 194 # variable QUATTOR_YUM_UPDATE_REPOS ?= '/root/quattor/scripts/update_yum_repos'; 195 # Optional: cron frequency (in hours). Default is 2. 196 # variable QUATTOR_YUM_UPDATE_REPOS_INTERVAL ?= 2; 197 include { 'quattor/server/yum_repos' }; 198 }}} 199 200 The template `quattor/server/yum_repos` will configure a cron, running every 2 hours by default, to update the YUM repositories. The cron will use a script provided with SCDB, [source:SCDB/trunk/src/misc/update_yum_repos src/misc/update_yum_repos], that you need to copy on the machine running the cron (generally the Quattor server). 180 201 181 202 === Using panc logging ===