Before you can create multi-tier application patterns, you have to create the software components. This task creates a service that installs and configures an Apache Web server on a Linux virtual machine.

Procedure

  1. Log in to the vRealize Automation Rainpole portal.
    1. Open a Web browser and go to https://vra01svr01.rainpole.local/vcac/org/rainpole.
    2. Log in using the following credentials.

      Setting

      Value

      User name

      vra-admin-rainpole

      Password

      vra-admin-rainpole_password

      Domain

      rainpole.local

  2. Navigate to Design > Software Components.
  3. Click New to create a new service.
  4. Under General, enter the following values.

    Setting

    Value

    Name

    Apache Service

    Description

    Install and configure Apache Service on Linux systems.

    Container

    Machine

  5. Click Next on the Properties page.
  6. Set the actions for this service in the Actions pane.
    1. In the Install row, select Bash as the Script Type.




    2. Still in the Install row, select Click Here to edit and paste the following code into the Edit Script text box.
      /usr/bin/yum -y install httpd
      /sbin/chkconfig httpd on
      /sbin/service httpd start




  7. Click Next and click Finish.
  8. Select the new service and click Publish.