This topic was created by a BMC Contributor and has not been approved. More information.
This topic describes how to deploy Apache using BMC Server Automation.
Creating an Apache package for deployment
Use the following steps to create an Apache package for deployment.
- Depending on the OS that you wish to deploy Apache against, create a new Depot Object using the silent installation instructions below.
- After creating the Depot Object, create a Deploy Job and use it to test the deployment and rollback of Apache against one or more target servers.
Use the httpd-2.2.15-win32-x86-no_ssl.msi payload, as in the following command line:
No SSL: msiexec /i "??SOURCE??" /passive ALLUSERS=1 AgreeToLicense=Yes SERVERADMIN=admin@localhost SERVERNAME=??TARGET.HOST?? SERVERDOMAIN=localhost SERVERPORT=80 SSL: msiexec /i "??SOURCE??" /passive ALLUSERS=1 AgreeToLicense=Yes SERVERADMIN=admin@localhost SERVERNAME=??TARGET.HOST?? SERVERDOMAIN=localhost SERVERPORT=80 SERVERSSLPORT=443
Use the following packages.
Certain paths require fewer packages, as some packages might already exist on your deploy target.
apr-1.2.7-11.x86_64.rpm Linux RPM Jul 27, 2010 3:29:29 PM Jul 27, 2010 3:29:29 PM BLAdmins BLAdmin apr-util-1.2.7-7.el5.x86_64.rpm Linux RPM Jul 27, 2010 3:30:01 PM Jul 27, 2010 3:30:01 PM BLAdmins BLAdmin crypto-utils-2.3-2.el5.x86_64.rpm Linux RPM Jul 27, 2010 3:27:44 PM Jul 27, 2010 3:27:44 PM BLAdmins BLAdmin distcache-1.4.5-14.1.x86_64.rpm Linux RPM Jul 27, 2010 3:28:18 PM Jul 27, 2010 3:28:18 PM BLAdmins BLAdmin httpd-2.2.3-22.el5.x86_64.rpm Linux RPM Apache Jul 27, 2010 3:25:55 PM Jul 27, 2010 3:25:55 PM BLAdmins BLAdmin mod_ssl-2.2.3-22.el5.x86_64.rpm Linux RPM Jul 27, 2010 3:27:02 PM Jul 27, 2010 3:27:02 PM BLAdmins BLAdmin newt-perl-1.08-9.2.2.x86_64.rpm Linux RPM Jul 27, 2010 3:28:58 PM Jul 27, 2010 3:28:58 PM BLAdmins BLAdmin postgresql-libs-8.1.11-1.el5_1.1.x86_64.rpm Linux RPM Jul 27, 2010 3:30:29 PM Jul 27, 2010 3:30:29 PM BLAdmins BLAdmin
Use this external command:
The order is: newt-perl, crypto-utils, distcache, apr, postgresql-libs, apr-util, httpd, mod_ssl.
Importing a Windows package
The downloadable package in this section was exported from a BMC Server Automation version 8.2 environment.
To import the package
- Download the httpd install file from http://off.co.il/apache//httpd/binaries/win32/httpd-2.2.22-win32-x86-openssl-0.9.8t.msi
- Extract the zip file. You will have the exported package: Deploy httpd MSI with configuration.zip
- Import the package into the Job folders.
The package contains:
- BLPackage: httpd MSI in BLPackage with conf
- Deploy Job: Deploy httpd MSI with configuration
- Adjust the settings in the Deploy Job:
- Select Windows Targets (to execute against).
- Supply values to the SOURCE parameter, where SOURCE is the nsh location of the install file binaries (downloaded in step 1).
- Supply values to the parameter HTTPD_ROOT, where HTTPD_ROOT is the Windows path in the target for the installation location.
- Execute the Deploy job.
- MSI Software package
Optionally, it can be modified, specifically the Cmd fields that can be modified with any required installation parameters.
- The following three objects of the configuration file httpd.conf(optionally, they can be modified):
- External commands (the response can be seen only when the Job logging level is All Information)
- Pre install: echo the install dir.
- Post configuration command:
- Verify the httpd.conf file syntax.
- Get the httpd version.