Using Application Services Library Services - vRealize ... · Using Application Services Library...

29
Using Application Services Library Services vRealize Automation 6.2

Transcript of Using Application Services Library Services - vRealize ... · Using Application Services Library...

Page 1: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Using ApplicationServices Library ServicesvRealize Automation 6.2

Page 2: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Using Application Services Library Services

VMware, Inc. 2

You can find the most up-to-date technical documentation on the VMware website at:

https://docs.vmware.com/

If you have comments about this documentation, submit your feedback to

[email protected]

Copyright © 2012–2014 VMware, Inc. All rights reserved. Copyright and trademark information.

VMware, Inc.3401 Hillview Ave.Palo Alto, CA 94304www.vmware.com

Page 3: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Contents

Using Application Services Library Services 4

1 Sample Library Services 5

2 Using and Configuring Sample Application Server Services 7

Sample Application Server Services 7

3 Sample Database Server Services 11

4 Sample Web Server Services 20

5 Sample Monitoring Server Services 25

6 Sample Puppet Services 26

7 Sample Services to Use with an Existing Application 28

VMware, Inc. 3

Page 4: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Using Application Services LibraryServices

The Application Services library provides a list of pre-populated standard logical templates, predefinedapplications and services, and customizable scripts for users to create and deploy an applicationblueprint.

The Application Services library lets you specify definitions for installable custom services on logicaltemplates using install, configure, start, update, rollback, and tear down scripts. An application catalogadministrator can add a service using logical templates or scripts to support custom applicationinfrastructure and operating systems required by IT.

Intended AudienceThis information is intended for anyone who wants to better understand the sample infrastructure andsoftware services, supported operating systems, and supported application components available inApplication Services. This audience includes application architects and application catalog administratorswho work in collaboration with application infrastructure administrators and cloud administrators.

VMware, Inc. 4

Page 5: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Sample Library Services 1Application Services includes predefined components, such as services, in its library that are reusablecomponents in several applications. These services are available to all business groups in ApplicationServices.

Library ServicesOn the Application Services title bar, you can click the drop-down menu and select Library > Services toview the available sample services. The Library menu also includes standard logical templates, tasks,operating systems, tags, policies and external services.

An application architect can create an application blueprint and add the sample services to the applicablenodes and configure them. The sample services can also be configured when deploying a predefinedapplication.

In the application blueprint, these sample services are grouped into Application Servers, DatabaseServers, Web Servers, Windows Services, Monitoring, Puppet Services, and Other.

The property values for all of the services are case-sensitive. A new property value does not take effect ifthe value is typed incorrectly.

Note Use the predefined sample library services only in a test environment.

The following concepts appear frequently in topics relating to library services.

application Logical deployment unit, which defines the relationship between operatingsystem templates, application components and their dependent servicesthat can be distributed across multiple virtual machines.

actions Life cycle stages for the install, configure, start, update, rollback, andteardown scripts for services and application components to be installed.

applicationcomponents

Custom code used as a template for components such as EAR files, WARfiles, and so on. They are custom script packages for the install, configure,start, update, rollback, and teardown actions on a node or service.

node Virtual machine defined in the blueprint.

clustered node Cluster of virtual machines defined in the blueprint.

VMware, Inc. 5

Page 6: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

application blueprint Logical topology of an application for deployment. A blueprint captures thestructure of an application with logical nodes, their corresponding servicesand operating systems, dependencies, default configurations, and networkand storage topology requirements.

library Library that contains logical templates, which are pointers to cloudtemplates. Reusable services that can be used in multiple applications andinstalled on a virtual machine. Tasks that can perform additional customizedtasks in an application deployment.

logical template A predefined virtual machine definition in Application Services. A logicaltemplate can be mapped to an actual cloud template in the cloud libraryand supported services. Logical templates allow an application blueprint toremain cloud agnostic.

service Scripted software that can be installed on a virtual machine and reused inmultiple applications.

properties Configuration name-value pairs for services and application components.These are variables used by the scripts to set parameters on a script andrun various configurations. For example, you can set the installation_pathproperty value and configure installation scripts to use this property tospecify the path to use to install a service during the application deploymentprocess.

operating system Specifies an operating system that the IT organization for logical templatesand services supports. A list of operating systems appears in theOperating systems menu, and you can add to the list.

tag Organizes the lists of logical templates and services to enhance readabilityin the blueprint editor. A list of tags appears in the Tags menu, and you canadd new tags to the list.

custom tasks From the execution plan, you can add custom tasks to perform additionalcustomized tasks such as run security patches in an applicationdeployment. You can create a custom task in the library and add it to anapplication deployment. Application Services also provides predefinedtasks in the library that you can use to configure an APT repository, a YUMrepository, register a machine with a Red Hat Network, or Join Domain.

Using Application Services Library Services

VMware, Inc. 6

Page 7: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Using and Configuring SampleApplication Server Services 2The predefined applications, such as Clustered Dukes Bank, Clustered Dot Shopping Cart, Nanotrader,RadiantCMS, and jPetStore, include many of the sample application server services. You can configurethe application server services to customize them for your application.

Sample Application Server ServicesApplication Services provides samples of application server services that a catalog administrator can useto create or update an existing application.

Use the predefined sample catalog service only in a test environment.

VMware, Inc. 7

Page 8: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 2‑1. Application Server Services

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

vFabric tc Server2.7.1

Installs and configuresvFabric tc Server, the application servercomponent of vFabric Suite, andcreates an instance that ApplicationServices uses to deploy WAR files.

To deploy Web applications, you mustspecify the Web application names inthe app_name property.

The vFabric tc Server includes thefollowing properties to customizeservices in your application:n use_ajp. Set this property to Yes to

configure the vFabric tc Serverinstance with the AJP Connectorrather than the default HTTPConnector. If you use the vFabricWeb Server as a load balancer, thetwo services communicate usingthe AJP protocol.

n java_home. Specifies the requireddirectory where the JRE isinstalled. By default,ApplicationServices installs the JRE inthe /opt/vmware-jre directory.You can also set this property touse a custom JRE installation.

n instance_name. Specifies theinternal name of the tc Runtimeinstance. The default name value isinstance1. You can also use thisproperty to create a custom name.

n instance_root_dir. Specifies thedirectory where vFabric tc Server isinstalled. The default directoryvalue is /opt/vmware/vfabric-tc-server-standard. Thisproperty allows you to specify adifferent directory.

n templates. Specifies an array ofvFabric tc Server templates thatare applied to the new instance,such as elastic-memory, bio-s, nio,or jmx-ssl. By default, only the bio

n CentOS 6.4.0 32-bitn CentOS 6.4.0 64-bitn CentOS 6.3.0 32-bitn CentOS 6.3.0 64-bitn RHEL 6.4.0 32-bitn RHEL 6.4.0 64-bitn RHEL 6.1.0 32-bitn RHEL 6.1.0 64-bit

n JARn WARn SCRIPT

ApplicationServers

Using Application Services Library Services

VMware, Inc. 8

Page 9: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 2‑1. Application Server Services (Continued)

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

template is applied. For the list ofthe available predefined templates,see the vFabric tc Server 2.7documentation.

n app_name. Specifies the name ofthe Web application to deploy tothe vFabric tc Server instance. Theapplication name is the name of theWAR file minus the .war suffix.

Use commas to separate multipleapplications. For example,myapp1,mytestapp2.

n external_template. Specifies theURL of a *.tgz file that contains acustom vFabric tc Server templateto apply to the tc Runtime instance.

n port. Specifies the HTTP port thatthe vFabric tc Server listens to forincoming requests. The default portvalue is 8080.

To monitor the vFabric tc Serverservice, drag a vFabric Hyperic Agentto the same node and use the vFabricHyperic Server to discover the vFabrictc Server instance.

If you include the vFabric Web Server5.1.1 service in your application andcreate a dependency between it andthe vFabric tc Server service,Application Services uses the Auto-Bind Consume and Expose propertiesof the two services to configure theWeb Server service as a load balancerand proxy to the vFabric tc Serverservice.

JBoss 5.1.0 onWindows

Installs and configures JBossEnterprise components for Windowsoperating systems. The 5.1.0 version ofJBoss requires JRE 1.6.0 u31 or laterto work properly on Windows.

Windows Server 2008R2 Enterprise SP1 64-bit

n JARn WARn EAR

n WindowsServices

n ApplicationServers

Using Application Services Library Services

VMware, Inc. 9

Page 10: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 2‑1. Application Server Services (Continued)

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

You can apply the JBoss service to aclustered node. For persistent or stickysessions, set the JVM_ROUTEproperty value to self:node_array_indexin the expression drop-down menu andconfigure the load balancing server touse the JVM_ROUTE property.

For the JAVA_INSTALL_DIR property,set a JRE installation path with respectto the Windows virtual machinetemplate for the JBoss service.

