yum¶
This module is used to install or remove rpm packages, with the yum module we can add repos during the install operation.
If a single configuration has more than one yum section, then the sections have to be numbered like [yum-1], [yum-2], [yum-3] …
- action - This variable allows two values install and remove.
Install packages¶
If the action is install the following options are supported:
- packages - Comma separated list of packages that are to be installed.
- repos - The repositories that have to be added.
- gpgcheck - yes/no values have to be provided.
- update - yes/no; Whether yum update has to be initiated.
For example:
[yum]
action=install
gpgcheck=no
# Repos should be an url; eg: http://repo-pointing-glusterfs-builds
repos=<glusterfs.repo>,<vdsm.repo>
packages=vdsm,vdsm-gluster,ovirt-hosted-engine-setup,screen,gluster-nagios-addons,xauth
update=yes
Install a package on a particular host:
[yum:host1]
action=install
gpgcheck=no
packages=rhevm-appliance
Uninstall packages¶
If the action is remove then only one option has to be provided:
- remove - The comma separated list of packages to be removed.
Unstall a package on a particular host:
[yum:host1]
action=remove
packages=rhevm-appliance