-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from mekaufman/patch-1
Edits for LAMP about page
- Loading branch information
Showing
1 changed file
with
24 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,45 @@ | ||
# LAMP Template | ||
# LAMP template | ||
|
||
An IBM Cloud Schematics template to provision a virtual machine instance and configure it with the "LAMP" stack: Linux, Apache, MySQL (mariadb), and PHP. Schematics uses [Terraform](https://www.terraform.io/) as the infrastructure as code engine. With this template, you can provision and manage infrastructure as a single unit. | ||
The LAMP template is an IBM Cloud Schematics template that is used to create a virtual server instance (VSI) and configure it with the "LAMP" stack: Linux, Apache, MySQL (mariadb), and PHP. Schematics uses [Terraform](https://www.terraform.io/) as the infrastructure-as-code engine. With this template, you can create and manage infrastructure as a single unit. | ||
|
||
See the IBM Cloud docs for more information about [Schematics](https://cloud.ibm.com/docs/schematics). | ||
For more information about how to use the template, see the [IBM Cloud Schematics documentation](https://cloud.ibm.com/docs/schematics). | ||
|
||
## Costs | ||
|
||
This sample uses chargable services and **will** incur costs for the time the services are deployed. Execution of `terraform destroy` will result in deletion of all resources including the ICD service instance. Billing for VSIs and ICD will terminate on the hour. | ||
This sample uses chargeable services and you are charged for the time the services are deployed. Running the `terraform destroy` command deletes all resources, including the IBM Cloud database service instance. Billing for virtual server instances (VSIs) and IBM Cloud database terminates on the hour. | ||
|
||
## Dependencies | ||
|
||
- User has IAM security rights to create and configure an IBM Cloud Database instance and VSIs | ||
The user must have Identity and Access Management (IAM) access to create and configure an IBM Cloud database instance and VSIs. | ||
|
||
## Identity & Access Management (IAM) Permissions | ||
## Configuring your deployment values | ||
|
||
The following variables need to be set before use | ||
Set the following variables before you use the template: | ||
|
||
* `softlayer_username` is an Infrastructure user name. Go to https://cloud.ibm.com/iam/users/, select the user, scroll down and check username under VPN password. | ||
* `softlayer_api_key` is an Infrastructure API Key. Go to https://cloud.ibm.com/iam/users/, select the user, scroll down and check Classic infrastructure API key under API keys. If you don't have one already, go to https://cloud.ibm.com/iam/#/apikeys and create a new Classic infrastructure key. | ||
* `softlayer_username` is a the infrastructure user name. Go to **Access (IAM) > Users**, and select your name. Then, verify the user name is listed in the VPN password section. | ||
* `softlayer_api_key` is a classic infrastructure API key. Go to **Access (IAM) > Users**, and select your name. Then, verify that a classic infrastructure API key is included in the API keys section. If you don't have one already, you can create one from the [IBM Cloud API keys page](https://cloud.ibm.com/iam/apikeys). | ||
|
||
### Variables | ||
You must also set the following deployment values on the Create page. You can enter customized values or accept the defaults. | ||
|
||
|Variable Name|Description|Default Value| | ||
|-------------|-----------|-------------| | ||
|cores|The number of CPU cores to allocate.|1| | ||
|datacenter|The data center to create resources in. You can get the list by running `ibmcloud cs locations`.|wdc01| | ||
|disk_size|The numeric disk sizes (in GB) for the instance’s block device and disk image settings.|25| | ||
|domain|The domain for the instance.|domain.dev| | ||
|hostname|The hostname for the instance.|lamp| | ||
|memory|The amount of memory, expressed in megabytes, to allocate.|1026| | ||
|network_speed|The connection speed (in Mbps) for the instance’s network components.|100| | ||
|os_reference_code|The operating system reference code that is used to provision the computing instance. To see available OS reference codes, log in to the [IBM Cloud Infrastructure (SoftLayer) API](https://api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest_Block_Device_Template_Group/getVhdImportSoftwareDescriptions.json?objectMask=referenceCode).|CENTOS_LATEST_64| | ||
|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 access the VM.|| | ||
|datacenter|The data center to create resources in, for example, dal13. To get a list of all data centers, run the `ic sl vs options` command.|wdc01| | ||
|disk_size|The numeric disk sizes in GB for the instance’s block device and disk image settings.|25| | ||
|domain|The domain for the instance, for example, domain.dev|domain.dev| | ||
|hostname|The hostname for the instance, for example, vm1|lamp| | ||
|memory|The amount of memory in MB to allocate.|1026| | ||
|network_speed|The connection speed in Mbps for the instance’s network components.|100| | ||
|os_reference_code|The code that is used to provision the computing instance. To see available OS reference codes, log in to the [IBM Cloud Infrastructure (SoftLayer) API](https://api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest_Block_Device_Template_Group/getVhdImportSoftwareDescriptions.json?objectMask=referenceCode).|CENTOS_LATEST_64| | ||
|private_network_only|Enter true or false. True means a compute instance has access only to the private network.|false| | ||
|softlayer_api_key|Enter your classic infrastructure API key. See the [IBM Cloud API keys page](https://cloud.ibm.com/iam/apikeys) to get the details of an existing API key or to create a new one.|| | ||
|softlayer_username|Enter your classic infrastructure user name. Go to **Access (IAM) > Users**, and select your name. Then, locate your user name from the VPN password section. || | ||
|ssh_key|Your public SSH key to access the virtual machine. Your public key is saved to a `id_rsa.pub` file in the `.ssh` subdirectory of your home directory.|| | ||
|ssh_label|An identifying label to assign to the SSH key.|public ssh key - Schematics VM| | ||
|ssh_notes|A description to assign to the SSH key.|| | ||
|ssh_user|The provisioning username.|root| | ||
|tags|Descriptive tags to label the resource.|| | ||
|
||
|ssh_user|The default user name for the virtual machine, for example, the "root" user for UNIX operating systems. |root| | ||
|tags|Add descriptive tags to label the resource. A tag is a label that you assign to a resource for easy filtering of resources in your resource list.|| | ||
## Outputs | ||
|
||
This template outputs the IPv4 address of the created virtual machine | ||
This template outputs the IPv4 address of the created virtual machine. | ||
|