JBoss 5.1.0 onLinux

Installs and configures JBossEnterprise components for Linuxoperating systems.

You can apply the JBoss service to aclustered node. For persistent or stickysessions, set the JVM_ROUTEproperty value to self:node_array_indexin the expression drop-down menu andconfigure the load balancing server touse the JVM_ROUTE property.

The JBoss service installation scriptsuse the YUM package managementtool to install dependencies.

n CentOS 6.4.0 32-bitn CentOS 6.4.0 64-bitn CentOS 6.3.0 32-bitn CentOS 6.3.0 64-bitn RHEL 6.4.0 32-bitn RHEL 6.4.0 64-bitn RHEL 6.1.0 32-bitn RHEL 6.1.0 64-bit

n JARn WARn EAR

ApplicationServers

Microsoft IISwith .NETFramework onWindows Server2008 R2 1.0.0

Installs and enables the Microsoft IISServer 7 and .NET Framework 3.5 onWindows Server 2008 R2.

Windows Server 2008R2 Enterprise SP1 64-bit

SCRIPT n WindowsServices

n WebServers

n ApplicationServers

Microsoft .NETFramework 4.01.0.0

The Microsoft .NET Framework 4.0service downloads and installsthe .NET Framework components.

Windows Server 2008R2 Enterprise SP1 64-bit

SCRIPT n WindowsServices

n ApplicationServers

Rails 2.3.18 Downloads and installs Ruby On Rails.

The Rails service INSTALL scripts usethe YUM package management tool toinstall dependencies.

Important The Hyperic Agent servicedoes not monitor the Rails service.

n CentOS 6.4.0 32-bitn CentOS 6.4.0 64-bitn CentOS 6.3.0 32-bitn CentOS 6.3.0 64-bit

n SCRIPTn RUBY_GEM

ApplicationServers

To deploy predefined sample applications or add predefined tasks to an execution deployment plan, seethe Using Application Services documentation.

Using Application Services Library Services

VMware, Inc. 10

Page 11: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Sample Database ServerServices 3Application Services provides samples of database server services that a catalog administrator can useto create or update an existing application.

Many of the sample services are available in the predefined applications such as Clustered Dukes Bank,Clustered Dot Shopping Cart, Nanotrader, Radiant CMS, and jPetStore.

Use the predefined sample catalog service only in a test environment.

Table 3‑1. Database Server Services

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

vFabric GemFire6.6.0-vFabric51

Installs the service and makes thevFabric GemFire libraries availablefor use.

You can set the properties such asVERSION, REPO_RPM to set theversion and name for the vFabricpackage.

The Hyperic Agent service does notmonitor this version of the vFabricGemFire service.

n RHEL 6.4.0 32-bitn RHEL 6.4.0 64-bitn RHEL 6.1.0 32-bitn RHEL 6.1.0 64-bit

SCRIPT DatabaseServers

vFabric SQLFire1.0.0

Installs the server and starts aninstance of the service using thevalues that you defined in theclient_port and multicast_portproperties.

The Hyperic Agent service does notmonitor the vFabric SQLFire service.

n CentOS 6.4.0 32-bitn CentOS 6.4.0 64-bitn CentOS 6.3.0 32-bitn CentOS 6.3.0 64-bitn RHEL 6.4.0 32-bitn RHEL 6.4.0 64-bitn RHEL 6.1.0 32-bitn RHEL 6.1.0 64-bitn Ubuntu 12.04.2 32-bitn Ubuntu 12.04.2 64-bit

SCRIPT DatabaseServers

VMware, Inc. 11

Page 12: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 3‑1. Database Server Services (Continued)

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

vFabric SQLFireServer 1.0.3

Installs the server and starts aninstance of the service using thevalues that you defined in theclient_port and multicast_portproperties.

The Auto-Bind feature binds thevFabric SQLFire Server and Locatorservices to each other when they areadded to an application blueprint. ThevFabric SQLFire Server serviceshould be on a clustered node, andthe vFabric SQLFire Locator serviceshould be on a single node.

The vFabric SQLFire Server serviceincludes the following properties tocustomize a service in yourapplication:n username. Specifies the SQLFire

user name. This property isexposed for other services suchas tc Server, to use when theyconnect to SQLFire server.

n password. Specifies the userpassword that is set in theusername property.

n multicast_port. Specifies the portused for multicast communicationwith other members of thedistributed system. The defaultport value is 12333.

