-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish messages via fedora_messaging
This is the bare minimum to publish messages using fedora_messaging. It includes support to use the fedmsg publisher as a config option in case things go wrong during deployment. This can be removed later. Signed-off-by: Jeremy Cline <jcline@redhat.com>
- Loading branch information
1 parent
0cc97b7
commit 9722666
Showing
7 changed files
with
76 additions
and
34 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
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 +1,2 @@ | ||
import_production_database: true | ||
rabbitmq_cluster_file_limit: 500000 |
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,5 @@ | ||
- name: reload rabbitmq | ||
systemd: | ||
name: rabbitmq-server | ||
state: restarted | ||
daemon_reload: yes |
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,26 @@ | ||
--- | ||
- name: Install RabbitMQ packages | ||
package: | ||
name: "{{ item }}" | ||
state: present | ||
with_items: | ||
- rabbitmq-server | ||
|
||
- name: Create RabbitMQ systemd override directory | ||
file: | ||
path: /etc/systemd/system/rabbitmq-server.service.d/ | ||
state: directory | ||
|
||
- name: Override file limit on rabbitmq | ||
copy: | ||
content: "[Service]\nLimitNOFILE={{rabbitmq_cluster_file_limit}}\n" | ||
dest: /etc/systemd/system/rabbitmq-server.service.d/override.conf | ||
notify: | ||
- reload rabbitmq | ||
|
||
- name: Enables the rabbitmq management and SSL authentication plugins | ||
rabbitmq_plugin: | ||
names: rabbitmq_management,rabbitmq_auth_mechanism_ssl | ||
|
||
- name: start rabbitmq | ||
service: name=rabbitmq-server state=started enabled=yes |