-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NEW] added Apache Artemis ActiveMQ cluster playbook
- Loading branch information
1 parent
4f5b6eb
commit e163e3e
Showing
12 changed files
with
123 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
- name: Boostratp Servers | ||
hosts: master,nodes | ||
become: yes | ||
vars_files: | ||
- vars.yml | ||
|
||
tasks: | ||
- name: Ensure required packages are installed | ||
package: | ||
name: | ||
- curl | ||
- wget | ||
- net-tools | ||
- git | ||
- "{{ java_packages[ansible_distribution] }}" | ||
state: present | ||
|
||
- name: Find Java 11 installation path | ||
command: "update-alternatives --list java" | ||
register: java_alternatives_output | ||
changed_when: false | ||
|
||
- name: Set default Java version to Java 11 | ||
alternatives: | ||
name: java | ||
path: "{{ java_alternatives_output.stdout_lines | select('search', 'java-11') | list | first }}" | ||
when: java_alternatives_output.stdout_lines | select('search', 'java-11') | list | length > 0 | ||
|
||
- name: Verify Java installation | ||
command: java -version | ||
register: java_version_output | ||
changed_when: false | ||
ignore_errors: true | ||
|
||
- name: Debug Java installation output | ||
debug: | ||
msg: "Java version output: {{ java_version_output.stdout }}" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[master] | ||
master ansible_host=147.182.174.211 ansible_user=root | ||
|
||
[nodes] | ||
node1 ansible_host=67.207.87.177 ansible_user=root | ||
node2 ansible_host=24.144.106.189 ansible_user=root | ||
|
||
[nfs] | ||
node2 ansible_host=24.144.106.189 ansible_user=root |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
java_packages: | ||
"Ubuntu": "openjdk-11-jdk" | ||
"Debian": "openjdk-11-jdk" | ||
"Rocky": "java-11-openjdk" | ||
"CentOS": "java-11-openjdk" | ||
|
||
artemis_version: "2.37.0" | ||
artemis_url: "https://downloads.apache.org/activemq/activemq-artemis/{{ artemis_version }}/apache-artemis-{{ artemis_version }}-bin.tar.gz" | ||
artemis_install_dir: "/opt/artemis" | ||
artemis_instance_dir: "/opt/artemis-instance" | ||
artemis_user: "artemis" | ||
artemis_group: "artemis" | ||
artemis_password: "329awfas" | ||
|
||
nfs_export_path: "/srv/nfs" | ||
nfs_allowed_hosts: "*" | ||
nfs_service_name: | ||
RedHat: nfs-server | ||
Debian: nfs-kernel-server | ||
|
||
nfs_mount_paths: | ||
master: "/mnt/artemis-cluster-master-prod" | ||
nodes: | ||
node1: "/mnt/artemis-cluster-node1-prod" | ||
node2: "/mnt/artemis-cluster-node2-prod" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
java_packages: | ||
"Ubuntu": "openjdk-11-jdk" | ||
"Debian": "openjdk-11-jdk" | ||
"Rocky": "java-11-openjdk" | ||
"CentOS": "java-11-openjdk" | ||
artemis_version: "2.37.0" | ||
artemis_url: "https://downloads.apache.org/activemq/activemq-artemis/{{ artemis_version }}/apache-artemis-{{ artemis_version }}-bin.tar.gz" | ||
artemis_install_dir: "/opt/artemis" | ||
artemis_instance_dir: "/opt/artemis-instance" | ||
artemis_user: "artemis" | ||
artemis_group: "artemis" | ||
artemis_password: "329awfas" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters