Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
8043a4f
Fix:update rabbit version and replace apt source
Jul 1, 2021
0cd6f2c
Perfect project
Jul 8, 2021
4fba4eb
Add disk for node Haproxy
Azrael-lol Jul 8, 2021
5ad4fa1
Change file permission Automatically
Azrael-lol Jul 9, 2021
9cbc721
Revert "Change file permission Automatically"
Azrael-lol Jul 12, 2021
ac7aeec
Change file permission Automatically
Azrael-lol Jul 12, 2021
9825d4d
add disk for node-haproxy
Azrael-lol Jul 13, 2021
2d4f182
enable caddy.service
Azrael-lol Jul 14, 2021
ff0f849
DEV: Add option of add ssh
zhbinary Jul 19, 2021
b59023a
Merge branch 'dev' of https://github.com/QingCloudAppcenter/RabbitMQ …
zhbinary Jul 19, 2021
f1490de
Feature: add ans format systemd haproxy keepalived rabbitmq log
Jul 14, 2021
ce2423a
Merge pull request #23 from QingCloudAppcenter/rabbit-3.8
zpllz Jul 20, 2021
f3f5120
Fix:revise conflict
Jul 20, 2021
26dd74f
Fix:delete superfluous directory
Jul 21, 2021
970d4e9
Fix:health check will not restart service when port is unreachable
Jul 21, 2021
4136def
add logs
Azrael-lol Jul 22, 2021
0ad5219
Fix:fix journald log dir
Jul 23, 2021
6a08abc
Resynchronize lost updates
Azrael-lol Jul 23, 2021
77be68d
Fix:fix get rabbitmq status bug when delete or add new node
Jul 23, 2021
711e829
Fix:merge proxy shell and revise app config
Jul 23, 2021
07d14d6
DEV: Optimize haproxy options
zhbinary Jul 28, 2021
294998e
DEV: Optimize rabbit options
zhbinary Jul 28, 2021
de572bf
add external etcd
Azrael-lol Aug 9, 2021
7227f0f
DEBUG: Fix issuse that cluster scale in and out failed
zhbinary7 Aug 11, 2021
7fd34e8
DEBUG: Sacle in an out
zhbinary7 Aug 11, 2021
024a57a
fix: delete role for config
Aug 15, 2021
1606a0f
Fix: Limit the number of nodes for all roles
Aug 23, 2021
f98416f
Fix: delete resource group for proxy role
Aug 23, 2021
08f3213
merge yaml files
Azrael-lol Aug 23, 2021
238951d
Fix: limit etcd version
Aug 25, 2021
9849a4a
Feature: set password for cluster
Aug 26, 2021
ba2a362
Fix: wait port reachable when systemd start failed
Aug 30, 2021
d26f42c
Fix: delete ram in caddy web
Sep 3, 2021
220e08c
Adjust the description of “Haproxy HA Node Count”
Azrael-lol Sep 10, 2021
23c35ea
remove parameter hipe-compile
Azrael-lol Sep 15, 2021
a714c1d
RabbitMQ3.8.19-patch01
Azrael-lol Nov 15, 2021
ee9ae3e
Fix: add patch2. Fix initialization logic error and fix revise passwo…
Dec 3, 2021
15a790b
Fix: fix logic diagnostics
Jan 21, 2022
942ff3e
Update 01.haproxy.cfg.tmpl
Azrael-lol Jan 25, 2022
053ea3b
upload rabbitmq3.8.19_patch_03
Azrael-lol Jan 26, 2022
fc347b9
Feature: release patch 04
Dec 15, 2023
88c4c0f
Feature: release 3.12.11
Apr 29, 2024
efcb8cf
Fix: delete hatop
Jul 24, 2024
a0b6629
ansible: hosts settings
djangoyi-yunify Mar 25, 2025
7096e26
Fix: 修复修改配置不重启的问题
Mar 27, 2025
0ca60ed
Merge remote-tracking branch 'origin/dev' into kylin-20250325
djangoyi-yunify Jul 8, 2025
bb88ed1
ansible: roles for kylin
djangoyi-yunify Jul 8, 2025
55eb883
ansible: roles, node-all
djangoyi-yunify Jul 14, 2025
fc9f67a
ansible: roles, node-proxy-keepalived
djangoyi-yunify Jul 14, 2025
6f03285
ansible: roles, node-rabbitmq, for test
djangoyi-yunify Jul 14, 2025
3f8260f
ansible: roles, jq, needed by app script
djangoyi-yunify Jul 16, 2025
684ff85
ansible: roles, node-all, envs for app script
djangoyi-yunify Jul 16, 2025
001d5a8
ansible: roles, node-rabbitmq
djangoyi-yunify Jul 17, 2025
7a4e53d
ansible: roles, caddy
djangoyi-yunify Jul 17, 2025
47b13b4
node-all: remove http:15672 from $SERVICES
djangoyi-yunify Jul 17, 2025
9262687
appctl: log error for nc checking
djangoyi-yunify Jul 17, 2025
a934965
node-rabbitmq: caddy config for v2.x
djangoyi-yunify Jul 17, 2025
75ba28a
node-rabbitmq: fix folder permission for rabbitmq_delayed_message_exc…
djangoyi-yunify Jul 17, 2025
890ebce
node-rabbitmq: script, create folder for caddy
djangoyi-yunify Jul 17, 2025
f68d8c5
ansible: make.yml
djangoyi-yunify Jul 17, 2025
fe41717
ansible: roles, user-groups
djangoyi-yunify Jul 17, 2025
004512e
appctl: remove plain password
djangoyi-yunify Jul 17, 2025
5524c26
node-rabbitmq: script, fix for scale in/out
djangoyi-yunify Jul 17, 2025
26bd018
ansible: roles, crashkernel, pwquality
djangoyi-yunify Jul 21, 2025
c221ac9
node-rabbitmq: script, check more when using etcd
djangoyi-yunify Jul 21, 2025
3b8911c
proxy: for caddy 2.x
djangoyi-yunify Jul 22, 2025
bb1a211
proxy: revise config of haproxy
djangoyi-yunify Jul 22, 2025
0dda55b
proxy: keepalived, unicast
djangoyi-yunify Jul 24, 2025
b555392
bugfix: rabbitmq-node, do not render tmpl on other roles
djangoyi-yunify Jul 24, 2025
fb4f574
ansible: roles, node-client for kylin
djangoyi-yunify Jul 24, 2025
9bfef25
node-client: add switch for sshd
djangoyi-yunify Jul 24, 2025
ca67358
node-rabbitmq: add switch for plugins
djangoyi-yunify Jul 31, 2025
3b4e75c
node-proxy: support switch for plugins
djangoyi-yunify Aug 1, 2025
e44855f
node-rabbitmq: fix, update password
djangoyi-yunify Aug 1, 2025
ae4983b
node-rabbitmq: add more plugins
djangoyi-yunify Aug 5, 2025
b3207f7
node-rabbitmq: support special chars in password
djangoyi-yunify Aug 7, 2025
0e9b89c
proxy: support special chars in password
djangoyi-yunify Aug 7, 2025
94194ce
fix: rsyslog config for appctl, journal
djangoyi-yunify Aug 7, 2025
675c4a9
fix: logrotate, appctl
djangoyi-yunify Aug 8, 2025
e23f8f9
fix: logrotate, journald
djangoyi-yunify Aug 8, 2025
6337097
fix: log level, rabbitmq
djangoyi-yunify Aug 8, 2025
cecfac6
fix: rsyslog, haproxy
djangoyi-yunify Aug 8, 2025
53b1b45
fix: logrotae, haproxy
djangoyi-yunify Aug 8, 2025
7ba9c7e
fix: rsyslog, haproxy, no chroot settings
djangoyi-yunify Aug 8, 2025
d684dde
fix: rsyslog, keepalived
djangoyi-yunify Aug 8, 2025
53f8937
fix: logrotate, keepalived
djangoyi-yunify Aug 8, 2025
80ea23c
fix: disable journald log for role client
djangoyi-yunify Aug 8, 2025
86b1843
fix: default password of client
djangoyi-yunify Aug 8, 2025
ed73d2b
ready for release, 3.13.7 - v1.0.0_kylin_x86
djangoyi-yunify Aug 15, 2025
809cd0e
Merge pull request #25 from djangoyi-yunify/dev
wangqiwq Aug 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea/*
*.tar
*/file/tmp
1 change: 0 additions & 1 deletion ansible/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
**/files/tmp/
hosts
14 changes: 9 additions & 5 deletions ansible/group_vars/all.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
keepalived_version: 2.0.18
rabbitmq_version: 3.7.23
local_cache_path: "~/.ansible/cache"
erlang_solution_version: 1.0
haproxy_version: 2.0
appAgentVersion: v1.0.7
arping_version: "20211215-1"
jq_version: 1.8.1
local_cache_path: "file/tmp"
caddy_version: v2.9.1
haproxy_version: 3.0.9
keepalived_version: 2.3.3
erlang_version: 26.2.5.9
rabbitmq_version: 3.13.7
3 changes: 3 additions & 0 deletions ansible/host_vars/kylin-amd64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
default_os: kylin
default_osv: 10sp3
default_arch: amd64
3 changes: 3 additions & 0 deletions ansible/host_vars/kylin-arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
default_os: kylin
default_osv: 10sp3
default_arch: arm64
3 changes: 3 additions & 0 deletions ansible/host_vars/ubuntu-amd64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
default_os: ubuntu
default_osv: "22.04"
default_arch: amd64
3 changes: 3 additions & 0 deletions ansible/hosts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ubuntu-amd64 ansible_host=yourip
kylin-arm64 ansible_host=youip ansible_port=30023
kylin-amd64 ansible_host=youip ansible_port=30024
25 changes: 15 additions & 10 deletions ansible/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,23 @@
- include_role:
name: "{{ service_name }}"
loop:
- disable-apt-jobs-1.0.0
- disable-motd-1.0.0
- app-agent-1.0.1
- appctl-1.0.9
- arping-1.0.0
- rabbitmq-server
- haproxy
- keepalived
- tar
- ncncat
- jq
- os-update
- disable-package-manager-timers
- disable-motd
- app-agent
- appctl
- arping
- caddy
- node-all
- node-client
- node-proxy
- node-proxy-keepalived
- node-rabbitmq
- caddy-1.0.6
- users_groups
- crashkernel
- pwquality
- rsyslog
loop_control:
loop_var: service_name
8 changes: 0 additions & 8 deletions ansible/requirements.yml

This file was deleted.

13 changes: 13 additions & 0 deletions ansible/roles/app-agent/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
galaxy_info:
role_name: app-agent
role_version: 1.0.1
author: Hongliang Wang
description: installs app agent

license: Apache

min_ansible_version: 2.4

galaxy_tags: []

dependencies: []
78 changes: 78 additions & 0 deletions ansible/roles/app-agent/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
- name: set up variables
set_fact:
os: "{{ os | d(default_os) }}"
appAgentVersion: "{{ appAgentVersion | d('v1.0.7') }}"
arch: "{{ arch | d(default_arch) }}"
tmpPath: "/tmp/app-agent"

# will set var downloaded
- include_role:
name: downloader
vars:
opts:
pkg_name: app-agent
pkg_version: "{{ appAgentVersion }}"
pkg_feature: "linux-{{ arch }}"
pkg_fileType: ".tgz"
pkg_url: "https://github.com/QingCloudAppcenter/AppcenterAgent/releases/download/{{ appAgentVersion }}/app-agent-linux-{{ arch }}.tar.gz"

- name: prepare dir
file:
path: "{{ tmpPath }}"
state: directory

- name: decompress file
unarchive:
src: "{{ downloaded }}"
dest: "{{ tmpPath }}"
creates: "{{ tmpPath }}/bin"
extra_opts:
- --strip-components=1

