From 0efdcb045ee841d49f2cd3c2ab8a282353aae1ad Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Tue, 7 May 2024 08:59:48 +0200 Subject: [PATCH] test: use personal docker registry --- CHANGELOG.md | 1 + README.md | 57 +++++++++++++++++------------------ molecule/default/molecule.yml | 2 +- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2751cce..47f5957 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/) - chore: use FQCN for module name - fix: replace no_log to loop label +- test: use personal docker registry ## v2.0.1 - 2020-03-28 diff --git a/README.md b/README.md index e23d8bf..92022a5 100644 --- a/README.md +++ b/README.md @@ -1,36 +1,35 @@ # 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) -[![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://git.yaegashi.fr/nishiki/ansible-role-mariadb/src/branch/master/LICENSE) +[![Version](https://img.shields.io/badge/latest_version-2.1.0-green.svg)](https://code.waks.be/nishiki/ansible-role-mariadb/releases) +[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://code.waks.be/nishiki/ansible-role-mariadb/src/branch/master/LICENSE) Install and configure MariaDB ## Requirements -* Ansible >= 2.9 -* Debian - * Bullseye - * Bookworm +- Ansible >= 2.9 +- Debian + - Bullseye + - Bookworm ## Role variables -| Name | Type | Required |Default | Comment | -|---------------------------------|-------|----------|--------|----------------------------------------| -| mariadb_use_official_repository | bool | no | true | use the official repository | -| mariadb_branch | str | no | 10.3 | the branch version to install | -| mariadb_user | str | no | root | login to connect on mariadb | -| mariadb_password | str | yes | | password to connect on mariadb | -| mariadb_master | bool | no | false | the server is master | -| mariadb_autorestart | bool | no | false | restart mariadb when the config change | -| mariadb_users | array | no | | the users to manage | -| mariadb_databases | array | no | | the databases to manage | -| mariadb_config | hash | no | | extra options for configuration | +| Name | Type | Required | Default | Comment | +| ------------------------------- | ----- | -------- | ------- | -------------------------------------- | +| mariadb_use_official_repository | bool | no | true | use the official repository | +| mariadb_branch | str | no | 10.3 | the branch version to install | +| mariadb_user | str | no | root | login to connect on mariadb | +| mariadb_password | str | yes | | password to connect on mariadb | +| mariadb_master | bool | no | false | the server is master | +| mariadb_autorestart | bool | no | false | restart mariadb when the config change | +| mariadb_users | array | no | | the users to manage | +| mariadb_databases | array | no | | the databases to manage | +| mariadb_config | hash | no | | extra options for configuration | ### mariadb_users -| Name | Type | Required |Default | Comment | -|------------|-------|----------|---------|-----------------------------------------------------------| +| Name | Type | Required | Default | Comment | +| ---------- | ----- | -------- | ------- | --------------------------------------------------------- | | name | str | yes | | the username | | host | str | yes | | the mysql user host | | password | str | yes | | the user password | @@ -50,10 +49,10 @@ Example: ### mariadb_databases -| Name | Type | Required |Default | Comment | -|------------|-------|----------|---------|-----------------------------------------------------------| -| name | str | yes | | the dabase name | -| state | str | no | present | if state is `absent` the database is deleted | +| Name | Type | Required | Default | Comment | +| ----- | ---- | -------- | ------- | -------------------------------------------- | +| name | str | yes | | the dabase name | +| state | str | no | present | if state is `absent` the database is deleted | Example: @@ -86,7 +85,7 @@ Example: - 'myappli.*:ALL' mariadb_databases: - name: myappli - mariadb_config: + mariadb_config: server-id: 1 bind-address: 0.0.0.0 roles: @@ -97,10 +96,10 @@ Example: ### Test with molecule and docker -* install [docker](https://docs.docker.com/engine/installation/) -* install `python3` and `python3-pip` -* install molecule and dependencies `pip3 install molecule molecule-docker docker ansible-lint pytest-testinfra yamllint` -* run `molecule test` +- install [docker](https://docs.docker.com/engine/installation/) +- install `python3` and `python3-pip` +- install molecule and dependencies `pip3 install molecule molecule-docker docker ansible-lint pytest-testinfra yamllint` +- run `molecule test` ## License diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 01ec0a4..04725cc 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -3,7 +3,7 @@ driver: name: docker platforms: - name: debian12 - image: nishiki/debian12:molecule + image: code.waks.be/nishiki/molecule:debian12 privileged: true volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw