Questo contenuto non è disponibile nella lingua selezionata.
Chapter 14. Extending Satellite Server Functionality
Red Hat Satellite Server can be extended by installing plugins. For example, you can extend hosts orchestration with the Foreman Hooks plug-in. For more information about Foreman Hooks, see the Using Foreman Hooks in Satellite Server article on the Red Hat Customer Portal. The plugins are available as RPM packages in the Red Hat repositories and the Foreman repositories.
Plugins for Satellite typically include the word foreman in the RPM package name and the plugins for Capsule include the word smart_proxy in the name.
The plugins provided by Red Hat can be searched and installed using the yum command from the Satellite CLI.
The upstream Satellite plugins are available in the Foreman repositories. Each release of Foreman has a separate repository containing plugins for that release. For more information about configuring the Foreman repository, see Section 14.3, “Configuring the Foreman Repository”.
Red Hat supports the Foreman API but not the plugins installed from the Foreman repository.
14.1. Searching for Plugins Copia collegamentoCollegamento copiato negli appunti!
Search available plugins using the Satellite CLI.
To search upstream plugins as well, configure the Foreman repository as described in Section 14.3, “Configuring the Foreman Repository”
Procedure
As root user, search for packages with "-foreman" in the package name using
yum search.Example - Searching rubygem plugin for Satellite:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
14.2. Installing Plugins Copia collegamentoCollegamento copiato negli appunti!
Install plugins using the Satellite CLI. Ensure you install plugins compatible with the version of Foreman on your system. You can view an RPM package description to confirm the identity of a plugin using the yum info or rpm -qi command.
To install upstream plugins, configure the Foreman repository as described in Section 14.3, “Configuring the Foreman Repository”.
Procedure
Install the required plugin using
yum install.Example: Installing the tfm-rubygem-foreman_templates plugin:
yum install tfm-rubygem-foreman_templates
# yum install tfm-rubygem-foreman_templatesCopy to Clipboard Copied! Toggle word wrap Toggle overflow Restart
satellite-maintainservice.satellite-maintain service restart
# satellite-maintain service restartCopy to Clipboard Copied! Toggle word wrap Toggle overflow
To verify the install, use yum to list installed plugins:
Example: Verifying rubygem-foreman plugin is installed:
yum list installed | grep rubygem-foreman | grep foreman
# yum list installed | grep rubygem-foreman | grep foremanCopy to Clipboard Copied! Toggle word wrap Toggle overflow You can also list Capsule plugins using
yum:yum list installed | grep proxy
# yum list installed | grep proxyCopy to Clipboard Copied! Toggle word wrap Toggle overflow
14.3. Configuring the Foreman Repository Copia collegamentoCollegamento copiato negli appunti!
Configure the Foreman repository using the Satellite CLI to install the upstream plugins. After you configure the repository, you can search and install the plugins using the yum command from Satellite CLI. The Foreman packages are not currently GPG signed.
For additional information on foreman plugins, see the Popular Plugins and List of Plugins sections on the Foreman website.
Procedure
Determine the Foreman release with
rpmcommand.rpm -q foreman
$ rpm -q foreman foreman-1.20.1.10-1.el7sat.noarchCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create an rpm configuration file.
touch /etc/yum.repos.d/foreman-plugins.repo
touch /etc/yum.repos.d/foreman-plugins.repoCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the following content to the file:
[foreman-plugins] name=Foreman plugins baseurl=http://yum.theforeman.org/plugins/1.20/el7/x86_64/ enabled=1 gpgcheck=0
[foreman-plugins] name=Foreman plugins baseurl=http://yum.theforeman.org/plugins/1.20/el7/x86_64/ enabled=1 gpgcheck=0Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace the version number in the URL to the required Foreman release number.