Skip to content

Commit

Permalink
Add Debian 9 and Ansible 2.5.1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Apr 19, 2018
1 parent cf2a131 commit 8a43bb0
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 26 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ python: "2.7"

env:
- ANSIBLE_VERSION=latest
- ANSIBLE_VERSION=2.5.1
- ANSIBLE_VERSION=2.5.0
- ANSIBLE_VERSION=2.4.4.0
- ANSIBLE_VERSION=2.4.3.0
Expand Down
7 changes: 7 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ boxes = [
:cpu => "50",
:ram => "256"
},
{
:name => "debian-9",
:box => "bento/debian-9",
:ip => '10.0.0.16',
:cpu => "50",
:ram => "256"
},
]

Vagrant.configure("2") do |config|
Expand Down
1 change: 1 addition & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ galaxy_info:
versions:
- wheezy
- jessie
- stretch
galaxy_tags:
- system
- monitoring
Expand Down
34 changes: 8 additions & 26 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,16 @@
# tasks file for percona-toolkit
---
- name: configure | generate (pt-deadlock-logger) script
- name: configure | generate scripts
template:
src: usr/local/bin/pt-deadlock-logger-wrapper.j2
dest: /usr/local/bin/pt-deadlock-logger-wrapper
src: "{{ item.lstrip('/') }}.j2"
dest: "{{ item }}"
owner: root
group: root
mode: 0750
validate: '/usr/bin/env bash -n %s'
with_items:
- /usr/local/bin/pt-deadlock-logger-wrapper
- /usr/local/bin/pt-heartbeat-wrapper
- /usr/local/bin/pt-table-checksum-wrapper
tags:
- percona-toolkit-configure-generate-pt-deadlock-logger-script

- name: configure | generate (pt-heartbeat) script
template:
src: usr/local/bin/pt-heartbeat-wrapper.j2
dest: /usr/local/bin/pt-heartbeat-wrapper
owner: root
group: root
mode: 0750
validate: '/usr/bin/env bash -n %s'
tags:
- percona-toolkit-configure-generate-pt-heartbeat-script

- name: configure | generate (pt-table-checksum) script
template:
src: usr/local/bin/pt-table-checksum-wrapper.j2
dest: /usr/local/bin/pt-table-checksum-wrapper
owner: root
group: root
mode: 0750
validate: '/usr/bin/env bash -n %s'
tags:
- percona-toolkit-configure-generate-pt-table-checksum-script
- percona-toolkit-configure-generate-scripts
13 changes: 13 additions & 0 deletions tasks/repository.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# tasks file for percona-toolkit
---
- name: repository | install | dependencies
apt:
name: "{{ item }}"
state: "{{ apt_install_state | default('latest') }}"
update_cache: true
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
with_items:
- dirmngr
when: ansible_distribution == 'Debian' and ansible_distribution_version | version_compare('9.0', '>=')
tags:
- percona-toolkit-repository-install
- percona-toolkit-repository-install-dependencies

- name: repository | add public key
apt_key:
id: 9334A25F8507EFA5
Expand Down

0 comments on commit 8a43bb0

Please sign in to comment.