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
Copy file name to clipboardExpand all lines: README.md
+19-5
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Virtual Server for Virtual Private Cloud using Custom Image
1
+
# F5-BIGIP Virtual Server for Virtual Private Cloud using Custom Image
2
2
3
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).
4
4
@@ -10,6 +10,11 @@ With this template, you can use IBM Cloud Schematics to create F5-BIGIP virtual
10
10
* This is a poc work.
11
11
*[Bring your F5 Custom Image](https://cloud.ibm.com/docs/vpc-on-classic-vsi?topic=vpc-on-classic-vsi-images#custom-images)
12
12
13
+
**Must have IBM IS Terraform Provider fixes**:
14
+
* Provide `data source for ibm_login_target` that would provide some key information from provider session (example: account-id)
15
+
* Provide `resource for ibm_is_image` - IS Image create, update, delete
16
+
* Catalog offering Deployment variable must provide way to mark some variable sensitive (example: vendor svc account apikey)
17
+
13
18
## Costs
14
19
15
20
When you apply template, the infrastructure resources that you create incur charges as follows. To clean up the resources, you can [delete your Schematics workspace or your instance](https://cloud.ibm.com/docs/schematics?topic=schematics-manage-lifecycle#destroy-resources). Removing the workspace or the instance cannot be undone. Make sure that you back up any data that you must keep before you start the deletion process.
@@ -41,21 +46,30 @@ Fill in the following values, based on the steps that you completed before you b
41
46
|Variable Name|Description|
42
47
|-------------|-----------|
43
48
|`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
49
46
50
### Optional values
47
51
Before you apply your template, you can customize the following default variable values.
48
52
49
53
|Variable Name|Description|Default Value|
50
54
|-------------|-----------|-------------|
55
+
|`ibmcloud_api_key`|[Temp hack] to workaround IBM IS Provider gap. The APIKey of the IBM Cloud account where resources will be provisioned.|`None`|
56
+
|`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
57
|`generation`|The VPC Generation to target. Valid values are 2 or 1..|`2`|
52
58
|`region`|The VPC Region that you want your VPC to be provisioned. To list available zones, run `ibmcloud is regions`.|`us-south`|
53
59
|`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`|
60
+
|`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`|
61
+
|`vpc_name`|The name of your VPC to be provisioned.|`f5-1arm-vpc`|
62
+
|`ssh_key_name`|The name of your public SSH key.|`f5-sshkey`|
63
+
|`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`|
64
+
|`f5_vsi_name`|The name of your F5 Virtual Server to be provisioned.|`f5-1arm-vsi`|
57
65
|`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`|
58
66
|`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`|
67
+
|`vnf_f5bigip_cos_instance_id`|Hidden: The COS instance-id hosting the F5-BIGIP qcow2 image.|`NA`|
68
+
|`vnf_f5bigip_cos_image_url`|The COS image object url for F5-BIGIP qcow2 image.|`NA`|
59
69
60
70
## Outputs
61
71
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.
72
+
73
+
|Variable Name|Description|Default Value|
74
+
|-------------|-----------|-------------|
75
+
|f5_admin_portal|Web url to interact with F5-BIGIP admin portal.|`None`|
description="Temp Hack to workaround IBM IS Provider gap. The APIKey of the IBM Cloud account where resources will be provisioned."
7
+
}
8
+
9
+
variable"ibmcloud_vnf_svc_api_key" {
10
+
default=""
11
+
description="The APIKey of the IBM Cloud NFV service account that is hosting the F5-BIGIP qcow2 image file."
12
+
}
5
13
6
14
variable"region" {
7
-
default="us-south"
15
+
default="us-south"
8
16
description="The VPC Region that you want your VPC, networks and the F5 virtual server to be provisioned in. To list available regions, run `ibmcloud is regions`."
9
17
}
10
18
11
19
variable"generation" {
12
-
default=2
20
+
default=2
13
21
description="The VPC Generation to target. Valid values are 2 or 1."
14
22
}
15
23
24
+
variable"resource_group" {
25
+
default="Default"
26
+
description="The resource group to use. If unspecified, the account's default resource group is used."
description="The COS instance-id hosting the F5-BIGIP qcow2 image."
4
+
}
5
+
variable"vnf_f5bigip_cos_image_url" {
6
+
default=""
7
+
description="The COS image object url for F5-BIGIP qcow2 image."
8
+
}
9
+
1
10
variable"zone" {
2
-
default="us-south-1"
11
+
default="us-south-1"
3
12
description="The VPC Zone that you want your VPC networks and virtual servers to be provisioned in. To list available zones, run `ibmcloud is zones`."
4
13
}
5
14
6
15
variable"vpc_name" {
7
-
default="f5-bigip-1nic-demo-vpc"
16
+
default="f5-1arm-vpc"
8
17
description="The name of your VPC to be provisioned."
9
18
}
10
19
11
20
variable"ssh_public_key" {
12
-
default=""
21
+
default=""
13
22
description="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."
description="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."
30
+
variable"f5_image_name" {
31
+
default="f5-bigip-15-0-1-0-0-11"
32
+
description="The name of the F5 custom image to be provisioned in your IBM Cloud account."
24
33
}
25
34
26
35
variable"f5_vsi_name" {
27
-
default="f5-bigip-1nic-demo-appliance"
36
+
default="f5-1arm-vsi"
28
37
description="The name of your F5 Virtual Server to be provisioned."
29
38
}
30
39
31
40
variable"profile" {
32
-
default="bx2-2x8"
41
+
default="bx2-2x8"
33
42
description="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`."
34
43
}
35
44
36
45
variable"f5_license" {
37
-
default=""
46
+
default=""
38
47
description="Optional. The BYOL license key that you want your F5 virtual server in a VPC to be used by registration flow during cloud-init."
0 commit comments