n number_of_servers. Specifies thenumber of SQLFire servers tostart. The default server value is1.

n client_port. Specifies the port thatthe network controller listens onfor client connections. The defaultport value is 1528.

n initial_heap. Specifies the initialheap size of the JVM in which theSQLFire Server runs. The defaultsize value is 512MB.

n java_home. Specifies therequired directory where the JREis installed. By default,vCloud Automation CenterApplication Services installs the

n CentOS 6.4.0 32-bitn CentOS 6.4.0 64-bitn CentOS 6.3.0 32-bitn CentOS 6.3.0 64-bit

SCRIPT DatabaseServers

Using Application Services Library Services

VMware, Inc. 12

Page 13: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 3‑1. Database Server Services (Continued)

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

JRE in the /opt/vmware-jredirectory. You can also set thisproperty to use a custom JREinstallation.

n max_heap. Specifies themaximum heap size of the JVM inwhich the SQLFire Server runs.The default size value is 1024MB.

n dataload_file. Specifies the URLto a SQL file that contains theSQL commands for loading initialdata to the schema that you set inthe schema_file property. ThisSQL file runs only once when thevFabric SQLFire service iscreated.

n schema_file. Specifies the URL toa SQL file that contains the SQLcommands for creating a schemasuch as tables and indices. ThisSQL file runs only once when thevFabric SQLFire service iscreated.

Using Application Services Library Services

VMware, Inc. 13

Page 14: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 3‑1. Database Server Services (Continued)

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

vFabric SQLFireLocator 1.0.3

Installs the server and starts aninstance of the service using thevalues that you defined in theclient_port and multicast_portproperties

The Auto-Bind feature binds thevFabric SQLFire Server and Locatorservices to each other when they areadded to an application blueprint. ThevFabric SQLFire Server serviceshould be on a clustered node, andthe vFabric SQLFire Locator serviceshould be on a single node.

The vFabric SQLFire Locator serviceincludes the following properties tocustomize a service in yourapplication:n peer_discovery_port. Specifies

the port on which the locatorlistens for peer discovery, whichincludes servers and otherlocators. Default port value is10101.

n install_path. Specifies thedirectory where the vFabricSQLFire locator is installed. Thedefault directoryis /opt/vmware/darwin/sqlfire. You can also use this propertyto designate a different directory.

n java_home. Specifies therequired directory where the JREis installed. By default,ApplicationServices installs the JRE inthe /opt/vmware-jre directory,you can also set this property touse a custom JRE installation.

n locator_client_port. Specifies theport that the locator listens on.The default port value is 1527.

n multicast_port. Specifies the portused for multicast communicationwith other members of thedistributed system. The defaultport value is 12333.

n CentOS 6.4.0 32-bitn CentOS 6.4.0 64-bitn CentOS 6.3.0 32-bitn CentOS 6.3.0 64-bitn RHEL 6.4.0 32-bitn RHEL 6.4.0 64-bitn RHEL 6.1.0 32-bitn RHEL 6.1.0 64-bit

SCRIPT DatabaseServers

Using Application Services Library Services

VMware, Inc. 14

Page 15: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 3‑1. Database Server Services (Continued)

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

vFabric Postgres9.0.4

Installs and configures the service foruse.

Set the propertyallow_connection_ips value to All toallow any host to connect to thedatabase.

Set the propertyallow_connection_ips value to Noneto allow only local connections. Youcan also set an array of IP addressesto selectively allow remote access.

n CentOS 6.3.0 64-bitn CentOS 6.4.0 64-bitn RHEL 6.1.0 64-bitn RHEL 6.4.0 64-bit

SQL SCRIPT DatabaseServers

MySQL 5.0.0 Installs the MySQL server software.

Set the property db_port value to theappropriate port. Applicationcomponents use the database portvalue for configuration.

Set the property db_root_passwordvalue to the password assigned to thedatabase administrator. The defaultdatabase administrator password isroot.

On Ubuntu, the default serverconfiguration does not allow remoteconnections for security reasons. Toremotely connect to the Ubuntuserver, appendsed -ie "s/^bind-

address/#bind-address/g"

$my_cnf_file to the configurationaction script. This change to theaction script causes the server to bindto all interfaces allowing remote hoststo connect.

On Ubuntu, the db_port property isnot supported.

The MySQL service INSTALL scriptsuse the YUM package managementtool and APT-GET packaging tool toinstall dependencies.

