Skip to content

Deploy a Tomcat version 7 app server on a single VM.

Notifications You must be signed in to change notification settings

Cloud-Schematics/tomcat7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tomcat 7 Template

An IBM Cloud Schematics template that allocates a virtual machine instance and provisions Apache Tomcat onto the instance.

Schematics uses Terraform as the infrastructure as code engine. With this template, you can provision and manage infrastructure as a single unit.

See the Terraform provider docs for available resources for the IBM Cloud. Note: To create the resources that this template requests, your IBM Cloud Infrastructure (Softlayer) account and IBM Cloud account must have sufficient permissions.

Create an environment with this template

Environments can be used to separate software components into development tiers (e.g. staging, QA, and production).

  1. In IBM Cloud, go to the menu and select the Schematics dashboard.
  2. In the left navigation menu, select Templates to access the template catalog.
  3. Click Create on the Tomcat7 template. You are taken to a configuration page where you can define metadata about your environment.
  4. In the Variables section: a. Set the value of temp_public_key to $SCHEMATICS.SSHKEYPUBLIC to use the Schematics generated key pair for the environment. b. Set the value of temp_private_key to $SCHEMATICS.SSHKEYPRIVATE to use the Schematics generated key pair for the environment. c. If you want to be able to SSH into the virtual machine provide a value for public_key
  5. Define values for your variables.

NOTE: The file /root/tomcat has the associated credentials & access information.

Variables

Variable Name Description Default Value
cores The number of CPU cores to allocate. 1
datacenter Which data center the VM is to be provisioned in. You can run bluemix cs locations to see a list of all data centers in your region. wdc01
disk_size Numeric disk sizes in GBs. 25
domain Domain for the computing instance. domain.dev
hostname Hostname for the computing instance. hostname
memory The amount of memory to allocate, expressed in megabytes. 1026
network_speed The connection speed (in Mbps) for the instance’s network components. 100
os_reference_code An operating system reference code that is used to provision the computing instance. Get a complete list of the OS reference codes available (use your API key as the password to log in). CENTOS_7
private_network_only When set to true, a compute instance only has access to the private network. false
softlayer_api_key Your IBM Cloud Infrastructure (SoftLayer) API key.
softlayer_username Your IBM Cloud Infrastructure (SoftLayer) user name.
ssh_key Your public SSH key to use for access to virtual machine.
ssh_label An identifying label to assign to the SSH key. public ssh key - Schematics VM
ssh_notes Notes to store with the SSH key.
ssh_user The provisioning user name. root
tags Set tags on the VM instance. Permitted characters include: A-Z, 0-9, whitespace, _ (underscore), - (hyphen), . (period), and : (colon). All other characters are removed.

Next steps

After setting up your environment with this template, you can run Plan to preview how Schematics will deploy resources to your environment. When you are ready to deploy the cluster, run Apply.

About

Deploy a Tomcat version 7 app server on a single VM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages