Skip to content

Commit 8a43bb0

Browse files
committed
Add Debian 9 and Ansible 2.5.1 support
1 parent cf2a131 commit 8a43bb0

File tree

5 files changed

+30
-26
lines changed

5 files changed

+30
-26
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ python: "2.7"
77

88
env:
99
- ANSIBLE_VERSION=latest
10+
- ANSIBLE_VERSION=2.5.1
1011
- ANSIBLE_VERSION=2.5.0
1112
- ANSIBLE_VERSION=2.4.4.0
1213
- ANSIBLE_VERSION=2.4.3.0

Vagrantfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ boxes = [
3939
:cpu => "50",
4040
:ram => "256"
4141
},
42+
{
43+
:name => "debian-9",
44+
:box => "bento/debian-9",
45+
:ip => '10.0.0.16',
46+
:cpu => "50",
47+
:ram => "256"
48+
},
4249
]
4350

4451
Vagrant.configure("2") do |config|

meta/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ galaxy_info:
1616
versions:
1717
- wheezy
1818
- jessie
19+
- stretch
1920
galaxy_tags:
2021
- system
2122
- monitoring

tasks/configure.yml

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,16 @@
11
# tasks file for percona-toolkit
22
---
3-
- name: configure | generate (pt-deadlock-logger) script
3+
- name: configure | generate scripts
44
template:
5-
src: usr/local/bin/pt-deadlock-logger-wrapper.j2
6-
dest: /usr/local/bin/pt-deadlock-logger-wrapper
5+
src: "{{ item.lstrip('/') }}.j2"
6+
dest: "{{ item }}"
77
owner: root
88
group: root
99
mode: 0750
1010
validate: '/usr/bin/env bash -n %s'
11+
with_items:
12+
- /usr/local/bin/pt-deadlock-logger-wrapper
13+
- /usr/local/bin/pt-heartbeat-wrapper
14+
- /usr/local/bin/pt-table-checksum-wrapper
1115
tags:
12-
- percona-toolkit-configure-generate-pt-deadlock-logger-script
13-
14-
- name: configure | generate (pt-heartbeat) script
15-
template:
16-
src: usr/local/bin/pt-heartbeat-wrapper.j2
17-
dest: /usr/local/bin/pt-heartbeat-wrapper
18-
owner: root
19-
group: root
20-
mode: 0750
21-
validate: '/usr/bin/env bash -n %s'
22-
tags:
23-
- percona-toolkit-configure-generate-pt-heartbeat-script
24-
25-
- name: configure | generate (pt-table-checksum) script
26-
template:
27-
src: usr/local/bin/pt-table-checksum-wrapper.j2
28-
dest: /usr/local/bin/pt-table-checksum-wrapper
29-
owner: root
30-
group: root
31-
mode: 0750
32-
validate: '/usr/bin/env bash -n %s'
33-
tags:
34-
- percona-toolkit-configure-generate-pt-table-checksum-script
16+
- percona-toolkit-configure-generate-scripts

tasks/repository.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# tasks file for percona-toolkit
22
---
3+
- name: repository | install | dependencies
4+
apt:
5+
name: "{{ item }}"
6+
state: "{{ apt_install_state | default('latest') }}"
7+
update_cache: true
8+
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
9+
with_items:
10+
- dirmngr
11+
when: ansible_distribution == 'Debian' and ansible_distribution_version | version_compare('9.0', '>=')
12+
tags:
13+
- percona-toolkit-repository-install
14+
- percona-toolkit-repository-install-dependencies
15+
316
- name: repository | add public key
417
apt_key:
518
id: 9334A25F8507EFA5

0 commit comments

Comments
 (0)