You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Virtual Server for Virtual Private Cloud using Custom Image
1
+
# F5-BIGIP Virtual Server for Virtual Private Cloud using Custom Image
2
2
3
-
With this template, you can use IBM Cloud Schematics to create F5-BIGIP virtual server using custom image from you IBM Cloud account. 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 as follows. For more information about how to use this template, see the [IBM Cloud Schematics documentation](https://cloud.ibm.com/docs/schematics).
3
+
With this template, you can use IBM Cloud Schematics to create F5-BIGIP virtual server using custom image from your IBM Cloud account. 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 as follows. For more information about how to use this template, see the [IBM Cloud Schematics documentation](https://cloud.ibm.com/docs/schematics).
4
4
5
5
**Included**:
6
-
* 1 [virtual private cloud](https://cloud.ibm.com/docs/vpc-on-classic?topic=vpc-on-classic-getting-started) instance, in specified zone.
7
-
* 1 [VPC virtual servers using bring your own custom F5-BigIP image](https://cloud.ibm.com/docs/vpc-on-classic-vsi?topic=vpc-on-classic-vsi-getting-started) instances per zone.
6
+
*1. (1) Public-Gateway for given VPC
7
+
*2. (1) Subnet that will be used by F5-BIGIP VSI and attach the public-gateway
8
+
*3. (1) Security-Group with rules to allow access to F5-BIGIP admin portal
9
+
*4. (1) Custom Image using provided F5-BIGIP qcow2
10
+
*5. (1) F5-BIGIP VSI and attach security-group rules
11
+
*6. (1) FIP and attach to primary network interface of F5-BIGIP VSI
12
+
*7. (2) Backend VSI with nginx and customized welcome page (Demo purpose only)
8
13
9
14
**Not included**:
10
15
* This is a poc work.
11
-
*[Bring your F5 Custom Image](https://cloud.ibm.com/docs/vpc-on-classic-vsi?topic=vpc-on-classic-vsi-images#custom-images)
16
+
17
+
**Must have IBM IS Terraform Provider fixes**:
18
+
* Provide `data source for ibm_login_target` that would provide some key information from provider session (example: account-id)
19
+
* Provide `resource for ibm_is_image` - IS Image create, update, delete
20
+
* Catalog offering Deployment variable must provide way to mark some variable sensitive (example: vendor svc account apikey)
12
21
13
22
## Costs
14
23
@@ -24,12 +33,7 @@ Before you can apply the template in IBM Cloud, complete the following steps.
24
33
1. Make sure that you have the following permissions in IBM Cloud Identity and Access Management:
25
34
***Manager** service access role for IBM Cloud Schematics
26
35
***Operator** platform role for VPC Infrastructure
27
-
2. Download the [`ibmcloud` command line interface (CLI) tool](https://cloud.ibm.com/docs/cli/reference/ibmcloud?topic=cloud-cli-install-ibmcloud-cli).
28
-
3. Install the `ibmcloud terraform` and `ibmcloud is` CLI plug-ins for Schematics and VPC infrastructure. **Tip**: To update your current plug-ins, run `ibmcloud plugin update`.
29
-
*`ibmcloud plugin install schematics`
30
-
*`ibmcloud plugin install vpc-infrastructure`
31
-
4.[Create or use an existing SSH key for VPC virtual servers](https://cloud.ibm.com/docs/vpc-on-classic-vsi?topic=vpc-on-classic-vsi-ssh-keys).
32
-
5.[Bring your F5 Custom Image](https://cloud.ibm.com/docs/vpc-on-classic-vsi?topic=vpc-on-classic-vsi-images#custom-images)
36
+
2. Ensure given VPC and SSHKey already exists in your account.
33
37
34
38
## Configuring your deployment values
35
39
@@ -41,21 +45,30 @@ Fill in the following values, based on the steps that you completed before you b
41
45
|Variable Name|Description|
42
46
|-------------|-----------|
43
47
|`ssh_public_key`|Enter the [public SSH key](https://cloud.ibm.com/docs/vpc-on-classic-vsi?topic=vpc-on-classic-vsi-ssh-keys) that you use to access your VPC virtual servers. Use the public key from the `~/.ssh/id_rsa.pub` file generated by the latest version of ssh-keygen tool, with the recommended key-size 2048.|
44
-
|`f5_image`|The ID of the F5 custom image provisioned in your IBM Cloud account. To list available images, run `ibmcloud is images`. The default image is for an `f5-bigip` image in a demo account.|
45
48
46
49
### Optional values
47
50
Before you apply your template, you can customize the following default variable values.
48
51
49
52
|Variable Name|Description|Default Value|
50
53
|-------------|-----------|-------------|
54
+
|`ibmcloud_api_key`|[Temp hack] to workaround IBM IS Provider (Image Create) gap. The APIKey of the IBM Cloud account where resources will be provisioned.|`None`|
55
+
|`ibmcloud_vnf_svc_api_key`|The APIKey of the IBM Cloud NFV service account that is hosting the F5-BIGIP qcow2 image file.|`None`|
51
56
|`generation`|The VPC Generation to target. Valid values are 2 or 1..|`2`|
52
57
|`region`|The VPC Region that you want your VPC to be provisioned. To list available zones, run `ibmcloud is regions`.|`us-south`|
53
58
|`zone`|The VPC Zone that you want your VPC virtual servers to be provisioned. To list available zones, run `ibmcloud is zones`.|`us-south-1`|
54
-
|`vpc_name`|The name of your VPC to be provisioned.|`f5-bigip-1nic-demo-vpc`|
55
-
|`ssh_key_name`|The name of your public SSH key.|`f5-ssh-pub-ke`|
56
-
|`f5_vsi_name`|The name of your F5 Virtual Server to be provisioned.|`f5-bigip-1nic-demo-appliance`|
57
-
|`profile`|Enter the profile of compute CPU and memory resources that you want your VPC virtual servers to have. To list available profiles, run `ibmcloud is instance-profiles`.|`bx2-2x8`|
59
+
|`resource_group`|The resource group to use. If unspecified, the account's default resource group is used. To list available resource groups, run `ibmcloud resource groups`.|`Default`|
60
+
|`vpc_name`|The name of your VPC in which F5-BIGIP VSI is to be provisioned.|`None`|
61
+
|`ssh_key_name`|The name of your public SSH key to be used for F5-BIGIP VSI.|`None`|
62
+
|`f5_image_name`|The name of the F5 custom image to be provisioned in your IBM Cloud account.|`f5-bigip-15-0-1-0-0-11`|
63
+
|`f5_vsi_name`|The name of your F5 Virtual Server to be provisioned.|`f5-1arm-vsi`|
64
+
|`f5_profile`|Enter the profile of compute CPU and memory resources that you want your F5-BIGIP virtual servers to have. To list available profiles, run `ibmcloud is instance-profiles`.|`bx2-2x8`|
58
65
|`f5_license`|Optional: The BYOL license key that you want your F5 virtual server in a VPC to be used by registration flow during cloud-init.|`None`|
66
+
|`vnf_f5bigip_cos_instance_id`|Hidden: The COS instance-id hosting the F5-BIGIP qcow2 image.|`NA`|
67
+
|`vnf_f5bigip_cos_image_url`|The COS image object url for F5-BIGIP qcow2 image.|`NA`|
59
68
60
69
## Outputs
61
70
After you apply the template your VPC resources are successfully provisioned in IBM Cloud, you can review information such as the virtual server IP addresses and VPC identifiers in the Schematics log files, in the `Terraform SHOW` section.
71
+
72
+
|Variable Name|Description|Default Value|
73
+
|-------------|-----------|-------------|
74
+
|f5_admin_portal|Web url to interact with F5-BIGIP admin portal.|`None`|
0 commit comments