- name: hack for kylin
lineinfile:
path: "{{ tmpPath }}/install.sh"
regexp: "'fedora'"
line: "elif echo \"$os\" | grep '[fedora|kylin]' > /dev/null; then"

- name: install app-agent
shell:
cmd: ./install.sh
chdir: "{{ tmpPath }}"

- name: adjust logrotate
replace:
path: /etc/logrotate.d/app-agent
regexp: '^(\s+size).*'
replace: '\1 2M'

- name: fix logrotate
lineinfile:
path: /etc/logrotate.d/app-agent
line: ' copytruncate'
insertbefore: '^}'
validate: 'logrotate -d %s'

- name: set up variables
set_fact:
confd_path: "/etc/init.d/confd"

- name: fix {{ confd_path }}
block:
- name: fix - PIDFILE
replace:
path: "{{ confd_path }}"
regexp: '^PIDFILE.*'
replace: 'PIDFILE=/run/$PROG.pid'
- name: fix - start
replace:
path: "{{ confd_path }}"
regexp: 'touch.*'
replace: 'touch $LOCKFILE; $(echo `pidofproc $PROG_BIN` > $PIDFILE)'
- name: fix - stop
replace:
path: "{{ confd_path }}"
regexp: 'rm -f \$LOCKFILE.*'
replace: 'rm -f $LOCKFILE && rm -f $PIDFILE'
when: os == 'kylin'
11 changes: 11 additions & 0 deletions ansible/roles/appctl/files/etc/logrotate.d/appctl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/data/log/appctl/appctl.log {
weekly
maxsize 2M
rotate 5
missingok
notifempty
copytruncate
postrotate
/usr/bin/systemctl kill -s HUP rsyslog.service >/dev/null 2>&1 || true
endscript
}
11 changes: 11 additions & 0 deletions ansible/roles/appctl/files/etc/rsyslog.d/49-appctl.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
if $programname startswith 'appctl' then {
action(
type="omfile"
file="/data/log/appctl/appctl.log"
FileOwner="syslog"
FileGroup="svc"
FileCreateMode="0640"
DirCreateMode="0755"
)
stop
}
Loading