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
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,10 @@ module "mysql-db" {
37
37
sku_name = "GP_Gen5_16"
38
38
storage_mb = 5120
39
39
version = "5.7"
40
+
# default admin user `sqladmin` and can be specified as per the choice here
41
+
# by default random password created by this module. required password can be specified here
42
+
admin_username = "sqladmin"
43
+
admin_password = "H@Sh1CoR3!"
40
44
# Database name, charset and collection arguments
41
45
database_name = "demomysqldb"
42
46
charset = "utf8"
@@ -105,6 +109,12 @@ module "mysql-db" {
105
109
}
106
110
```
107
111
112
+
## Default Local Administrator and the Password
113
+
114
+
This module utilizes __`sqladmin`__ as a local administrator on MySQL server. If you want to you use custom username, then specify the same by setting up the argument `admin_username` with a valid user string.
115
+
116
+
By default, this module generates a strong password for MySQL server also allows you to change the length of the random password (currently 24) using the `random_password_length` variable. If you want to set the custom password, specify the argument `admin_password` with a valid string.
117
+
108
118
## `mysql_setttings` - Setting up your MySQL Server
109
119
110
120
This object helps you setup desired MySQL server and support following arguments.
@@ -237,6 +247,9 @@ An effective naming convention assembles resource names by using important resou
237
247
`admin_password`|The Password which should be used for the local-administrator on this SQL Server|string|`null`
238
248
`identity`|If you want your SQL Server to have an managed identity. Defaults to false|string|`false`
239
249
`mysqlserver_settings`|MySQL server settings|object({})|`{}`
250
+
`create_mode`|The creation mode. Can be used to restore or replicate existing servers. Possible values are `Default`, `Replica`, `GeoRestore`, and `PointInTimeRestore`|string|`Default`
251
+
`creation_source_server_id`|For creation modes other than `Default`, the source server ID to use|string|`null`
252
+
`restore_point_in_time`|When `create_mode` is `PointInTimeRestore`, specifies the point in time to restore from `creation_source_server_id`|string|`null`
240
253
`storage_account_name`|The name of the storage account name|string|`null`
241
254
`enable_threat_detection_policy`|Threat detection policy configuration, known in the API as Server Security Alerts Policy|string|`false`
242
255
`email_addresses_for_alerts`|Account administrators email for alerts|`list(any)`|`""`
description="The creation mode. Can be used to restore or replicate existing servers. Possible values are `Default`, `Replica`, `GeoRestore`, and `PointInTimeRestore`. Defaults to `Default`"
72
+
default="Default"
73
+
}
74
+
75
+
variable"creation_source_server_id" {
76
+
description="For creation modes other than `Default`, the source server ID to use."
77
+
default=null
78
+
}
79
+
80
+
variable"restore_point_in_time" {
81
+
description="When `create_mode` is `PointInTimeRestore`, specifies the point in time to restore from `creation_source_server_id`"
82
+
default=null
83
+
}
84
+
70
85
variable"storage_account_name" {
71
86
description="The name of the storage account name"
0 commit comments