ControlTier > elements
 

YumRpm

Yum Package Type

Overview

YumRpm: Yum Package Type

This package type maps the extract command to Yum's install/update commands. Basically, creating an instance of the type that sets the package-filename attribute to the RPM package name you want (e.g. "graphviz") will result in the extract command executing either Yum the install ("yum install graphviz") or update command ("yum update graphviz") depending on whether or not the package is already installed. Note that the get and finish commands are over-ridden to eliminate interactions with the ControlTier DAV repository since the package itself is in Yum's repository.

Design

Super Type
rpm
Role Concrete. (Objects can be created.)
Instance Names Unique
Notification false
Template Directory
Data View Children, proximity: 1
Logger Name YumRpm

Constraints

Allowed Child Dependencies

  • PackageCommandExecutable
  • PackageCommandScript
  • PackageSetting
  • RpmAutoreq1
  • RpmCategory1
  • RpmCopyright1
  • RpmDbPath1
  • RpmDefaultGroup1
  • RpmDefaultUser1
  • RpmDistribution1
  • RpmLicense1
  • RpmPackager1
  • RpmProvides1
  • RpmRequires1
  • RpmUrl1
  • RpmUseSudo1
  • RpmVendor1
  • YumUseSudo1

1: These types have a Singleton constraint. Only one instance may be added as a resource.

Attributes

Defaults for Imported Attributes

Name Default
package-delete false
package-extract-script ${modules.dir}/YumRpm/bin/extract.xml
package-get-script
package-isinstalled-script ${modules.dir}/Package/bin/is-installed.xml

Commands

View the available commands in the User Reference.