Capabilities provided by this repository have migrated to the ansible-middleware project.
This repository provides a set of generic roles and reusable playbooks for deploying JBoss Middleware and associated CI / CD tooling.
- Update group_vars/all/all.yml to reflect your environment
- Update inventory.yml to reflect your environment
- Run
ansible-galaxy install -r requirements.yml -p ./roles
to download required roles from galaxy.
We are currently working against ansible 2.5 pip
is the preferred installed method for now: pip install ansible==2.5
These playbooks and their required roles support a few different mechanisms for transferring the product zip files to the target host. You can set the variable transfer_method
to select the method, which can be set at multiple levels. The default is set in group vars.
This method uses the custom redhat_csp_download module to download the product binaries from the Red Hat Customer Portal. This requires network access from the target host to the Red Hat Customer Portal, but has the advantage of being fully automated. Each of the roles have sensible defaults already set.
The following variables are required:
rhn_username
rhn_password
This method requires you to download the product binaries from the Red Hat Customer Portal and then add them to the files directory. This has the benefit of supporting installs when the target host does have public internet connectivity, but requires a manual step before the playbook can be run. Each of the roles have sensible defaults already set, and the .gitignore will ignore .zip files.
The easiest way to provide the files to your role is to symlink them to the role_name/files directory. If you files are not named the same as the files on the customer portal, you can override the file name using the *_artifact_name
variables.
All of the roles are using some variation of Chris Meyer's incredible Travis CI, Docker and Ansible role testing method.
These playbooks require binaries from the Red Hat Customer Portal, so you'll need a valid subscription. Developers can get a $0 subscription through the Red Hat Developer Program.
We're trying to follow the OpenShift Ansible Best Practices