-
Notifications
You must be signed in to change notification settings - Fork 334
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
azure_rm_mysqldatabase and azure_rm_postgresqldatabase collation and charset not working. #749
Comments
I see a similar issue when I run the collection. It doen't set the charset. See the ansible code and log below. You can see the charset value is being skipped. Anisble code:
Log: TASK [azure : Create keycloak Database] ****************************************************************************************************************************************************** |
@Vitals9367 Sorry for not replying you in time. The API of azure_rm_sqldatabase. py currently only supports the parameter 'collation', but does not support charset. You can refer to the Settings below. 'azure_rm_postgresqldatabase.py', I will reply and fix it as soon as possible. Thank you very much!
|
fixes by #917 |
fixes by #884 |
SUMMARY
Ansible does not set collation and charset in Azure. Azure just uses default database server options.
Ansible playbook config:
azure.azcollection.azure_rm_mysqldatabase:
resource_group: "{{ resource_group }}"
server_name: "{{ mysql_name }}"
name: "{{ servicedb_name }}"
collation: utf8_swedish_ci
charset: utf8
azure.azcollection.azure_rm_postgresqldatabase:
resource_group: "{{ resource_group }}"
server_name: "{{ postgresql_name }}"
name: "{{ servicedb_name }}"
charset: utf8
collation: fi-FI
Output in logs:
"invocation": {
"module_args": {
"ad_user": null,
"adfs_authority_url": null,
"api_profile": "latest",
"auth_source": "auto",
"cert_validation_mode": null,
"charset": "utf8",
"client_id": null,
"cloud_environment": "AzureCloud",
"collation": "utf8_swedish_ci",
"force_update": true,
"log_mode": null,
"log_path": null,
"name": "test-collation-ansible3",
"password": null,
"profile": null,
"secret": null,
"state": "present",
"subscription_id": null,
"tenant": null
}
},
"name": "test-collation-ansible3"
In Azure:
...
ISSUE TYPE
COMPONENT NAME
azure.azcollection.azure_rm_mysqldatabase and azure_rm_postgresqldatabase
ANSIBLE VERSION
The text was updated successfully, but these errors were encountered: