Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding doc generate fix #6

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs/resources/cm_deploy_f5os.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Resource used to Deploy New `BIG-IP-Next` Instance on F5OS platforms like rSerie
## Example Usage

```terraform
# example to deploy Next Instance in rSeries
resource "bigipnext_cm_deploy_f5os" "rseries01" {
f5os_provider = {
provider_name = "myrseries"
Expand All @@ -30,6 +31,27 @@ resource "bigipnext_cm_deploy_f5os" "rseries01" {
tenant_image_name = "BIG-IP-Next-20.1.0-2.279.0+0.0.18"
}
}

# example to deploy Next Instance in Velos
resource "bigipnext_cm_deploy_f5os" "velos01" {
f5os_provider = {
provider_name = "myvelos01"
provider_type = "velos"
}
instance = {
instance_hostname = "ravitestvelos01"
management_address = "10.xx.xxx.xxx"
management_prefix = 24
management_gateway = "10.xxx.xxx.xx"
management_user = "admin-cm"
management_password = "site02@123"
vlan_ids = [100]
slot_ids = [1]
tenant_deployment_file = "BIG-IP-Next-20.1.0-2.375.1+0.0.43.yaml"
tenant_image_name = "BIG-IP-Next-20.1.0-2.375.1+0.0.43"

}
}
```

<!-- schema generated by tfplugindocs -->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data "bigipnext_cm_device_inventory" "test" {}
5 changes: 5 additions & 0 deletions examples/provider/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
provider "bigipnext" {
username = "education"
password = "test123"
host = "http://localhost:19090"
}
41 changes: 41 additions & 0 deletions examples/resources/bigipnext_cm_as3_deploy/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
resource "bigipnext_cm_as3_deploy" "test" {
target_address = "10.xxx.xxx.xxx"
as3_json = <<EOT
{
"class": "ADC",
"schemaVersion": "3.45.0",
"id": "example-declaration-01",
"label": "Sample 1",
"remark": "Simple HTTP application with round robin pool",
"next-cm-tenant01": {
"class": "Tenant",
"next-cm-app01": {
"class": "Application",
"template": "http",
"serviceMain": {
"class": "Service_HTTP",
"virtualAddresses": [
"10.0.12.10"
],
"pool": "next-cm-pool01"
},
"next-cm-pool01": {
"class": "Pool",
"monitors": [
"http"
],
"members": [
{
"servicePort": 80,
"serverAddresses": [
"192.0.2.100",
"192.0.2.110"
]
}
]
}
}
}
}
EOT
}
8 changes: 8 additions & 0 deletions examples/resources/bigipnext_cm_certificate/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
resource "bigipnext_cm_certitficate" "test" {
name = "test"
cert_text = "-----BEGIN CERTIFICATE-----MIIFYjCCA0oCCQCEqd7Lp8dxVDANBgkqhkiG9w0BAQsFADBzMQswCQYDVQQGEwJSVTELMAkGA1UECAwCTFUxDjAMBgNVBAcMBVBhdGNoMQ8wDQYDVQQKDAZVcGRhdGUxDzANBgNVBAsMBlVwZGF0ZTELMAkGA1UEAwwCdXAxGDAWBgkqhkiG9w0BCQEWCWlwQHVwLmNvbTAeFw0yMzExMDMwNTUwNDNaFw0yNDExMDIwNTUwNDNaMHMxCzAJBgNVBAYTAlJVMQswCQYDVQQIDAJMVTEOMAwGA1UEBwwFUGF0Y2gxDzANBgNVBAoMBlVwZGF0ZTEPMA0GA1UECwwGVXBkYXRlMQswCQYDVQQDDAJ1cDEYMBYGCSqGSIb3DQEJARYJaXBAdXAuY29tMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA5M0EI59m0so215qeWFfalwikf0jlcKqiIdCsnRVml1RVgxUC3/CQrmkfot6UJKq62UITQlrIXPCt3eRERa5JuAxayducq0ygPxnE+qMGPb+C4vSuRnhQj9U8OmgPKp4OIidjkb2UJ1hLcqdMQzh4gyBTYUPoKYGHHIgQ/bTUq13zqaT/HtXdnO+OQmeyCuPaSPBU-----END CERTIFICATE-----"
key_text = "-----BEGIN ENCRYPTED PRIVATE KEY-----MIIJnzBJBgkqhkiG9w0BBQ0wPDAbBgkqhkiG9w0BBQwwDgQIqx+JNssqck0CAggAMB0GCWCGSAFlAwQBKgQQqw1PviHJvexXVB8ewne6GQSCCVA7Htfh73O1bmwh8Dkt2sjQXrDhSpLadDp35qMgUvcMvJFicxEfiX+/ON98//lIa9bbF0CN12jM1R0cmY24/6lYgMMgFpRSN2tIxOTcF2Q8pucxN8TZDZWC04kuMyJDTWUxmVOm2/yJGL4a4LH11ExHPkspeWviyUFv44vCIu/R4kfxjb+/dn6MzfiDNK4rS75YnpcvvsS4NHWxQLEFzr+bEMZq2YRWrZ3gHoiF53JHac2OKur/bIH0ylH6AzIkg2sPo+JFtWlu9SK1t9QQ6XNh/4O2ovnL3FiOp9JzKgGRgwRxwJm8jXHXec4AbkzAMYIcL6NmpBoXEIQBSP1lGoe3r6tj+E0MCM+51MilAfbY4wlyf7doTbZRjIWW7zxwA5sT275DDPl7DPXisdIijq6XjYXMPD5u1oxqRNbFRynNIly1JOwD5gKtd/Lcp3c8zXT3XRUzkfCudNjcqdIVu4zRdRmaPCCQmlkB1WBYNuzVtNCCGbSQSQfvfLyZs7LjLSkt/ZYVVUwySI+drF//DqF+NjL2RKjs1xibbrWv2sgW1Q==-----END ENCRYPTED PRIVATE KEY-----"
key_passphrase = "P@ss"
cert_passphrase = "P@ssss"
import_type = "PKCS12"
}
40 changes: 40 additions & 0 deletions examples/resources/bigipnext_cm_deploy_f5os/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# example to deploy Next Instance in rSeries
resource "bigipnext_cm_deploy_f5os" "rseries01" {
f5os_provider = {
provider_name = "myrseries"
provider_type = "rseries"
}
instance = {
instance_hostname = "rseriesravitest04"
management_address = "10.xxx.xxx.xxx"
management_prefix = 24
management_gateway = "10.xxx.xxx.xxx"
management_user = "admin-cm"
management_password = "F5test@123"
vlan_ids = [27, 28, 29]
tenant_deployment_file = "BIG-IP-Next-20.1.0-2.279.0+0.0.18.yaml"
tenant_image_name = "BIG-IP-Next-20.1.0-2.279.0+0.0.18"
}
}

# example to deploy Next Instance in Velos
resource "bigipnext_cm_deploy_f5os" "velos01" {
f5os_provider = {
provider_name = "myvelos01"
provider_type = "velos"
}
instance = {
instance_hostname = "ravitestvelos01"
management_address = "10.xx.xxx.xxx"
management_prefix = 24
management_gateway = "10.xxx.xxx.xx"
management_user = "admin-cm"
management_password = "site02@123"
vlan_ids = [100]
slot_ids = [1]
tenant_deployment_file = "BIG-IP-Next-20.1.0-2.375.1+0.0.43.yaml"
tenant_image_name = "BIG-IP-Next-20.1.0-2.375.1+0.0.43"

}
}

24 changes: 24 additions & 0 deletions examples/resources/bigipnext_cm_deploy_vmware/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
resource "bigipnext_cm_deploy_vmware" "vmware" {
vsphere_provider = {
provider_name = "myvsphere01"
content_library = "Contentlibrary"
cluster_name = "vSAN Cluster"
datacenter_name = "vpshere-7.0"
datastore_name = "xxxxxxx"
resource_pool_name = "xxxxxx"
vm_template_name = "BIG-IP-Next-20.0.1-2.139.10-0.0.136-VM-template"
}
instance = {
instance_hostname = "testecosyshydvm06"
mgmt_address = "10.xxx.xxx.xxxx"
mgmt_prefix = 24
mgmt_gateway = "10.xxx.xxx.xxx"
mgmt_network_name = "VM-mgmt"
mgmt_user = "admintest"
mgmt_password = "F5Test@123"
external_network_name = "LocalTestVLAN-115"
}
ntp_servers = ["0.us.pool.ntp.org"]
dns_servers = ["8.8.8.8"]
timeout = 1200
}
14 changes: 14 additions & 0 deletions examples/resources/bigipnext_cm_global_resiliency/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
resource "bigipnext_cm_global_resiliency" "sample4" {
name = "sample4"
dns_listener_name = "dln"
dns_listener_port = 10
protocols = ["tcp"]
instances = [
{
address = "10.145.71.115"
dns_listener_address = "2.2.2.3"
group_sync_address = "10.10.1.2/24"
hostname = "big-ip-next"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resource "bigipnext_cm_import_certitficate" "sample_cert" {
name = "sample_cert"
cert_text = "-----BEGIN CERTIFICATE-----\nMIIDZjCCAk6gAwIBAgIGAYuUWsPoMA0GCSqGSIb3DQEBDQUAMGoxCzAJBgNVBAYT\nAklOMRIwEAYDVQQIEwlIeWRlcmFiYWQxEjAQBgNVBAcTCVRlbGFuZ2FuYTEKMAgG\nA1UEChMBRjEMMAoGA1UECxMDSU5GMRkwFwYDVQQDExB3d3cuZXhhbXBsZTEuY29t\nMB4XDTIzMTEwMzA4NDQxOFoXDTI0MTEwMjA4NDQxOFowajELMAkGA1UEBhMCSU4x\nEjAQBgNVBAgTCUh5ZGVyYWJhZDESMBAGA1UEBxMJVGVsYW5nYW5hMQowCAYDVQQK\nEwFGMQwwCgYDVQQLEwNJTkYxGTAXBgNVBAMTEHd3dy5leGFtcGxlMS5jb20wggEi\nMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCnXg+hc28I3A6QDQUSgL3+1/6u\ndpriakWd8g4fQOT+2S5xuAQNq07SwJZiYMW2VAxjO3IvG6Vjg0zp5cqm0LtuxhFD\norXFDuSYGiItdy5yBTnNcIRZ8CBVY7HXtvo/TURv1u/PB63ArpI+TPgjEGl9LWsH\nSZamlTLI7YIeQPpUbUUroEBHoVxieoa6keFwrtfr2WqwMuO8sAMYux68Qcyi7X2M\nA+Imp8TxkqI7lfvRkix0aeAlE4Me1BugICvXVrR3rDd62jVxvEXITbaH4jCgFevF\nH0B79UPGLyJ4XTGov3LHQL86B2sv74H95A6fdPfDrkdCBcCg5tD0m8RaPzMBAgMB\nAAGjEjAQMA4GA1UdDwEB/wQEAwIFoDANBgkqhkiG9w0BAQ0FAAOCAQEAg+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lo01Z1eU9caAzEajG4DOC2be56tYGbNZGMHZN+lySuyZymui4HNHQj\n43dwR4ECgYEAx1xWQeYkv9ZAzAr0RFxm6v6Dp+qZbY7eMuOc7p3x+ZlMJ6uNNRiv\nf69vME+Kj/npW4HsTewByt9ygt0TvNNHfQ1q7BTSfCItQbMAQSjlWE6ukvSWJHV6\n60LVIm9dPvE4IGo4szP0kuj4V7C5lYdhq/fmNIYCMFn+foQjyUf56pkCgYEA1urU\nCQ5MI8nq76Eplx1a25hnQsKiQSJU2KUaBzzQqxMrJdZj+tJe/muQ8indnWTFRazI\nPPWwhf4+xCF7pP11Bgqbp+WrkP6b7SpUM4d2PPoJZRCK0+QpeknPZv83PmTgSBsO\nZxsJUr9haDeoj5XBg64DbnlTIVbvGoE4lndmdKkCgYAuzbTKf9d82jYYMTIrom3f\nGaWbFG600+fClsFPG/GlIaJJZfMe1g7NsUgvVV04c/mfLB9oI9I/6Lmfk3uAxzFv\nYGkLx8+qqPNrCzUyFwHQ+5fslFNzd8lF1kjnbrG7hzIgGg/5smbm3p7/J1RKkKAT\nmX2IMzXsWBRxa2BjbuxzcQKBgQCvxMh7S40r6/TP3K/mHiTz2fYB3KrUuF5J/OWH\nq85BS+ELBgco2KrGS3T1CRZtpj/M1x3A9XNUcvYkc/nqmzv9H+nj6+tgH0upMOhC\naHRkNF5AoMHZwA3ILNuKMgqdZeUkM7SY0LzURx9EG9ko7WKh7kxyKpm5d57/v1Vn\ngelyWQKBgDCNWzvHoRMzNQDYrod0W6Tb6npCwjHp2THTllj6lidaF8lb7SAwzOqr\nUByXENFnYnYax1RVWajsV0bJFSysyJVaoLTQ0AcESW1bCK8JPDlOv7cxI6RnBNVu\nK9KcbiJ9p1uUJQm62HbwYVEUNzWJXJgUL9bi+quY5YSoN9pdm4s5\n-----END RSA PRIVATE KEY-----\n"
}
14 changes: 14 additions & 0 deletions examples/resources/bigipnext_cm_next_ha/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
resource "bigipnext_cm_next_ha" "test" {
ha_name = "testnextha"
ha_ip = "10.xxx.xxx.xx"
active_node_ip = bigipnext_cm_deploy_vmware.vmware01.instance.mgmt_address
standby_node_ip = bigipnext_cm_deploy_vmware.vmware02.instance.mgmt_address
control_plane_vlan = "ha-cp-vlan"
control_plane_vlan_tag = 101
data_plane_vlan = "ha-dp-vlan"
data_plane_vlan_tag = 102
active_node_control_plane_ip = "10.xxx.xxx.xxx/xx"
standby_node_control_plane_ip = "10.xxx.xxx.xx/xx"
active_node_data_plane_ip = "10.xxx.xxx.xx/xx"
standby_node_data_plane_ip = "10.xxx.xxx.xxx/xx"
}
14 changes: 14 additions & 0 deletions examples/resources/bigipnext_cm_provider/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
resource "bigipnext_cm_provider" "vpshere" {
name = "testvpshereprovvm01"
address = "xxx70-vcenter.f5.com"
type = "VSPHERE"
username = "xxxxxxx"
password = "xxxxxxx"
}
resource "bigipnext_cm_provider" "rseries" {
name = "testrseriesprovvm01"
address = "10.1.1.80:443"
type = "RSERIES"
username = "xxxxxxx"
password = "xxxxxxxxx"
}