test: use personal docker registry

This commit is contained in:
Adrien Waksberg 2024-05-07 08:59:48 +02:00
parent 5eb6a71466
commit 0efdcb045e
3 changed files with 30 additions and 30 deletions

View file

@ -23,6 +23,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
- chore: use FQCN for module name - chore: use FQCN for module name
- fix: replace no_log to loop label - fix: replace no_log to loop label
- test: use personal docker registry
## v2.0.1 - 2020-03-28 ## v2.0.1 - 2020-03-28

View file

@ -1,36 +1,35 @@
# Ansible role: MariaDB # Ansible role: MariaDB
[![Version](https://img.shields.io/badge/latest_version-2.1.0-green.svg)](https://git.yaegashi.fr/nishiki/ansible-role-mariadb/releases) [![Version](https://img.shields.io/badge/latest_version-2.1.0-green.svg)](https://code.waks.be/nishiki/ansible-role-mariadb/releases)
[![Build Status](https://travis-ci.org/nishiki/ansible-role-mariadb.svg?branch=master)](https://travis-ci.org/nishiki/ansible-role-mariadb) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://code.waks.be/nishiki/ansible-role-mariadb/src/branch/master/LICENSE)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://git.yaegashi.fr/nishiki/ansible-role-mariadb/src/branch/master/LICENSE)
Install and configure MariaDB Install and configure MariaDB
## Requirements ## Requirements
* Ansible >= 2.9 - Ansible >= 2.9
* Debian - Debian
* Bullseye - Bullseye
* Bookworm - Bookworm
## Role variables ## Role variables
| Name | Type | Required |Default | Comment | | Name | Type | Required | Default | Comment |
|---------------------------------|-------|----------|--------|----------------------------------------| | ------------------------------- | ----- | -------- | ------- | -------------------------------------- |
| mariadb_use_official_repository | bool | no | true | use the official repository | | mariadb_use_official_repository | bool | no | true | use the official repository |
| mariadb_branch | str | no | 10.3 | the branch version to install | | mariadb_branch | str | no | 10.3 | the branch version to install |
| mariadb_user | str | no | root | login to connect on mariadb | | mariadb_user | str | no | root | login to connect on mariadb |
| mariadb_password | str | yes | | password to connect on mariadb | | mariadb_password | str | yes | | password to connect on mariadb |
| mariadb_master | bool | no | false | the server is master | | mariadb_master | bool | no | false | the server is master |
| mariadb_autorestart | bool | no | false | restart mariadb when the config change | | mariadb_autorestart | bool | no | false | restart mariadb when the config change |
| mariadb_users | array | no | | the users to manage | | mariadb_users | array | no | | the users to manage |
| mariadb_databases | array | no | | the databases to manage | | mariadb_databases | array | no | | the databases to manage |
| mariadb_config | hash | no | | extra options for configuration | | mariadb_config | hash | no | | extra options for configuration |
### mariadb_users ### mariadb_users
| Name | Type | Required |Default | Comment | | Name | Type | Required | Default | Comment |
|------------|-------|----------|---------|-----------------------------------------------------------| | ---------- | ----- | -------- | ------- | --------------------------------------------------------- |
| name | str | yes | | the username | | name | str | yes | | the username |
| host | str | yes | | the mysql user host | | host | str | yes | | the mysql user host |
| password | str | yes | | the user password | | password | str | yes | | the user password |
@ -50,10 +49,10 @@ Example:
### mariadb_databases ### mariadb_databases
| Name | Type | Required |Default | Comment | | Name | Type | Required | Default | Comment |
|------------|-------|----------|---------|-----------------------------------------------------------| | ----- | ---- | -------- | ------- | -------------------------------------------- |
| name | str | yes | | the dabase name | | name | str | yes | | the dabase name |
| state | str | no | present | if state is `absent` the database is deleted | | state | str | no | present | if state is `absent` the database is deleted |
Example: Example:
@ -86,7 +85,7 @@ Example:
- 'myappli.*:ALL' - 'myappli.*:ALL'
mariadb_databases: mariadb_databases:
- name: myappli - name: myappli
mariadb_config: mariadb_config:
server-id: 1 server-id: 1
bind-address: 0.0.0.0 bind-address: 0.0.0.0
roles: roles:
@ -97,10 +96,10 @@ Example:
### Test with molecule and docker ### Test with molecule and docker
* install [docker](https://docs.docker.com/engine/installation/) - install [docker](https://docs.docker.com/engine/installation/)
* install `python3` and `python3-pip` - install `python3` and `python3-pip`
* install molecule and dependencies `pip3 install molecule molecule-docker docker ansible-lint pytest-testinfra yamllint` - install molecule and dependencies `pip3 install molecule molecule-docker docker ansible-lint pytest-testinfra yamllint`
* run `molecule test` - run `molecule test`
## License ## License

View file

@ -3,7 +3,7 @@ driver:
name: docker name: docker
platforms: platforms:
- name: debian12 - name: debian12
image: nishiki/debian12:molecule image: code.waks.be/nishiki/molecule:debian12
privileged: true privileged: true
volumes: volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw - /sys/fs/cgroup:/sys/fs/cgroup:rw