Add Centos-8 support
Depends-On: https://review.opendev.org/734672 Depends-On: https://review.opendev.org/735289 Change-Id: I35690f9a54337d6a268406ddcf6726f7040ac966
This commit is contained in:
parent
52953f08c5
commit
fc27e735a6
@ -26,6 +26,9 @@ rabbitmq_host_group: "rabbitmq_all"
|
||||
# The local address used for the rabbitmq cluster node
|
||||
rabbitmq_node_address: "{{ ansible_host }}"
|
||||
|
||||
rabbit_system_user_name: rabbitmq
|
||||
rabbit_system_group_name: rabbitmq
|
||||
|
||||
# Hosts file entries (set this to an empty list to disable /etc/hosts generation
|
||||
# for the rabbitmq cluster nodes)
|
||||
rabbitmq_hosts_entries: >-
|
||||
|
@ -28,6 +28,8 @@
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
owner: "{{ rabbit_system_user_name }}"
|
||||
group: "{{ rabbit_system_group_name }}"
|
||||
with_items:
|
||||
- { src: "rabbitmq.config.j2", dest: "/etc/rabbitmq/rabbitmq.config" }
|
||||
- { src: "rabbitmq-server.j2", dest: "/etc/default/rabbitmq-server" }
|
||||
|
@ -48,12 +48,28 @@
|
||||
tags:
|
||||
- rabbitmq-config
|
||||
|
||||
- name: Create the system group
|
||||
group:
|
||||
name: "{{ rabbit_system_group_name }}"
|
||||
state: "present"
|
||||
system: "yes"
|
||||
|
||||
- name: Create the rabbit system user
|
||||
user:
|
||||
name: "{{ rabbit_system_user_name }}"
|
||||
group: "{{ rabbit_system_group_name }}"
|
||||
comment: "RabbitMQ messaging server"
|
||||
shell: "/bin/false"
|
||||
system: "yes"
|
||||
createhome: "yes"
|
||||
home: "/var/lib/rabbitmq"
|
||||
|
||||
- name: Create the local directories
|
||||
file:
|
||||
path: "/etc/rabbitmq/"
|
||||
state: "directory"
|
||||
group: "root"
|
||||
owner: "root"
|
||||
group: "{{ rabbit_system_user_name }}"
|
||||
owner: "{{ rabbit_system_group_name }}"
|
||||
mode: "0755"
|
||||
tags:
|
||||
- rabbitmq-config
|
||||
|
@ -6,8 +6,8 @@ Conflicts=epmd.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
User=rabbitmq
|
||||
Group=rabbitmq
|
||||
User={{ rabbit_system_user_name }}
|
||||
Group={{ rabbit_system_group_name }}
|
||||
LimitNOFILE=65535
|
||||
NotifyAccess=all
|
||||
WorkingDirectory=/var/lib/rabbitmq
|
||||
|
@ -31,5 +31,5 @@ _rabbitmq_erlang_repo:
|
||||
filename: els-erlang
|
||||
|
||||
rabbitmq_distro_packages:
|
||||
- erlang-22.3-1.el7.x86_64
|
||||
- "rabbitmq-server-{{ rabbitmq_package_version }}.el7.noarch"
|
||||
- "erlang-22.3-1.el{{ ansible_distribution_major_version }}.x86_64"
|
||||
- "rabbitmq-server-{{ rabbitmq_package_version }}.el{{ ansible_distribution_major_version }}.noarch"
|
||||
|
Loading…
Reference in New Issue
Block a user