mirror of
https://github.com/KevinMidboe/playbooks-retailor.git
synced 2025-10-28 09:10:35 +00:00
adds new database host
This commit is contained in:
9
host_vars/database.yml
Normal file
9
host_vars/database.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
custom_firewall_ports:
|
||||
- 111
|
||||
- 2049
|
||||
- 3306
|
||||
apt_packages:
|
||||
- nfs-kernel-server
|
||||
# install_mysql_exporter: true
|
||||
description: 'database & filestorage node for hosting app.retailor.io'
|
||||
@@ -1,9 +1,10 @@
|
||||
database ansible_host=database ansible_port=22 ansible_user=root
|
||||
cache ansible_host=cache ansible_port=22 ansible_user=root
|
||||
|
||||
[web]
|
||||
web1 ansible_host=web1 ansible_port=22 ansible_user=root
|
||||
web2 ansible_host=web2 ansible_port=22 ansible_user=root
|
||||
#
|
||||
|
||||
[worker]
|
||||
worker1 ansible_host=worker1 ansible_port=22 ansible_user=root
|
||||
worker2 ansible_host=worker2 ansible_port=22 ansible_user=root
|
||||
|
||||
@@ -39,11 +39,11 @@ scrape_configs:
|
||||
|
||||
- job_name: node_exporter
|
||||
static_configs:
|
||||
- targets: ['web1:9100', 'web2:9100', 'worker1:9100', 'worker2:9100', 'cache:9100', 'loadbalancer:9100', 'elasticsearch:9100']
|
||||
- targets: ['web1:9100', 'web2:9100', 'worker1:9100', 'worker2:9100', 'cache:9100', 'loadbalancer:9100', 'elasticsearch:9100', 'database:9100']
|
||||
|
||||
- job_name: fail2ban_exporter
|
||||
static_configs:
|
||||
- targets: ['web1:9191', 'web2:9191', 'worker1:9191', 'worker2:9191', 'cache:9191', 'loadbalancer:9191', 'elasticsearch:9191']
|
||||
- targets: ['web1:9191', 'web2:9191', 'worker1:9191', 'worker2:9191', 'cache:9191', 'loadbalancer:9191', 'elasticsearch:9191', 'database:9100']
|
||||
|
||||
- job_name: cadvisor
|
||||
static_configs:
|
||||
|
||||
Reference in New Issue
Block a user