openafs_build_redhat_rpms – This module is deprecated. Use openafs_build_packages.
Synopsis
This module is obsolete and will be removed in a future release. Use openafs_build_packages in new playbooks.
Parameters
- build (optional, str, all)
Specifies which rpms to build.
allbuild source and binary RPMs for userspace and kernel module
sourcebuild the source RPM only
userspacebuild the source RPM and the userspace RPMs
modulesbuild the source RPM and the kmod RPM- sdist (True, path, None)
The path on the remote node to the source distribution files directory on the remote node.
The sdist directory must contain the
openafs-<version>-src.tar.bz2source archive and theopenafs-<version>-doc.tar.bz2documentation archive.The sdist directory may also contain the
ChangeLogfile and theRELNOTES-<version>file.- spec (optional, str, None)
The path on the remote node to a custom
openafs.specfile to be used to build the rpm files. Theopenafs.specfile will be extracted from the source archive file when the spec option is not provided.- relnotes (optional, str, None)
The path on the remote node to a custom
RELNOTESfile to be included in the build.The
RELNOTES-<version>in the sdist directory will be used when the relnotes option is not specified. TheNEWSfile will be extracted from the source archive if theRELNOTES-<version>file is not found in the sdist directory.- changelog (optional, str, None)
The path on the remote node to a custom
ChangeLogfile to be included in the build.The
ChangeLogin the sdist directory will be used when thechangelogoption is not specified. An emptyChangeLogfile will be created if theChangeLogis not found in the sdist directory,- csdb (optional, path, None)
The path on the remote node to a custom
CellServDBfile to be incuded in the build.The
CellServDBfile in the sdist directory will be used when the csdb option is not specified. TheCellServDBfile will be extracted from the source archive if theCellServDBfile is not found in the sdist directory.- patchdir (optional, path, I(sdist))
The path on the remote node of the directory containing patch files to be applied.
Patch names are identified by the
PatchXXdirectives in the spec file.- kernvers (optional, str, current kernel version)
The kernel version to be used when building the kernel module. By default, the kernel version of the running kernel will be used.
- topdir (optional, path, C(~/rpmbuild))
The top level rpmbuild workspace directory on the remote node.
- logdir (optional, path, I(topdir)/C(BUILD))
The path to write build log files on the remote node.
- tar (optional, path, C(tar))
The
tarprogram used to unpack the source archive.- tar_extra_options (optional, str, None)
Extra command line options to unpack the source archive.
Examples
- name: "Checkout OpenAFS source code."
git:
repo: "git@openafs.org/openafs.git"
version: openafs-devel-1_9_1
dest: openafs
- name: "Build source distribution."
openafs_build_sdist:
topdir: openafs
sdist: openafs/packages
- name: "Build RPM files."
openafs_build_redhat_rpms:
build: all
sdist: openafs/packages
register: build_results
Return Values
- version (always, dict, )
OpenAFS and package versions extracted from the source archive.
- logfiles (always, list, )
The build log files written on the remote node.
- rpms (always, list, )
The list of rpm files created on the remote node.
Status
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by community.