Skip to content

Commit abdbea9

Browse files
authored
Merge pull request #11 from Oefenweb/consistency-changes
Consistency changes
2 parents 1dcbbab + 2cb8c34 commit abdbea9

File tree

10 files changed

+56
-33
lines changed

10 files changed

+56
-33
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,13 @@ jobs:
4444
fail-fast: false
4545
matrix:
4646
include:
47-
- distro: debian10
4847
- distro: debian11
4948
- distro: debian12
50-
- distro: ubuntu1604
51-
ansible-version: '>=2.10, <2.11'
52-
- distro: ubuntu1604
5349
- distro: ubuntu1804
50+
ansible-version: '>=9, <10'
5451
- distro: ubuntu2004
52+
- distro: ubuntu2204
53+
- distro: ubuntu2404
5554

5655
steps:
5756
- name: Check out the codebase
@@ -65,8 +64,8 @@ jobs:
6564
python-version: '3.x'
6665

6766
- name: Install test dependencies
68-
run: pip install 'ansible${{ matrix.ansible-version }}' molecule[docker] docker
69-
67+
run: |
68+
pip install 'ansible${{ matrix.ansible-version }}' molecule-plugins[docker] docker
7069
- name: Run Molecule tests
7170
run: |
7271
molecule test

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Manage [percona-toolkit](https://www.percona.com/software/mysql-tools/percona-to
99

1010
* `software-properties-common` (will be installed)
1111
* `dirmngr` (will be installed)
12+
* `apt-transport-https` (will be installed)
1213

1314
#### Variables
1415

Vagrantfile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44
role = File.basename(File.expand_path(File.dirname(__FILE__)))
55

66
boxes = [
7-
{
8-
:name => "ubuntu-1604",
9-
:box => "bento/ubuntu-16.04",
10-
:ip => '10.0.0.12',
11-
:cpu => "50",
12-
:ram => "256"
13-
},
147
{
158
:name => "ubuntu-1804",
169
:box => "bento/ubuntu-18.04",
@@ -23,14 +16,21 @@ boxes = [
2316
:box => "bento/ubuntu-20.04",
2417
:ip => '10.0.0.14',
2518
:cpu => "50",
26-
:ram => "384"
19+
:ram => "512"
2720
},
2821
{
29-
:name => "debian-10",
30-
:box => "bento/debian-10",
31-
:ip => '10.0.0.18',
22+
:name => "ubuntu-2204",
23+
:box => "bento/ubuntu-22.04",
24+
:ip => '10.0.0.15',
3225
:cpu => "50",
33-
:ram => "256"
26+
:ram => "512"
27+
},
28+
{
29+
:name => "ubuntu-2404",
30+
:box => "bento/ubuntu-24.04",
31+
:ip => '10.0.0.16',
32+
:cpu => "50",
33+
:ram => "512"
3434
},
3535
{
3636
:name => "debian-11",
@@ -44,7 +44,7 @@ boxes = [
4444
:box => "bento/debian-12",
4545
:ip => '10.0.0.20',
4646
:cpu => "50",
47-
:ram => "256"
47+
:ram => "384"
4848
},
4949
]
5050

meta/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ galaxy_info:
1010
platforms:
1111
- name: Ubuntu
1212
versions:
13-
- xenial
1413
- bionic
1514
- focal
15+
- jammy
16+
- noble
1617
- name: Debian
1718
versions:
18-
- buster
1919
- bullseye
2020
- bookworm
2121
galaxy_tags:

molecule/default/collections.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
---
22
collections:
3-
- name: community.docker
4-
version: '>=1.2.0,<2'
53
- name: community.general
64
version: '>=2,<3'

tasks/configure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
dest: "{{ item }}"
77
owner: root
88
group: root
9-
mode: 0750
9+
mode: '0750'
1010
validate: '/usr/bin/env bash -n %s'
1111
with_items:
1212
- /usr/local/bin/pt-deadlock-logger-wrapper

tasks/repository.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,39 @@
11
# tasks file
22
---
3-
- name: repository | install | dependencies (pre)
3+
- name: repository | install dependencies (pre)
44
ansible.builtin.apt:
55
name: "{{ percona_toolkit_dependencies_pre }}"
66
state: "{{ apt_install_state | default('latest') }}"
77
update_cache: true
88
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
99
tags:
10-
- percona-toolkit-repository-install
1110
- percona-toolkit-repository-install-dependencies
1211

13-
- name: repository | add public key
12+
- name: repository | (keyrings) directory | create
13+
ansible.builtin.file:
14+
path: "{{ percona_toolkit_keyring_dst | dirname }}"
15+
state: directory
16+
owner: root
17+
group: root
18+
mode: '0755'
19+
tags:
20+
- percona-toolkit-repository-keyrings-directory-create
21+
22+
- name: repository | (keyring) file | download
1423
ansible.builtin.apt_key:
15-
id: 9334A25F8507EFA5
24+
id: "{{ percona_toolkit_keyring_id }}"
1625
keyserver: "{{ apt_key_keyserver | default('keyserver.ubuntu.com') }}"
26+
keyring: "{{ percona_toolkit_keyring_dst }}"
1727
state: present
1828
tags:
19-
- percona-toolkit-repository-public-key
29+
- percona-toolkit-repository-keyring-file-download
2030

2131
- name: repository | add
2232
ansible.builtin.apt_repository:
2333
repo: "{{ item.type }} {{ item.url }} {{ item.component }}"
24-
state: present
34+
state: "{{ item.state | default('present') }}"
2535
update_cache: true
36+
mode: '0644'
2637
with_items: "{{ percona_toolkit_repositories }}"
2738
tags:
2839
- percona-toolkit-repository-add
@@ -33,6 +44,6 @@
3344
dest: /etc/apt/preferences.d/00percona.pref
3445
owner: root
3546
group: root
36-
mode: 0644
47+
mode: '0644'
3748
tags:
3849
- percona-toolkit-repository-apt-pin

tests/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# test file
22
---
3-
- hosts: localhost
3+
- name: converge
4+
hosts: localhost
45
connection: local
56
become: true
67
roles:

tests/vagrant.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# test file
22
---
3-
- hosts: all
3+
- name: converge
4+
hosts: all
45
remote_user: vagrant
56
become: true
67
roles:

vars/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
# vars file
22
---
3+
percona_toolkit_keyring_id: 9334A25F8507EFA5
4+
percona_toolkit_keyring_dst: /usr/share/keyrings/percona.gpg
5+
36
percona_toolkit_repositories:
7+
- type: "deb [signed-by={{ percona_toolkit_keyring_dst }}]"
8+
url: "http://repo.percona.com/tools/apt {{ ansible_distribution_release }}"
9+
component: main
10+
- type: "deb-src [signed-by={{ percona_toolkit_keyring_dst }}]"
11+
url: "http://repo.percona.com/tools/apt {{ ansible_distribution_release }}"
12+
component: main
413
- type: deb
514
url: "http://repo.percona.com/tools/apt {{ ansible_distribution_release }}"
615
component: main
16+
state: absent
717
- type: deb-src
818
url: "http://repo.percona.com/tools/apt {{ ansible_distribution_release }}"
919
component: main
20+
state: absent
1021

1122
percona_toolkit_dependencies_pre:
1223
- software-properties-common
1324
- dirmngr
25+
- apt-transport-https
1426

1527
percona_toolkit_dependencies:
1628
- percona-toolkit

0 commit comments

Comments
 (0)