n CentOS 6.4.0 32-bitn CentOS 6.4.0 64-bitn CentOS 6.3.0 32-bitn CentOS 6.3.0 64-bitn Ubuntu 12.04.2 32-bit

SQL SCRIPT DatabaseServers

Using Application Services Library Services

VMware, Inc. 15

Page 16: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 3‑1. Database Server Services (Continued)

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

Microsoft SQL Server2008 Express 1.0.0

The Microsoft SQL Server 2008Express service installs the MicrosoftSQL Server 2008 Express andcreates a database instance.

The default SA_PWD property valueis SQLserverdb1. If you change theproperty value, follow the MicrosoftSQL Server strong passwordrequirements. The default passwordis AqOj4V2w@whxuU!.

Windows Server 2008 R2Enterprise SP1 64-bit

SQL SCRIPT n WindowsServices

n DatabaseServers

Microsoft SQL Server2012 EnterpriseEdition

SQL Server 2012 Enterprise Editionservice supports the provision,update, and rollback operations in aWindows node. The provisionoperation installs SQL Server 2012Enterprise Edition binary and createsa database instance in the databasenode.

This edition uses the Flexible DiskLayout feature to put differentdatabase files in different storageoptions to improve the databaseperformance.

This service also lets the userconfigure the admin password andthe basic SQL Server databaseparameters such as serviceproperties in the provision, update,and rollback operations.

Windows Server 2008 R2Enterprise SP1 64-bit

SQL SCRIPT n WindowsServices

n DatabaseServers

MongoDB 2.0.1 Installs the MongoDB server andconfigures the server according to allof the parameters.

By default, if this property is not set,the service binds to all networkinterfaces on the system. If thisproperty is set, then the service bindsonly with the IP you provide.

Use the wget tool to downloadMongoDB installation files. You mighthave to configure the http_proxyproperty.

Note The Hyperic Agent servicedoes not monitor the MongoDBservice.

n CentOS 6.4.0 32-bitn CentOS 6.4.0 64-bitn CentOS 6.3.0 32-bitn CentOS 6.3.0 64-bitn Ubuntu 12.04.2 32-bitn RHEL6.1 32 bitn RHEL 6.4.0 32-bit

SQL SCRIPT DatabaseServers

Using Application Services Library Services

VMware, Inc. 16

Page 17: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 3‑1. Database Server Services (Continued)

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

Oracle11g 11.2.0 Installs and configures Oracle to startand use the server.

The default system administratorpassword is blank (no password).

The installer requires the installationfiles to be available on a NFS server.Set the server NFS path in theNFSPATH parameter and make surethe files are available.

For 32-bit installations, download thelinux_11gR2_database_1of2.zip

andlinux_11gR2_database_2of2.zip

files from the Oracle Web site.

For 64-bit installations, download thelinux.x64_11gR2_database_1of2.

zip andlinux.x64_11gR2_database_2of2.

zip files from the Oracle Web site.

The Oracle11g service INSTALLscripts use the YUM packagemanagement tool to installdependencies.

Important The logical template withthe Oracle11g service must have atleast 10GB of hard disk space tosuccessfully deploy the application.

By default, the oracle_base andinventory_location properties valuesare set to the /disk2 directory.

n RHEL 6.4.0 32-bitn RHEL 6.1.0 32-bitn RHEL 6.1.0 64-bit

SQL SCRIPT DatabaseServers

Using Application Services Library Services

VMware, Inc. 17

Page 18: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 3‑1. Database Server Services (Continued)

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

Oracle12c 12.1.0 Installs and configures Oracle to startand use the server.

The default system administratorpassword is blank (no password).

The installer requires the installationfiles to be available on a NFS server.Set the server NFS path in theNFSPATH parameter and make surethe files are available.

For 64-bit installations, download thelinuxamd64_12c_database_1of2.z

ip andlinuxamd64_12c_database_2of2.z

ip files from the Oracle Web site.

The Oracle12c service INSTALLscripts use the YUM packagemanagement tool to installdependencies.

Important The logical template withthe Oracle12c service must have atleast 10GB of hard disk space tosuccessfully deploy the application.

By default, the oracle_base andinventory_location properties valuesare set to the /disk2 directory.

n RHEL 6.1.0 64-bitn RHEL 6.4.0 64-bit

SQL SCRIPT DatabaseServers

Preinstalled MYSQLServer

The Preinstalled MYSQL Server setsthe value of db_port to the port to beused. Application components usethis value to configure theapplications.

Set the db_root_password value tothe password for the databaseadministrator.

CentOS 6.3.0 32-bit SQL SCRIPT DatabaseServers

Using Application Services Library Services

VMware, Inc. 18

Page 19: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 3‑1. Database Server Services (Continued)

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

Preinstalled vFabricGemFire Server

The Preinstalled vFabric GemFireServer sets the value ofdb_root_username to the root username to be used for the database.

Set the value of max_allowed_packetto the maximum allowed packet sizein the server.

Ubuntu 12.4.2 64-bit SCRIPT DatabaseServers

Preinstalled SQLServer 2008 R2Express

The Preinstalled SQL Server 2008 R2Express configures a databaseinstance.

Set the SAPWD value to thepassword for the databaseadministrator.

Windows Server 2008 R2Enterprise SP1 64-bit

SQL SCRIPT DatabaseServers

To deploy predefined sample applications or add predefined tasks to an execution deployment plan, seethe Using Application Services documentation.

Using Application Services Library Services

VMware, Inc. 19

Page 20: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Sample Web Server Services 4Application Services provides sample Web Server services that a catalog administrator can use to createor update an existing application.

The Apache sample Web Server service is included in the Clustered Dukes Bank predefined application.

Use the predefined sample catalog service only in a test environment.

VMware, Inc. 20

Page 21: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 4‑1. Web Server Services

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

vFabric WebServer 5.1.1

Installs the vFabric Web Server, which is theHTTP Server and load-balancing componentof the vFabric Suite.

In the blueprint, drag the service to a node.Set the property value http_node_ips to anarray of IP addresses to load balance andbind the webserver_ip property value toself:ip .

The vFabric Web Server Service includes thefollowing properties to customize services inyour application:n instance_name. Specifies the internal

name of the Web Server instance. Thedefault value is instance1. You can alsouse this property to create a customname. You cannot override this propertywhen you initiate an update process.

n load_balancer_method. Specifies the loadbalancing method that the Web Serveruses. The default value is byrequests.Other possible values are, bytraffic andbybusiness.

n deployment_archive. Specifies the URL ofthe *.tgz archive that contains the staticcontent to deploy to the Web Server.

n http_port. Specifies the HTTP port that theWeb Server listens to for incomingrequests. The default port value is 80.

n cluster_name. Specifies the internal nameof the cluster if you are using cluster loadbalancing. The default name is mycluster.

n webserver_conf_file. Specifies the internalname of the Web Server configuration file.The default file name is httpd-vfabric-webserver-ootb.conf.

If you also include the vFabric tc Server 2.7.1service in your application and create adependency between it and the vFabric WebServer service, Application Services uses theAuto-Bind Consume and Expose properties ofthe two services to configure the Web Serverservice as a load balancer and proxy to thetc Server service.

n CentOS 6.4.0 32-bit

n CentOS 6.4.0 64-bit

n CentOS 6.3.0 32-bit

n CentOS 6.3.0 64-bit

n RHEL 6.1.0 32-bitn RHEL 6.1.0 64-bitn RHEL 6.4.0 32-bitn RHEL 6.4.0 64-bit

n SCRIPTn OTHER

Web Servers

Microsoft IISwith .NETFramework onWindows Server2008 R2 1.0.0

Installs and enables the Microsoft IIS Server 7and .NET Framework 3.5 on Windows Server2008 R2.

Windows Server 2008R2 Enterprise SP1 64-bit

SCRIPT n WindowsServices

n Web Servers

Using Application Services Library Services

VMware, Inc. 21

Page 22: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 4‑1. Web Server Services (Continued)

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

n ApplicationServers

Using Application Services Library Services

VMware, Inc. 22

Page 23: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 4‑1. Web Server Services (Continued)

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

Apache HTTPServer 2.2.22 forWindows

Provides an installation of Apache 2.2 to servestatic content. The service also provides proxyconfiguration for mod_proxy andmod_proxy_ajp for application servers.n Add a port value for the http_port property

to enable the static server configuration.n Add an IP or array of IP reference for the

http_node_ips property to enable proxyconfiguration.

n Set the use_ajp property value to NO toconfigure mod_proxy.

n Set the use_ajp property value to YES toconfigure mod_proxy_ajp.

n Set the http_proxy_port property value to8009 when using Apache JServ Protocol(AJP). Otherwise, set the value to the porton which the application server is running.

n Set the autogen_sticky_cookie propertyvalue to YES when using the Apacheserver for load balancing non-Javaapplication servers such as the MicrosoftIIS Server. Otherwise, set the propertyvalue to NO.

Windows Server 2008R2 Enterprise SP1 64-bit

SCRIPT n WindowsServices

n Web Servers

Apache 2.2.0 Provides a standard installation of Apache toserve static content. The service also providesoptional proxy configuration for mod_proxyand mod_proxy_ajp for standard applicationservers.n Add a port value for the http_port property

to enable the static server configuration.n Add a node IP address value for the

http_node_ips property to enable proxyconfiguration.

n Set the use_ajp property value to NO toconfigure mod_proxy.

n Set the use_ajp property value to YES toconfigure mod_proxy_ajp.

When you use mod_proxy_ajp, it isoptional to add the tomcat_context andajp_proxy_context values for the proxy.

n Set the http_proxy_port property value to8009 when you use Apache JServProtocol (AJP). Otherwise, set the valueto the port that the application server isrunning on.

n CentOS 6.4.0 32-bit

n CentOS 6.4.0 64-bit

n CentOS 6.3.0 32-bit

n CentOS 6.3.0 64-bit

n RHEL 6.1.0 32-bitn RHEL 6.1.0 64-bitn RHEL 6.4.0 32-bitn RHEL 6.4.0 64-bit

SCRIPT Web Servers

Using Application Services Library Services

VMware, Inc. 23

Page 24: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 4‑1. Web Server Services (Continued)

Sample Service Service DescriptionSupported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

For Hyperic to properly monitor the Apacheservice, add the following code tothe /etc/httpd/conf/httd.confconfiguration file and restart, for the changesin the file to take effect.

ExtendedStatus On<Location /server-status>SetHandler server-statusOrder deny,allowDeny from allAllow from localhost</Location>

Additional parameters such asservice_start are read-only. Applicationcomponents can use the read-only parameterinformation to start and stop the Apacheserver.

The JVM_ROUTES property can be bound tothe JVM_ROUTE on clustered applicationservers.

The Apache service INSTALL scripts use YUMpackage management tool to installdependencies.

To deploy predefined sample applications or add predefined tasks to an execution deployment plan, seethe Using Application Services documentation.

Using Application Services Library Services

VMware, Inc. 24

Page 25: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Sample Monitoring ServerServices 5Application Services provides samples of monitoring server services that a catalog administrator can useto create or update an existing monitoring application.

Use the predefined sample catalog service only in a test environment.

Table 5‑1. Monitoring Server Services

SampleService Service Description

Supported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

Hyperic HQAgent 5.0.0

Installs either a 32-bit or a 64-bit HypericAgent and configures the agent to connect tothe server specified in the HQ_SERVER_IPproperty.

Set the required ip_address property value toself:ip.

The INSTALL script configures the server touse hqadmin as the username andAqOj4V2w@whxuU! password to connect tothe Hyperic Server. To modify the logincredentials, change the username andpassword in the service INSTALL script.

n CentOS 6.4.0 32-bitn CentOS 6.4.0 64-bitn CentOS 6.3.0 32-bitn CentOS 6.3.0 64-bitn RHEL 6.4.0 32-bitn RHEL 6.4.0 64-bitn RHEL 6.1.0 32-bitn RHEL 6.1.0 64-bitn Ubuntu 12.04.2 32-bitn Ubuntu 12.04.2 64-bit

Monitoring

Hyperic HQServer 5.0.0

Installs, configures, and starts either a 32-bit ora 64-bit Hyperic server.

Set the required ip_address property value toself:ip.

The INSTALL script configures the server touse hqadmin as the username andAqOj4V2w@whxuU! password to connect tothe Hyperic Server. To modify the logincredentials, change the username andpassword in the service INSTALL script.

The Hyperic Server service INSTALL scriptsuse the YUM package management tool andAPT-GET packaging tool to installdependencies.

n CentOS 6.4.0 64-bitn CentOS 6.3.0 64-bitn RHEL 6.4.0 64-bitn RHEL 6.1.0 64-bit

Monitoring

To deploy predefined sample applications or add predefined tasks to an execution deployment plan, seethe Using Application Services documentation.

VMware, Inc. 25

Page 26: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Sample Puppet Services 6Application Services provides sample Puppet services that an application architect can add to the logicaltemplate to associate the Puppet module in the node definition to the corresponding node on the PuppetMaster.

Use the predefined sample catalog service only in a test environment.

VMware, Inc. 26

