-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.yaml
94 lines (86 loc) · 3.57 KB
/
README.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
#
# This is the canonical configuration for the `README.md`
# Run `make readme` to rebuild the `README.md`
#
# Name of this project
name: Terraform AZURE FLEXIBLE MYSQL
# License of this project
license: "APACHE"
# Canonical GitHub repo
github_repo: clouddrove/terraform-azure-flexible-mysql
# Badges to display
badges:
- name: "Terraform"
image: "https://img.shields.io/badge/Terraform-v1.1.7-green"
url: "https://www.terraform.io"
- name: "Licence"
image: "https://img.shields.io/badge/License-APACHE-blue.svg"
url: "LICENSE.md"
# description of this project
description: |-
Terraform module to create flexible-mysql resource on AZURE.
# extra content
include:
- "terraform.md"
# How to use this project
# yamllint disable rule:line-length
usage: |-
### Simple Example
Here is an example of how you can use this module in your inventory structure:
```hcl
module "flexible-mysql" {
source = "clouddrove/flexible-mysql/azure"
name = "app"
environment = "test"
label_order = ["environment", "name"]
resource_group_name = module.resource_group.resource_group_name
location = module.resource_group.resource_group_location
virtual_network_id = module.vnet.vnet_id[0]
delegated_subnet_id = module.subnet.default_subnet_id[0]
mysql_version = "8.0.21"
mysql_server_name = "testmysqlserver"
private_dns = true
zone = "1"
admin_username = "mysqlusername"
admin_password = "ba5yatgfgfhdsv6A3ns2lu4gqzzc"
sku_name = "GP_Standard_D8ds_v4"
db_name = "maindb"
charset = "utf8"
collation = "utf8_unicode_ci"
server_configuration_name = "interactive_timeout"
auto_grow_enabled = true
iops = 360
size_gb = "20"
}
```
##for mysql replication
```hcl
module "flexible-mysql" {
source = "clouddrove/flexible-mysql/azure"
name = "app"
environment = "test"
label_order = ["environment", "name"]
main_rg_name = data.azurerm_resource_group.main.name
resource_group_name = module.resource_group.resource_group_name
location = module.resource_group.resource_group_location
virtual_network_id = module.vnet.vnet_id[0]
delegated_subnet_id = module.subnet.default_subnet_id[0]
mysql_version = "8.0.21"
mysql_server_name = "testmysqlserver"
zone = "1"
admin_username = "mysqlusern"
admin_password = "ba5yatgfgfhdsvvc6A3ns2lu4gqzzc"
sku_name = "GP_Standard_D8ds_v4"
db_name = "maindb"
charset = "utf8"
collation = "utf8_unicode_ci"
server_configuration_name = "interactive_timeout"
auto_grow_enabled = true
iops = 360
size_gb = "20"
existing_private_dns_zone = true
existing_private_dns_zone_id = data.azurerm_private_dns_zone.main.id
existing_private_dns_zone_name = data.azurerm_private_dns_zone.main.name
}
```