Skip to content

Commit bc58a2d

Browse files
Siddhartha ManiSiddhartha Mani
authored andcommitted
updated YAML Example Playbook
Updated YAML for activemq Example Playbook Updated YAML for activemq uninstall Example Playbook
1 parent 6291fca commit bc58a2d

File tree

2 files changed

+55
-6
lines changed

2 files changed

+55
-6
lines changed

roles/activemq/README.md

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,11 +541,49 @@ Role Variables
541541

542542
Example Playbook
543543
----------------
544-
```
544+
```yaml
545545
---
546-
- hosts: all
546+
- name: Install and configure Apache ActiveMQ Artemis
547+
hosts: all
548+
become: true
549+
547550
collections:
548551
- middleware_automation.amq
552+
553+
vars:
554+
activemq_version: "2.40.0"
555+
activemq_archive: "apache-artemis-2.40.0-bin.zip"
556+
activemq_download_url: "https://archive.apache.org/dist/activemq/activemq-artemis/2.40.0/"
557+
activemq_dest: "/opt/amq"
558+
activemq_installdir: "/opt/amq/apache-artemis-2.40.0"
559+
activemq_service_user: "amq-broker"
560+
activemq_service_group: "amq-broker"
561+
activemq_service_name: "activemq"
562+
activemq_instance_name: "amq-broker"
563+
activemq_bind_address: "0.0.0.0"
564+
activemq_host: "localhost"
565+
activemq_http_port: 8161
566+
activemq_port: 61616
567+
activemq_queues: "queue.in,queue.out"
568+
activemq_users:
569+
- user: amq
570+
password: amqbrokerpass
571+
roles: admin
572+
- user: other
573+
password: amqotherpass
574+
roles: consumer, producer
575+
activemq_roles:
576+
- name: admin
577+
permissions: "createNonDurableQueue,deleteNonDurableQueue,createDurableQueue,deleteDurableQueue,createAddress,deleteAddress,consume,browse,send,manage"
578+
- name: consumer
579+
match: topics.*
580+
permissions: "consume,browse"
581+
- name: producer
582+
match: topics.*
583+
permissions: "send,browse"
584+
activemq_enable_audit: false
585+
activemq_logger_level: "INFO"
586+
549587
roles:
550588
- activemq
551-
```
589+
```

roles/activemq_uninstall/README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,20 @@ Role Defaults
5151

5252
Example Playbook
5353
----------------
54-
```
54+
```yaml
5555
---
56-
- hosts: all
56+
- name: Uninstall ActiveMQ Service
57+
hosts: all
58+
become: true
59+
60+
vars:
61+
activemq_uninstall_skip_user: true
62+
activemq_uninstall_skip_zipfile: false
63+
activemq_version: 2.34.0
64+
activemq_dest: /custom/amq
65+
activemq_service_user_home: /opt/amq/apache-artemis-2.34.0
66+
activemq_shared_storage_path: /opt/amq/amq-broker/data/shared
67+
5768
roles:
58-
- middleware_automation.amq.activemq_uninstall
69+
- role: middleware_automation.amq.activemq_uninstall
5970
```

0 commit comments

Comments
 (0)