├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── amq7.1-rhel7.yml ├── amq7.2-rhel7.yml ├── ansible.cfg ├── bpms6.3-eap6.4-centos7-copy.yml ├── bpms6.3-eap6.4-centos7-csp.yml ├── eap7.1-centos7.yml ├── eap7.1-rhel7.yml ├── eap7.2-rhel7.yml ├── fuse6.2-centos7-copy.yml ├── fuse6.2-centos7-csp.yml ├── fuse6.2-rhel7.yml ├── group_vars └── all │ └── all.yml ├── inventory ├── jdg-6.6.0-rhel7.yml ├── requirements.yml ├── sso7.2-rhel7.yml └── tests └── yamllint.yml /.gitignore: -------------------------------------------------------------------------------- 1 | *.retry 2 | roles 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | language: python 4 | python: 5 | - "2.7" 6 | # command to install dependencies 7 | install: 8 | - pip install -U pip 9 | - pip --version 10 | - pip install ansible==2.4 ansible-lint yamllint flake8 11 | - ansible-lint --version 12 | - yamllint --version 13 | - flake8 --version 14 | 15 | # command to run tests 16 | script: 17 | - ansible-galaxy install -r requirements.yml -p ./roles 18 | - | 19 | for PLAYBOOK in *.yml 20 | do 21 | if [ "$PLAYBOOK" != "requirements.yml" ]; then 22 | ansible-playbook $PLAYBOOK --syntax-check 23 | fi 24 | done 25 | - yamllint -s -c tests/yamllint.yml $(find . -mindepth 1 -maxdepth 1 -name '*.yml') 26 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DEPRECATED - This repository is no longer maintained 2 | 3 | **Capabilities provided by this repository have migrated to the [ansible-middleware](https://github.com/ansible-middleware) project.** 4 | 5 | # ansible-middleware-playbooks [![Build Status](https://travis-ci.org/redhat-cop/ansible-middleware-playbooks.svg)](https://travis-ci.org/redhat-cop/ansible-middleware-playbooks) 6 | 7 | ## Purpose 8 | 9 | This repository provides a set of generic roles and reusable playbooks for deploying JBoss Middleware and associated CI / CD tooling. 10 | 11 | ## Getting Started 12 | 13 | 1. Update group_vars/all/all.yml to reflect your environment 14 | 2. Update inventory.yml to reflect your environment 15 | 3. Run `ansible-galaxy install -r requirements.yml -p ./roles` to download required roles from galaxy. 16 | 17 | ## Roles Used By These Playbooks 18 | 19 | 1. [JBoss Common](https://github.com/redhat-cop/ansible-role-jboss-common) 20 | 2. [JBoss EAP](https://github.com/redhat-cop/jboss_eap) 21 | 3. [JBoss BxMS](https://github.com/redhat-cop/jboss_bxms) 22 | 4. [JBoss Fuse](https://github.com/redhat-cop/jboss_fuse) 23 | 5. [JBoss AMQ](https://github.com/redhat-cop/jboss_amq) 24 | 6. [JBoss Datagrid](https://github.com/redhat-cop/jboss_datagrid) 25 | 26 | ## Ansible Install and Version 27 | We are currently working against ansible 2.5 `pip` is the preferred installed method for now: `pip install ansible==2.5` 28 | 29 | ## Transfer Methods 30 | 31 | 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](group_vars/all/all.yml). 32 | 33 | ### csp-to-host 34 | This method uses the [custom redhat_csp_download module](https://github.com/sabre1041/redhat-csp-download) to download the product binaries from the [Red Hat Customer Portal](https://access.redhat.com/downloads/). 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. 35 | 36 | The following variables are required: 37 | - `rhn_username` 38 | - `rhn_password` 39 | 40 | ### copy-from-controller 41 | This method requires you to download the product binaries from the [Red Hat Customer Portal](https://access.redhat.com/downloads/) 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. 42 | 43 | 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. 44 | 45 | ## CI and Testing 46 | 47 | All of the roles are using some variation of [Chris Meyer's](https://github.com/chrismeyersfsu) incredible [Travis CI, Docker and Ansible role testing method](https://www.ansible.com/blog/testing-ansible-roles-with-docker). 48 | 49 | ## Red Hat Subscriptions 50 | 51 | These playbooks require binaries from the [Red Hat Customer Portal](https://access.redhat.com/downloads/), so you'll need a valid subscription. Developers can get a $0 subscription through the [Red Hat Developer Program](http://developers.redhat.com/products/eap/download/). 52 | 53 | 54 | ## Best Practices 55 | 56 | We're trying to follow the [OpenShift Ansible Best Practices](https://github.com/openshift/openshift-ansible/blob/master/docs/best_practices_guide.adoc) 57 | 58 | ## Relevant Links 59 | 60 | [Ansible roles](http://docs.ansible.com/ansible/playbooks_roles.html "Ansible Roles") 61 | -------------------------------------------------------------------------------- /amq7.1-rhel7.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - hosts: jboss_amq_rhel_hosts 4 | become_user: "{{ ansible_rhel_user }}" 5 | become: true 6 | gather_facts: true 7 | 8 | # Set capabilities to install 9 | vars: 10 | role_install_broker: true 11 | role_install_interconnect: false 12 | 13 | vars_prompt: 14 | - name: "rhn_username" 15 | prompt: "Enter Your Red Hat Customer Portal Username" 16 | private: no 17 | 18 | - name: "rhn_password" 19 | prompt: "Enter Your Red Hat Customer Portal Password" 20 | private: yes 21 | 22 | roles: 23 | - role: redhat-cop.jboss_common 24 | - role: redhat-cop.jboss_amq 25 | -------------------------------------------------------------------------------- /amq7.2-rhel7.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - hosts: jboss_amq_rhel_hosts 4 | become_user: "{{ ansible_rhel_user }}" 5 | become: true 6 | gather_facts: true 7 | 8 | # Set capabilities to install 9 | vars: 10 | role_install_broker: true 11 | role_install_interconnect: false 12 | 13 | vars_prompt: 14 | - name: "rhn_username" 15 | prompt: "Enter Your Red Hat Customer Portal Username" 16 | private: no 17 | 18 | - name: "rhn_password" 19 | prompt: "Enter Your Red Hat Customer Portal Password" 20 | private: yes 21 | 22 | roles: 23 | - role: redhat-cop.jboss_common 24 | - role: redhat-cop.jboss_amq 25 | -------------------------------------------------------------------------------- /ansible.cfg: -------------------------------------------------------------------------------- 1 | [defaults] 2 | transport=paramiko -------------------------------------------------------------------------------- /bpms6.3-eap6.4-centos7-copy.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - hosts: jboss_bxms_eap_centos_hosts 4 | become_user: "{{ ansible_rhel_user }}" 5 | become: true 6 | gather_facts: true 7 | 8 | vars: 9 | transfer_method: copy-from-controller 10 | 11 | roles: 12 | - redhat-cop.jboss_common 13 | - redhat-cop.jboss_eap 14 | - redhat-cop.jboss_bxms 15 | -------------------------------------------------------------------------------- /bpms6.3-eap6.4-centos7-csp.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - hosts: jboss_bxms_eap_centos_hosts 4 | become_user: "{{ ansible_centos_user }}" 5 | become: true 6 | gather_facts: true 7 | 8 | vars: 9 | transfer_method: csp-to-host 10 | 11 | vars_prompt: 12 | - name: "rhn_username" 13 | prompt: "Enter Your Red Hat Customer Portal Username" 14 | private: no 15 | 16 | - name: "rhn_password" 17 | prompt: "Enter Your Red Hat Customer Portal Password" 18 | private: yes 19 | 20 | roles: 21 | - redhat-cop.jboss_common 22 | - redhat-cop.jboss_eap 23 | - redhat-cop.jboss_bxms 24 | -------------------------------------------------------------------------------- /eap7.1-centos7.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - hosts: jboss_eap_centos_hosts 4 | become_user: "{{ ansible_centos_user }}" 5 | become: true 6 | gather_facts: true 7 | 8 | vars_prompt: 9 | - name: "rhn_username" 10 | prompt: "Enter Your Red Hat Customer Portal Username" 11 | private: no 12 | 13 | - name: "rhn_password" 14 | prompt: "Enter Your Red Hat Customer Portal Password" 15 | private: yes 16 | 17 | roles: 18 | - redhat-cop.jboss_common 19 | - redhat-cop.jboss_eap 20 | -------------------------------------------------------------------------------- /eap7.1-rhel7.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - hosts: jboss_eap_rhel_hosts 4 | become_user: "{{ ansible_rhel_user }}" 5 | become: true 6 | gather_facts: true 7 | 8 | vars_prompt: 9 | - name: "rhn_username" 10 | prompt: "Enter Your Red Hat Customer Portal Username" 11 | private: no 12 | 13 | - name: "rhn_password" 14 | prompt: "Enter Your Red Hat Customer Portal Password" 15 | private: yes 16 | 17 | vars: 18 | app_url: http://people.redhat.com/~rpelisse/simple-webapp.war 19 | app: /tmp/simple-webapp.war 20 | ansible_distribution: RedHat 21 | ansible_os_family: RedHat 22 | ansible_pkg_mgr: yum 23 | jboss_home: /opt/jboss-as/jboss-eap-7.1/ 24 | 25 | collections: 26 | - wildfly.jcliff 27 | 28 | roles: 29 | - redhat-cop.jboss_common 30 | - redhat-cop.jboss_eap 31 | - jcliff 32 | 33 | tasks: 34 | - name: "Download a demo app to deploy" 35 | get_url: 36 | url: "{{ app_url }}" 37 | dest: "{{ app }}" 38 | 39 | - jcliff: 40 | wfly_home: "{{ jboss_home }}" 41 | timeout: 7000 42 | subsystems: 43 | - system_props: 44 | - name: jcliff.enabled 45 | value: 'enabled.plus' 46 | - deployments: 47 | - name: simple-webapp 48 | path: /tmp/simple-webapp.war 49 | - datasources: 50 | - name: ExampleDS2 51 | use_java_context: 'true' 52 | jndi_name: java:jboss/datasources/ExampleDS2 53 | connection_url: "jdbc:h2:mem:test2;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE" 54 | driver_name: h2 55 | 56 | - name: "Restart Wildfly" 57 | command: "{{ jboss_home }}/bin/jboss-cli.sh --connect --command=':reload'" 58 | register: cli_result 59 | -------------------------------------------------------------------------------- /eap7.2-rhel7.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - hosts: jboss_eap_rhel_hosts 4 | become_user: "{{ ansible_rhel_user }}" 5 | become: true 6 | gather_facts: true 7 | 8 | vars_prompt: 9 | - name: "rhn_username" 10 | prompt: "Enter Your Red Hat Customer Portal Username" 11 | private: no 12 | 13 | - name: "rhn_password" 14 | prompt: "Enter Your Red Hat Customer Portal Password" 15 | private: yes 16 | 17 | vars: 18 | app_url: http://people.redhat.com/~rpelisse/simple-webapp.war 19 | app: /tmp/simple-webapp.war 20 | ansible_distribution: RedHat 21 | ansible_os_family: RedHat 22 | ansible_pkg_mgr: yum 23 | jboss_home: /opt/jboss-as/jboss-eap-7.2/ 24 | 25 | collections: 26 | - wildfly.jcliff 27 | 28 | roles: 29 | - redhat-cop.jboss_common 30 | - redhat-cop.jboss_eap 31 | - jcliff 32 | 33 | tasks: 34 | - name: "Download a demo app to deploy" 35 | get_url: 36 | url: "{{ app_url }}" 37 | dest: "{{ app }}" 38 | 39 | - jcliff: 40 | wfly_home: "{{ jboss_home }}" 41 | timeout: 7000 42 | subsystems: 43 | - system_props: 44 | - name: jcliff.enabled 45 | value: 'enabled.plus' 46 | - deployments: 47 | - name: simple-webapp 48 | path: /tmp/simple-webapp.war 49 | - datasources: 50 | - name: ExampleDS2 51 | use_java_context: 'true' 52 | jndi_name: java:jboss/datasources/ExampleDS2 53 | connection_url: "jdbc:h2:mem:test2;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE" 54 | driver_name: h2 55 | 56 | - name: "Restart Wildfly" 57 | command: "{{ jboss_home }}/bin/jboss-cli.sh --connect --command=':reload'" 58 | register: cli_result 59 | -------------------------------------------------------------------------------- /fuse6.2-centos7-copy.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - hosts: jboss_fuse_centos_hosts 4 | become_user: "{{ ansible_centos_user }}" 5 | become: true 6 | gather_facts: true 7 | 8 | vars: 9 | transfer_method: copy-from-controller 10 | 11 | roles: 12 | - redhat-cop.jboss_common 13 | - redhat-cop.jboss_fuse 14 | -------------------------------------------------------------------------------- /fuse6.2-centos7-csp.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - hosts: jboss_fuse_centos_hosts 4 | become_user: "{{ ansible_centos_user }}" 5 | become: true 6 | gather_facts: true 7 | 8 | vars_prompt: 9 | - name: "rhn_username" 10 | prompt: "Enter Your Red Hat Customer Portal Username" 11 | private: no 12 | 13 | - name: "rhn_password" 14 | prompt: "Enter Your Red Hat Customer Portal Password" 15 | private: yes 16 | 17 | roles: 18 | - redhat-cop.jboss_common 19 | - redhat-cop.jboss_fuse 20 | -------------------------------------------------------------------------------- /fuse6.2-rhel7.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - hosts: jboss_fuse_rhel_hosts 4 | become_user: "{{ ansible_rhel_user }}" 5 | become: true 6 | gather_facts: true 7 | 8 | vars_prompt: 9 | - name: "rhn_username" 10 | prompt: "Enter Your Red Hat Customer Portal Username" 11 | private: no 12 | 13 | - name: "rhn_password" 14 | prompt: "Enter Your Red Hat Customer Portal Password" 15 | private: yes 16 | 17 | roles: 18 | - redhat-cop.jboss_common 19 | - redhat-cop.jboss_fuse 20 | -------------------------------------------------------------------------------- /group_vars/all/all.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # it may make sense to provide these at the host vars level 3 | ansible_centos_user: rhel 4 | 5 | ansible_rhel_user: root 6 | 7 | # Java 8 recommended 8 | # Full JDK (not just JRE) recommended. See https://access.redhat.com/solutions/18259 9 | eap_java_pkg_name: java-1.8.0-openjdk-devel 10 | 11 | # Override the default method. See https://github.com/rhtconsulting/jboss_eap/blob/master/README.md 12 | transfer_method: csp-to-host #csp-to-host | copy-from-controller | file-server-to-host 13 | -------------------------------------------------------------------------------- /inventory: -------------------------------------------------------------------------------- 1 | [jboss_eap_rhel_hosts] 2 | #10.1.4.2 ansible_rhel_user=root ansible_user=cloud-user rh_poolid= 3 | 4 | [jboss_eap_centos_hosts] 5 | 6 | [jboss_amq_rhel_hosts] 7 | 8 | [jboss_fuse_rhel_hosts] 9 | 10 | [jboss_fuse_centos_hosts] 11 | 12 | [jboss_bxms_eap_centos_hosts] 13 | 14 | [jboss_datagrid_rhel_hosts] 15 | 16 | [redhat_sso_rhel_hosts] 17 | -------------------------------------------------------------------------------- /jdg-6.6.0-rhel7.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - hosts: jboss_datagrid_rhel_hosts 4 | become_user: "{{ ansible_rhel_user }}" 5 | become: true 6 | gather_facts: true 7 | vars: 8 | disable_firewall: false 9 | 10 | vars_prompt: 11 | - name: "rhn_username" 12 | prompt: "Enter Your Red Hat Customer Portal Username" 13 | private: no 14 | 15 | - name: "rhn_password" 16 | prompt: "Enter Your Red Hat Customer Portal Password" 17 | private: yes 18 | 19 | roles: 20 | - redhat-cop.jboss_common 21 | - redhat-cop.jboss_datagrid 22 | -------------------------------------------------------------------------------- /requirements.yml: -------------------------------------------------------------------------------- 1 | --- 2 | roles: 3 | - src: redhat-cop.jboss_eap 4 | name: redhat-cop.jboss_eap 5 | 6 | - src: redhat-cop.jboss-common 7 | name: redhat-cop.jboss_common 8 | 9 | - src: redhat-cop.jboss_bxms 10 | name: redhat-cop.jboss_bxms 11 | 12 | - src: redhat-cop.jboss_fuse 13 | name: redhat-cop.jboss_fuse 14 | 15 | - src: redhat-cop.jboss_amq 16 | name: redhat-cop.jboss_amq 17 | 18 | - src: redhat-cop.jboss_datagrid 19 | name: redhat-cop.jboss_datagrid 20 | 21 | - src: redhat-cop.redhat_sso 22 | name: redhat-cop.redhat_sso 23 | 24 | - src: sabre1041.redhat-csp-download 25 | name: sabre1041.redhat-csp-download 26 | 27 | 28 | collections: 29 | - name: wildfly.jcliff 30 | verison: 0.0.2 31 | -------------------------------------------------------------------------------- /sso7.2-rhel7.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - hosts: redhat_sso_rhel_hosts 4 | become_user: "{{ ansible_rhel_user }}" 5 | become: true 6 | gather_facts: true 7 | 8 | # Set capabilities to install 9 | vars: 10 | role_install_broker: true 11 | role_install_interconnect: false 12 | 13 | vars_prompt: 14 | - name: "rhn_username" 15 | prompt: "Enter Your Red Hat Customer Portal Username" 16 | private: no 17 | 18 | - name: "rhn_password" 19 | prompt: "Enter Your Red Hat Customer Portal Password" 20 | private: yes 21 | 22 | roles: 23 | - role: redhat-cop.jboss_common 24 | - role: redhat-cop.redhat_sso 25 | -------------------------------------------------------------------------------- /tests/yamllint.yml: -------------------------------------------------------------------------------- 1 | extends: default 2 | 3 | rules: 4 | line-length: 5 | level: error 6 | max: 100 7 | document-start: 8 | present: true 9 | level: error 10 | comments: 11 | require-starting-space: false 12 | truthy: disable --------------------------------------------------------------------------------