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

Extend users and database module with additional options #534

Closed
wants to merge 2 commits into from
Closed

Extend users and database module with additional options #534

wants to merge 2 commits into from

Conversation

szEvEz
Copy link

@szEvEz szEvEz commented Dec 28, 2023

Add additional config options, like

  • mysql_login_user
  • mysql_login_host
  • mysql_login_password
  • mysql_ca_certificate

This also allows using this role for configuring users/databases for SaaS offerings, like Azure Database for MySQL. E.g.

- hosts: localhost
  vars:
    mysql_login_host: myazuredb.azure.net
    mysql_login_user: rootuser
    mysql_login_password: secret
    mysql_ca_cert: path/to/my/cert.pem
  tasks:
    - include_role:
        name: geerlingguy.mysql
        tasks_from: "{{ item }}"
      loop:
        - users
        - databases

- Add additional config options, like

- login_user
- login_host
- login_password
- ca_certificate

This also allows using this role for configuring users/databases for
SaaS offerings, like Azure Database for MySQL. E.g.

```yaml
- hosts: localhost
  vars:
    mysql_login_host: myazuredb.azure.net
    mysql_login_user: rootuser
    mysql_login_password: secret
    mysql_ca_cert: path/to/my/cert.pem
  tasks:
    - include_role:
        name: geerlingguy.mysql
        tasks_from: "{{ item }}"
      loop:
        - users
        - databases
```
@szEvEz szEvEz closed this Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant