pre-commit pass
This commit is contained in:
parent
9ba96afab6
commit
41179983df
|
@ -1,6 +1,6 @@
|
|||
formatter: markdown table
|
||||
output:
|
||||
file: README.terraform.md
|
||||
mode: replace
|
||||
mode: inject
|
||||
sort:
|
||||
by: required
|
||||
|
|
|
@ -64,14 +64,11 @@ No modules.
|
|||
| <a name="input_oci_region"></a> [oci\_region](#input\_oci\_region) | The region for the OCI provider | `string` | n/a | yes |
|
||||
| <a name="input_tenancy_id"></a> [tenancy\_id](#input\_tenancy\_id) | The OCID of the tenancy | `string` | n/a | yes |
|
||||
| <a name="input_admin_create_credentials"></a> [admin\_create\_credentials](#input\_admin\_create\_credentials) | Types of credentials to create for the admin user | <pre>object({<br> api_key = bool<br> auth_token = bool<br> customer_key = bool<br> password = bool<br> })</pre> | <pre>{<br> "api_key": true,<br> "auth_token": false,<br> "customer_key": false,<br> "password": false<br>}</pre> | no |
|
||||
| <a name="input_attach_static_ip_to_flex"></a> [attach\_static\_ip\_to\_flex](#input\_attach\_static\_ip\_to\_flex) | Attach reserved static IP to flex instance | `bool` | `true` | no |
|
||||
| <a name="input_create_databases"></a> [create\_databases](#input\_create\_databases) | Create databases | `bool` | `true` | no |
|
||||
| <a name="input_create_instances"></a> [create\_instances](#input\_create\_instances) | Create compute instances types | <pre>object({<br> micro = bool<br> flex = bool<br> })</pre> | <pre>{<br> "flex": true,<br> "micro": true<br>}</pre> | no |
|
||||
| <a name="input_create_static_ip"></a> [create\_static\_ip](#input\_create\_static\_ip) | Create a reserved static IP | `bool` | `true` | no |
|
||||
| <a name="input_create_topics"></a> [create\_topics](#input\_create\_topics) | Create notification topics | `bool` | `true` | no |
|
||||
| <a name="input_create_vault"></a> [create\_vault](#input\_create\_vault) | Create vault | `bool` | `true` | no |
|
||||
| <a name="input_created_compute_ssh_key_algorithm"></a> [created\_compute\_ssh\_key\_algorithm](#input\_created\_compute\_ssh\_key\_algorithm) | The algorithm for the created SSH key if no key is provided | `string` | `"ED25519"` | no |
|
||||
| <a name="input_database_types"></a> [database\_types](#input\_database\_types) | Types of database workloads to create | `list(string)` | `[]` | no |
|
||||
| <a name="input_email_configuration"></a> [email\_configuration](#input\_email\_configuration) | values for email configuration | <pre>object({<br> email_domains = list(string)<br> approved_senders = list(string)<br> suppression_list = list(string)<br> })</pre> | <pre>{<br> "approved_senders": [],<br> "email_domains": [],<br> "suppression_list": []<br>}</pre> | no |
|
||||
| <a name="input_enable_email_delivery"></a> [enable\_email\_delivery](#input\_enable\_email\_delivery) | Create email delivery supporting configurations | `bool` | `true` | no |
|
||||
| <a name="input_enable_ipv6"></a> [enable\_ipv6](#input\_enable\_ipv6) | Enable IPv6 for the VCN | `bool` | `true` | no |
|
||||
|
@ -114,4 +111,4 @@ No modules.
|
|||
| <a name="output_vcn_cidr_blocks"></a> [vcn\_cidr\_blocks](#output\_vcn\_cidr\_blocks) | The CIDR block for the VCN |
|
||||
| <a name="output_vcn_ipv6_cidr_blocks"></a> [vcn\_ipv6\_cidr\_blocks](#output\_vcn\_ipv6\_cidr\_blocks) | The IPv6 CIDR block for the VCN |
|
||||
| <a name="output_vcn_ipv6_cidr_private_blocks"></a> [vcn\_ipv6\_cidr\_private\_blocks](#output\_vcn\_ipv6\_cidr\_private\_blocks) | The IPv6 CIDR block for the VCN |
|
||||
<!-- END_TF_DOCS -->
|
||||
<!-- END_TF_DOCS -->
|
||||
|
|
|
@ -53,7 +53,7 @@ resource "oci_core_instance" "compute" {
|
|||
lifecycle {
|
||||
ignore_changes = [
|
||||
# don't replace running instances when latest available image changes
|
||||
source_details.0.source_id
|
||||
source_details[0].source_id
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,11 +30,11 @@ locals {
|
|||
compute_availability_domains = {
|
||||
micro = !var.create_instances.micro ? [] : [
|
||||
for domain, value in data.oci_core_shapes.available :
|
||||
domain if contains(value.shapes.*.name, local.compute_shapes.micro)
|
||||
domain if contains(value.shapes[*].name, local.compute_shapes.micro)
|
||||
]
|
||||
flex = !var.create_instances.flex ? [] : [
|
||||
for domain, value in data.oci_core_shapes.available :
|
||||
domain if contains(value.shapes.*.name, local.compute_shapes.flex)
|
||||
domain if contains(value.shapes[*].name, local.compute_shapes.flex)
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
@ -115,27 +115,27 @@ variable "create_static_ip" {
|
|||
default = true
|
||||
}
|
||||
|
||||
variable "attach_static_ip_to_flex" {
|
||||
description = "Attach reserved static IP to flex instance"
|
||||
type = bool
|
||||
default = true
|
||||
}
|
||||
# variable "attach_static_ip_to_flex" {
|
||||
# description = "Attach reserved static IP to flex instance"
|
||||
# type = bool
|
||||
# default = true
|
||||
# }
|
||||
|
||||
variable "create_databases" {
|
||||
description = "Create databases"
|
||||
type = bool
|
||||
default = true
|
||||
}
|
||||
|
||||
variable "database_types" {
|
||||
description = "Types of database workloads to create"
|
||||
type = list(string)
|
||||
default = []
|
||||
validation {
|
||||
error_message = "database_types must be a list of 'OLTP', 'DW', 'AJD' or 'APEX'"
|
||||
condition = alltrue([for v in var.database_types : contains(["OLTP", "DW", "AJD", "APEX"], v)])
|
||||
}
|
||||
}
|
||||
# variable "create_databases" {
|
||||
# description = "Create databases"
|
||||
# type = bool
|
||||
# default = true
|
||||
# }
|
||||
#
|
||||
# variable "database_types" {
|
||||
# description = "Types of database workloads to create"
|
||||
# type = list(string)
|
||||
# default = []
|
||||
# validation {
|
||||
# error_message = "database_types must be a list of 'OLTP', 'DW', 'AJD' or 'APEX'"
|
||||
# condition = alltrue([for v in var.database_types : contains(["OLTP", "DW", "AJD", "APEX"], v)])
|
||||
# }
|
||||
# }
|
||||
|
||||
variable "enable_email_delivery" {
|
||||
description = "Create email delivery supporting configurations"
|
||||
|
|
Loading…
Reference in New Issue
Block a user