soapui
Ansible Role: SOAPUI Community Edition
Role to install the SoapUI CE without JDK.
Requirements
Ansible >= 2.8.0
Linux Distribution
Debian Family
Ubuntu
- Bionic (18.04)
- Focal (20.04)
Debian
- Stretch (9)
- Buster (10)
RedHat Family
UBI
- 8
Fedora
- 31
SUSE Family
openSUSE
- 15.1
Note: other versions are likely to work but have not been tested.
Role Variables
The following variables will change the behavior of this role (default values are shown below):
# SOAPUI Version to download and unpack
soapui_version: '5.7.0'
# Download url for SoapUI tarball
soapui_download_url: 'http://dl.eviware.com/soapuios/{{ soapui_version }}'
# Base installation directory
soapui_install_dir: '/opt/soapui/{{ soapui_version }}'
# Directory to store files downloaded for SoapUI installation
soapui_download_dir: "{{ x_ansible_download_dir | default(ansible_env.HOME + '/.ansible/tmp/downloads') }}"
Supported SoapUI Versions
The following versions of SoapUI are supported without any additional configuration
- 5.7.0
- 5.6.1
- 5.6.0
- 5.5.0
- 5.2.1
- 5.2.0
- 5.1.3
- 5.1.2
- 5.0.0
- 4.6.4
Example Playbook
Installs latest version from SoapUI
- hosts: servers
roles:
- role: arolfes.soapui
You can install a specific version of SoapUI by specifying the soapui_version.
- hosts: servers
roles:
- role: arolfes.soapui
soapui_version: '4.6.4'
You can change the java_home for all soapui *.sh files
- hosts: servers
roles:
- role: arolfes.soapui
soapui_version: '4.6.4'
soapui_java_home: /opt/java
This will add a new line to each shell file in {{ soapui_install_dir }}/bin
Content of the new line PATH=/opt/java/bin:$PATH
With this simple approach you can have multiple JDKs and SoapUI uses that one related for it.
Remember: This role doesn't provide a java runtime to execute SoapUI and it hasn't a dependency. This example installs a jdk and the latest version from SoapUI.
- hosts: servers
roles:
- role: gantsign.java
java_version: '8'
java_is_default_installation: yes
- role: arolfes.soapui
Role Facts
This role exports the following Ansible facts for use by other roles:
ansible_local.soapui.general.version
- e.g.
5.7.0
- e.g.
ansible_local.soapui.general.home
- e.g.
/opt/soapui/5.7.0
- e.g.
Development & Testing
This project uses Molecule to aid in the development and testing; the role is unit tested using Testinfra and pytest.
To develop or test you'll need to have installed the following:
Because the above can be tricky to install, this project includes Molecule Wrapper. Molecule Wrapper is a shell script that installs Molecule and it's dependencies (apart from Linux) and then executes Molecule with the command you pass it.
To test this role using Molecule Wrapper run the following command from the project root:
./moleculew test
Note: some of the dependencies need sudo
permission to install.
License
MIT
Author Information
Alexander Rolfes
ansible-galaxy install arolfes/ansible-role-soapui