arolfes.soapui

Ansible Role: SOAPUI Community Edition

Build Status Ansible Galaxy License

This role installs SoapUI CE without the Java Development Kit (JDK).

Requirements

  • Ansible version 2.8.0 or higher

  • Linux System

    • 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 may work but have not been tested.

Role Variables

These variables can change how this role works (default values are shown below):

# SOAPUI Version to download
soapui_version: '5.7.0'

# Download URL for SoapUI
soapui_download_url: 'http://dl.eviware.com/soapuios/{{ soapui_version }}'

# Directory where SoapUI will be installed
soapui_install_dir: '/opt/soapui/{{ soapui_version }}'

# Directory to store downloaded files for SoapUI installation
soapui_download_dir: "{{ x_ansible_download_dir | default(ansible_env.HOME + '/.ansible/tmp/downloads') }}"

Supported SoapUI Versions

You can use the following versions of SoapUI without extra setup:

  • 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

To install the latest version of SoapUI:

- hosts: servers
  roles:
     - role: arolfes.soapui

To install a specific version, change the soapui_version:

- hosts: servers
  roles:
     - role: arolfes.soapui
       soapui_version: '4.6.4'

To change the Java home for SoapUI scripts:

- hosts: servers
  roles:
     - role: arolfes.soapui
       soapui_version: '4.6.4'
       soapui_java_home: /opt/java

This adds a line to each script file in {{ soapui_install_dir }}/bin: PATH=/opt/java/bin:$PATH With this setup, you can have multiple JDKs and SoapUI will use the correct one.

Important: This role does not include a Java runtime for running SoapUI and has no dependencies. To install both a JDK and the latest SoapUI version:

- hosts: servers
  roles:
    - role: gantsign.java
      java_version: '8'
      java_is_default_installation: yes
    - role: arolfes.soapui

Role Facts

This role provides the following Ansible facts for other roles to use:

  • ansible_local.soapui.general.version

    • e.g. 5.7.0
  • ansible_local.soapui.general.home

    • e.g. /opt/soapui/5.7.0

Development & Testing

This project uses Molecule for development and testing. It is also tested with Testinfra and pytest.

To develop or test you need:

To make installation easier, this project includes Molecule Wrapper. It is a script that installs Molecule and its dependencies (except for Linux) and then runs Molecule with your command.

To test this role using Molecule Wrapper, run this command from the project root:

./moleculew test

Note: Some dependencies may need sudo permissions to install.

License

MIT

Author Information

Alexander Rolfes

Informazioni sul progetto

Role for installing SoapUI.

Installa
ansible-galaxy install arolfes.soapui
Licenza
mit
Download
2.7k
Proprietario