BSA can install the required software dependencies for a LAMP stack using a patch catalog and a Patching Job. (A LAMP stack refers to a collection of software applications, typically Linux, Apache, MySQL, and PHP.) This topic describes how to provision a LAMP stack using patch catalogs.
It includes the following sections:
In addition to patching servers, on Linux, Patching Jobs can be used to install new RPMs and any required dependencies. When you create the Patching Job, BSA can determine the prerequisite or required RPMs to install along with the patch. This walkthrough describes how to create a Patching Job in "Install Mode" to deliver the LAMP stack and all required dependencies, regardless of what is installed on the target system.
What do I need to do before I get started?
This example assumes that you have performed all of the configuration steps outlined in the following table:
For more information
|Created a Red Hat, Oracle Enterprise or SuSE Linux patch catalog|
|Provisioned a basic Red Hat, Oracle Enterprise or SuSE Linux system|
To provision a LAMP stack using patch catalogs
For this walkthrough, you log on as BLAdmin, the default superuser for BSA, even though this procedure should be possible for any role that has permissions to create and run Linux Patching Jobs. Note that in live deployments, BMC recommends you grant access based on roles with a narrower set of permissions.
In the Depot, locate a patch catalog for the desired OS.
Click the patch catalog and select Analyze using this catalog. The Patching Job wizard opens. Provide a name and a location to store the job and click Next.
The Analysis Options panel opens.
Select Analyze for missing RPMs and updates available for installed RPMs on target servers (Install Mode). Then, in the Include/Excludes list, click Add The specific versions may differ for your environment. When you are done with your selections, click Next.. A dialog lets you select the required LAMP RPMs.
The Remediation Options panel opens.
Select Execute job now to indicate that a Deploy Job should start automatically after the analysis phase completes. Click Next. The Targets panel opens.
Select the target servers where you want to do patch analysis and click Finish.
Because you selected Execute job now, the Patching Job runs immediately. The RPMs you selected are compiled into a BLPackage and immediately deployed to any servers where the RPMs are missing.
You can open the generated BLPackage and inspect RPMs that are deployed. The actual RPMs deployed may vary depending what is present on the target before the Patching Job is run. The example at right shows the dependent packages that may be deployed, in addition to the ones that are explicitly included.
Wrapping it up
In this walkthrough, you created a Linux Patching Job, defined it to use "Install" mode, and then deployed new RPMs as well as any required dependencies to the target system, using a patch catalog.
Where to go next
Because deploying a LAMP stack is typically done during or after template provisioning of a server, the next logical step is Walkthrough: Performing post-install activities after provisioning.