Compare commits
5 Commits
924bacd958
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| be2208b245 | |||
| 089f875520 | |||
| ea32497180 | |||
| bbf63b4c63 | |||
| 588a44a0c1 |
@@ -1,5 +1,5 @@
|
||||
---
|
||||
#ansible_user: xadmin
|
||||
ansible_user: xadmin
|
||||
|
||||
packages_common:
|
||||
- 'bash'
|
||||
@@ -80,6 +80,6 @@ sssd_default_shell: "/bin/bash"
|
||||
sudoers_sudoers:
|
||||
privileges:
|
||||
- name: '%sudo'
|
||||
entry: 'ALL=(ALL) ALL'
|
||||
entry: 'ALL=NOPASSWD:ALL'
|
||||
- name: '%linuxadmins'
|
||||
entry: 'ALL=NOPASSWD:ALL'
|
||||
|
||||
@@ -13,6 +13,12 @@ prometheus_node_exporter_targets:
|
||||
- "10.7.10.102:9100"
|
||||
- "10.7.10.105:9100"
|
||||
- "10.7.10.106:9100"
|
||||
- "10.7.10.107:9100"
|
||||
- "10.7.20.65:9100"
|
||||
- "10.7.20.66:9100"
|
||||
- "10.7.20.67:9100"
|
||||
- "10.7.20.68:9100"
|
||||
- "10.7.20.69:9100"
|
||||
- "ci-v2-arm1.int.metaunix.net:9100"
|
||||
- "ci-v2-arm2.int.metaunix.net:9100"
|
||||
- "ci-v2-arm3.int.metaunix.net:9100"
|
||||
|
||||
@@ -54,6 +54,12 @@ pi1b-2 ansible_host=10.7.10.102
|
||||
pi3b ansible_host=10.7.10.104
|
||||
pi4b4g ansible_host=10.7.10.105
|
||||
pi5b2g ansible_host=10.7.10.106
|
||||
picm5-1 ansible_host=10.7.10.107
|
||||
picam-1 ansible_host=10.7.20.65
|
||||
pimusic-1 ansible_host=10.7.20.66
|
||||
pimusic-2 ansible_host=10.7.20.67
|
||||
pizero1 ansible_host=10.7.20.68
|
||||
pi5b1g ansible_host=10.7.20.69
|
||||
|
||||
[serial_ttyd]
|
||||
pitty-v1-sw ansible_host=10.7.10.15
|
||||
@@ -63,6 +69,9 @@ pitty-v1-pico ansible_host=10.7.10.16
|
||||
smtp1 ansible_host=smtp1.int.metaunix.net
|
||||
smtp2 ansible_host=smtp2.int.metaunix.net
|
||||
|
||||
[uptime_kuma]
|
||||
pi5b1g ansible_host=10.7.20.69
|
||||
|
||||
[web_servers]
|
||||
www3 ansible_host=www3.int.metaunix.net
|
||||
www4 ansible_host=www4.int.metaunix.net
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
|
||||
- name: Run Sysbench Suite
|
||||
hosts: all
|
||||
become: true
|
||||
tasks:
|
||||
- name: Ensure sysbench is installed
|
||||
ansible.builtin.package:
|
||||
name: sysbench
|
||||
state: present
|
||||
tags: [always]
|
||||
|
||||
- name: CPU Benchmarks
|
||||
tags: [cpu, sysbench_cpu]
|
||||
block:
|
||||
- name: Sysbench CPU (Single-thread)
|
||||
ansible.builtin.command: sysbench cpu --cpu-max-prime=20000 --threads=1 run
|
||||
register: sysbench_cpu_single
|
||||
changed_when: false
|
||||
|
||||
- name: Sysbench CPU (Multi-thread)
|
||||
ansible.builtin.command: sysbench cpu --cpu-max-prime=20000 --threads={{ ansible_processor_vcpus }} run
|
||||
register: sysbench_cpu_multi
|
||||
changed_when: false
|
||||
|
||||
- name: Memory Benchmarks
|
||||
tags: [memory, sysbench_memory]
|
||||
block:
|
||||
- name: Sysbench Memory (Write throughput)
|
||||
ansible.builtin.command: sysbench memory --memory-block-size=1M --memory-total-size=10G --memory-oper=write run
|
||||
register: sysbench_mem_write
|
||||
changed_when: false
|
||||
@@ -1,7 +1,9 @@
|
||||
---
|
||||
|
||||
- name: Install and configure Docker
|
||||
hosts: ci_servers
|
||||
hosts:
|
||||
- ci_servers
|
||||
- uptime_kuma
|
||||
become: true
|
||||
|
||||
roles:
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
---
|
||||
|
||||
- name: Deploy Uptime Kuma 2
|
||||
hosts: uptime_kuma
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- name: Ensure named Docker volume exists
|
||||
community.docker.docker_volume:
|
||||
name: uptime-kuma
|
||||
state: present
|
||||
|
||||
- name: Run Uptime Kuma container
|
||||
community.docker.docker_container:
|
||||
name: uptime-kuma
|
||||
image: louislam/uptime-kuma:2
|
||||
state: started
|
||||
restart_policy: unless-stopped
|
||||
published_ports:
|
||||
- "3001:3001"
|
||||
volumes:
|
||||
- uptime-kuma:/app/data
|
||||
pull: true
|
||||
Reference in New Issue
Block a user