-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ibm-messaging/enhancements-r1
Playbook and documentation enhancements.
- Loading branch information
Showing
12 changed files
with
185 additions
and
137 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
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 |
---|---|---|
@@ -1,38 +1,8 @@ | ||
- hosts: [YOUR_TARGET_MACHINES] | ||
become: false | ||
environment: | ||
PATH: /opt/mqm/bin:{{ ansible_env.PATH }} | ||
- name: Install and setup IBM MQ | ||
hosts: ['servers'] | ||
|
||
roles: | ||
- role: setupusers | ||
vars: | ||
gid: 999 | ||
- downloadmq | ||
- installmq | ||
- getconfig | ||
- setupconsole | ||
- startconsole | ||
|
||
tasks: | ||
- name: Run the install playbook | ||
import_playbook: mq-install.yml | ||
|
||
- name: Create a queue manager | ||
queue_manager: | ||
qmname: | ||
- 'QM1' | ||
- 'QM2' | ||
state: 'present' | ||
|
||
- name: Start a queue manager | ||
queue_manager: | ||
qmname: | ||
- 'QM1' | ||
- 'QM2' | ||
state: 'running' | ||
|
||
- name: Run MQSC File | ||
queue_manager: | ||
qmname: | ||
- 'QM1' | ||
- 'QM2' | ||
state: 'running' | ||
mqsc_file: '/home/{{ ansible_ssh_user }}/dev-config.mqsc' | ||
- name: Run the setup playbook | ||
import_playbook: mq-setup.yml |
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 @@ | ||
- hosts: "{{ ansible_play_batch }}" | ||
serial: 1 | ||
become: false | ||
environment: | ||
PATH: /opt/mqm/bin:{{ ansible_env.PATH }} | ||
|
||
roles: | ||
- role: setupusers | ||
vars: | ||
appUid: 909 | ||
appGid: 909 | ||
- downloadmq | ||
- installmq |
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,35 @@ | ||
- hosts: "{{ ansible_play_hosts }}" | ||
serial: 1 | ||
become: yes | ||
become_user: mqm | ||
environment: | ||
PATH: /opt/mqm/bin:{{ ansible_env.PATH }} | ||
|
||
roles: | ||
- getconfig | ||
- setupconsole | ||
- startconsole | ||
|
||
tasks: | ||
|
||
- name: Create a queue manager | ||
queue_manager: | ||
qmname: | ||
- 'QM1' | ||
- 'QM2' | ||
state: 'present' | ||
|
||
- name: Start a queue manager | ||
queue_manager: | ||
qmname: | ||
- 'QM1' | ||
- 'QM2' | ||
state: 'running' | ||
|
||
- name: Run MQSC File | ||
queue_manager: | ||
qmname: | ||
- 'QM1' | ||
- 'QM2' | ||
state: 'running' | ||
mqsc_file: '/var/mqm/dev-config.mqsc' |
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
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
Oops, something went wrong.