Commit Graph

36 Commits

Author SHA1 Message Date
szEvEz 956e4d5608 Introduce login_user and login_password for user and database creation 2024-05-14 16:51:03 +02:00
Faustin Lammler d64d60a325
Bad task description 2023-11-23 12:43:11 +01:00
Faustin Lammler f7c3a8f2e5
Make the role compatible with Alpine linux
Should be compatible with:
- 3.17
- 3.18
2023-09-26 18:16:09 +02:00
Faustin Lammler 2d52c863e2
Codename trixie is now in sid docker images 2023-07-18 09:50:34 +02:00
Faustin Lammler 59f23af3ae
The pgp version of the key is now available too 2023-05-16 12:32:03 +02:00
Faustin Lammler 7a4af14b8e
Typo, as recommended by Debian wiki
See: https://wiki.debian.org/DebianRepository/UseThirdParty
2023-05-16 12:06:05 +02:00
Faustin Lammler e25e32b384
Bookworm is not GA
Bookworm is not GA yet but MDBF provides sid packages and can be used to
test bookworm/sid containers.
2023-05-16 12:05:28 +02:00
Faustin Lammler f566ef588b
Typos and no-changed-when ansible-lint rules 2023-03-01 16:04:09 +01:00
jo 0766f242f2
Add deb822 sources for mariadb repository
See:
- https://repolib.readthedocs.io/en/latest/deb822-format.html
- https://wiki.debian.org/DebianRepository/UseThirdParty
2022-12-16 16:23:31 +01:00
jo 2fe30b3116
Enable signed-by in debian repository source.list 2022-12-16 16:19:21 +01:00
jo 86e436f161
Fix sid distribution release repositories
On Debian sid, ansible collected the following facts:
  "ansible_distribution": "Debian",
  "ansible_distribution_major_version": "n/a",
  "ansible_distribution_release": "bookworm",
  "ansible_distribution_version": "n/a",

While on debian bullseye (current stable), it collected:
  "ansible_distribution": "Debian",
  "ansible_distribution_major_version": "11",
  "ansible_distribution_release": "bullseye",
  "ansible_distribution_version": "11.5",

We assume that sid will never have a distribution version, so we
set the distribution release to 'sid'.
2022-12-16 16:17:40 +01:00
Faustin Lammler 6a809f373a
get_url module always detect a change in checkmode
See: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/get_url_module.html:
2022-11-09 10:27:39 +01:00
jo d09bc65a6d Refactor when: mariadb_use_official_repo in a block 2022-10-14 12:47:20 +02:00
Faustin Lammler c64038d6d9
Implement MDBF cluster deployment
Add a new CI task to deploy MDBF MariaDB versions in a cluster.
2022-10-14 10:45:18 +02:00
Faustin Lammler a7989e042d
Remove master namming 2022-10-12 18:56:15 +02:00
Faustin Lammler 904a107ae1
Add cluster testing in CI (close #26) 2022-10-12 18:55:53 +02:00
Faustin Lammler 32dba5411d
Lint with latest ansible-lint version 2022-10-12 11:20:37 +02:00
Faustin Lammler 90c31bf3c2
Add rhel based distro support
Move from testinfra to ansible verifier.
2022-10-11 18:14:23 +02:00
Faustin Lammler 4eeaaa139c
Don't use apt-key that is deprecated
Also, make sure that source.list file only contains one line (this
renders version upgrades easier).
2022-10-06 12:22:08 +02:00
Faustin Lammler acb31fb98c
Drop python2 support 2022-09-07 10:42:50 +02:00
Faustin Lammler ccc50d76a3
Make new version of ansible-lint happy 2022-08-25 17:38:31 +02:00
Faustin Lammler 654b620409
Update pre-commit action and versions 2022-06-10 10:02:38 +02:00
Faustin Lammler 6a83d518c2
Increase test coverage for MDBF versions 2022-06-08 11:40:19 +02:00
Faustin Lammler ed5a3fbd94
Ansible linting 2022-03-24 15:27:41 +01:00
TheGuyDanish 10f6628036 Ansible 2.12 compatibility
Changed Python identification variable, fixes #15.
Replaced deprecated terms in replication tasks.
Removed hard-coded interpreter variable from tests.
2022-02-03 11:42:54 +00:00
Faustin Lammler e19b7b0365
Upgrading mariadb recreate my.cnf symlink
Upgrading mariadb will recreate my.cnf symlink so it's better to use
mariadb.cnf as the default configuration file.

+ add skip-name-resolve option by default
+ logging option was ignored

squash

s
2021-06-25 11:32:56 +02:00
Faustin Lammler deefe6f4dd
fixup! Fix wrong MariaDB repo URL on Ubuntu 2021-05-25 16:39:05 +02:00
Faustin Lammler d6b1829482
Fix wrong MariaDB repo URL on Ubuntu
Closes: https://github.com/fauust/ansible-role-mariadb/issues/11
2021-05-25 13:08:11 +02:00
Faustin Lammler 1e2020d920
Upgrade molecule 2021-02-06 14:50:30 +01:00
Faustin Lammler 2afe6b9c4b
Add an option for cron loggin
Add an option to decide what output we want from cron.
2020-11-30 18:01:49 +01:00
Faustin Lammler 2cf069db27
Pre-task ignored in docker/podman context
For CI to pass, it's better to always apt-get cache.
2020-11-04 12:16:13 +01:00
Faustin Lammler 54bff54e45
Apply babafou review
- useless use of double quotes;
- missing task name;
- loop replaces with_items;
- use import_tasks instead of include_tasks
  see:
  https://www.reddit.com/r/ansible/comments/8rrybk/why_choosing_import_over_include_is_it_faster/e0txxoy/
  https://docs.ansible.com/ansible/2.5/porting_guides/porting_guide_2.5.html#dynamic-includes-and-attribute-inheritance
2020-06-25 12:43:02 +02:00
Faustin Lammler 42f4733163
Use a fixed filename for mariadb repository source list
By default, ansible adds a source list file name based on the repository
source url. Using a fixed file name permits to change mirror without
duplicating source list files.

See: https://docs.ansible.com/ansible/latest/modules/apt_repository_module.html
2020-05-28 23:08:16 +02:00
Faustin Lammler d1cdf270c6
Remove slave statement when possible
See: https://jira.mariadb.org/browse/MDEV-18777
2020-05-28 22:49:08 +02:00
Faustin Lammler e46b74521b
Default variable already defined 2020-05-27 16:03:09 +02:00
Faustin Lammler 12ebef99b1
Import role from old project
- lots of improvements and simplifications.
2020-05-27 14:49:07 +02:00