jmeter
ansible-role-jmeter
=========
Table Of Contents
About
Ansible role to install Apache Jmeter with plugins
Requirements
Supported OS:
- Ubuntu
- bionic
- xenial
- Debian
- stretch
- Amazon Linux 2
- Red Hat
- 7
- 8
- CentOS
- 7
- 8
Minimal Ansible version:
- 2.8
Dependencies
Java 8
You can use any version you like - OpenJDK or Oracle SE Java. It can be installed manually or using ansible roles like this:
Role Parameters
Quicklist: jmeter_version, jmeter_binaries_url, jmeter_checksum, jmeter_checksum_url, jmeter_config_properties, jmeter_package, jmeter_root_path, jmeter_report_path, jmeter_path, jmeter_plugins, jmeter_plugins_install, jmeter_plugins_manager_action, jmeter_plugins_manager_version, jmeter_cmdrunner_version, jmeter_tmp_folder
jmeter_version
- help: Version of Jmeter to install (e.g.
5.2.1
). If not defined explicitly, the latest available version will be installed. - default: undefined
jmeter_binaries_url
- help: Root url to get jmeter binaries from. You can redefine it to alternative mirror if you like.
- default:
https://archive.apache.org/dist/jmeter/binaries
jmeter_checksum
- help: Checksum to validate downloaded binary. Default value is taken from Apache repository specified by
jmeter_checksum_url
. - default:
{{ lookup('url', jmeter_checksum_url).split()[0] }}
jmeter_checksum_url
- help: Link to checksum url to validate downloaded binary.
- default:
https://archive.apache.org/dist/jmeter/binaries/{{ jmeter_package }}.sha512
jmeter_config_properties
help: List of dictionaries with configuration properties. You can specify different configuration files by
name
key and corresponding parameters byproperties
key with list of dictionaries.default:
{'name': 'upgrade'}
{'name': 'system'}
{'name': 'jmeter'}
{'name': 'reportgenerator'}
{'name': 'saveservice'}
{'name': 'user'}
For example:
jmeter_config_properties:
- name: system
properties:
- key: networkaddress.cache.negative.ttl
value: 10
- key: javax.net.debug
value: ssl
jmeter_package
- help: Jmeter archive name to download and install.
- default:
apache-jmeter-{{ jmeter_version }}.tgz
jmeter_root_path
- help: Folder where Jmeter subfolder is placed.
- default:
/opt
jmeter_report_path
- help: Path to folder with generated reports.
- default:
{{ jmeter_root_path }}/reports
jmeter_path
- help: Jmeter home folder path.
- default:
{{ jmeter_root_path }}/apache-jmeter-{{ jmeter_version }}
jmeter_plugins
- help: List of Jmeter plugins to be installed.
- default: []
jmeter_plugins_install
- help: Controls option to install additional plugins. If
true
- plugins manager will be installed. Then additional plugins will be installed specified byjmeter_plugins
list variable. - default:
false
jmeter_plugins_manager_action
- help: Jmeter plugin manager action to perform. Available options "install", "install-all-except", "uninstall".
- default:
install
jmeter_plugins_manager_version
- help: Plugin manager library version.
- default:
latest
jmeter_cmdrunner_version
- help: Java library 'cmdrunner' version.
- default:
latest
jmeter_tmp_folder
- help: Folder to store downloaded files during installation.
- default:
/tmp
Installation
ansible-galaxy install lean_delivery.jmeter
Example Playbook
- name: Install Java and Jmeter
hosts: all
roles:
- role: lean_delivery.java
java_distribution: openjdk
java_major_version: 8
transport: repositories
java_tarball_install: false
- role: lean_delivery.jmeter
jmeter_plugins_install: true
jmeter_plugins:
- jpgc-casutg
- jpgc-tst
- jpgc-functions
- jpgc-dummy
License
Apache
Author Information
Lean Delivery Team team@lean-delivery.com
ansible-galaxy install lean-delivery/ansible-role-jmeter