Page 27: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 6‑1. Puppet Service Properties

SampleService Service Description

Supported OperatingSystems

SupportedApplicationComponents

AssociatedService Tag

PuppetMYSQLServer

The puppet MYSQL server represents the Puppetclass called mysql::server, which is part of thepuppetlabs-mysql module created by Puppetlabs.

You must complete the following prerequisites touse this service:n Register a Puppet Master with Application

Services.n The registered Puppet Master must have the

puppetlabs-mysql module version 0.9.0.

The Puppet MYSQL Server service includes thefollowing properties to customize a service in yourapplication:n appd_class_name. Indicates the class name.

Do not modify the value of this system definedproperty.

n enabled. Indicates whether the mysql serviceis in the started or stopped state.

n service_provider. Indicates the operatingsystem-specific service provider to managethe mysql daemon.

n config_hash. Indicates the mysql serverconfiguration specified in the hash syntax asspecified by the Puppet Domain SpecificLanguage. For information about possibleconfig values, see the puppetlabs-mysqlmodule documentation.

n manage_service. Indicates if Puppet shouldmanage the service configuration and lifecycle.

n package_ensure. Indicates that when theproperty state is set to present, the latest codefor the package is downloaded from therepository.

n package_name. Indicates the operatingsystem specific package name for installingthe mysql server.

n service_name. Indicates the name of theservice or daemon.

n RHEL 6.4.0 32-bitn RHEL 6.4.0 64-bitn RHEL 6.1.0 32-bitn RHEL 6.1.0 64-bitn CentOS 6.4.0 32-

bitn CentOS 6.4.0 64-

bitn CentOS 6.3.0 32-

bitn CentOS 6.3.0 64-

bitn CentOS 5.9.0 32-

bitn CentOS 5.9.0 64-

bitn Ubuntu 12.4.2 32-

bitn Ubuntu 12.4.2 64-

bitn SLES 11.2.0 64-bit

Script Puppet Services

To deploy predefined sample applications or add predefined tasks to an execution deployment plan, seethe Using Application Services documentation.

Using Application Services Library Services

VMware, Inc. 27

Page 28: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Sample Services to Use with anExisting Application 7Application Services provides sample services such as Microsoft SQL Server Management Tools 2008Express, and vFabric RabbitMQ that a catalog administrator can use to create or update an existingapplication.

Use the predefined sample catalog service only in a test environment.

VMware, Inc. 28

Page 29: Using Application Services Library Services - vRealize ... · Using Application Services Library Services The Application Services library provides a list of pre-populated standard

Table 7‑1. Catalog Services to Use with an Existing Application

Sample Service Service DescriptionSupportedOperating Systems

SupportedApplicationComponents

AssociatedService Tag

vFabricRabbitMQ 2.4.1

Installs and configures the service for use.

The vFabric RabbitMQ service INSTALL scriptsuse the YUM package management tool andAPT-GET packaging tool to installdependencies.

When an application blueprint with vFabricRabbitMQ service and the supported operatingsystem is deployed, the vFabric RabbitMQ2.7.1 service is installed.

When you install the vFabric RabbitMQ serviceon the Ubuntu operating system, the rpmpackages are not created because thevFabri_RabbitMQ_v2.4.1 INSTALL scriptattempts to set the http proxy port macros inthe /usr/lib/rpm/macros folder, which is notavailable in Ubuntu.

You can configure the INSTALL script to verifythe operating system before setting the httpproxy port macro inthe /usr/lib/rpm/macros folder. Add thefollowing command to the INSTALL script.

if [ $DistroBasedOn == "RedHat"; thenif [ ! $proxy_host == "" ]; then

The Hyperic Agent service can monitor vFabricRabbitMQ only with the management consoleplug-ins activated. See vFabric RabbitMQdocumentation.

n CentOS 6.4.032-bit

n CentOS 6.4.064-bit

n CentOS 6.3.032-bit

n CentOS 6.3.064-bit

n Ubuntu 12.04.232-bit

n Ubuntu 12.04.264-bit

SCRIPT OTHER

Microsoft SQLServerManagementTools 2008Express 1.0.0

Installs the Management Studio for the SQLServer 2008 Express.

Windows Server2008 R2 EnterpriseSP1 64-bit

None n WindowsServices

n OTHER

To deploy predefined sample applications or add predefined tasks to an execution deployment plan, seethe Using Application Services documentation.

Using Application Services Library Services

VMware, Inc. 29