You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
2.9 KiB
87 lines
2.9 KiB
all:
|
|
children:
|
|
nodes:
|
|
hosts:
|
|
hv:
|
|
ansible_host: 10.61.1.1
|
|
ansible_password: BJDGSLAbKyx3TyHddciZJ43mg5SSaJhQ
|
|
ansible_ssh_extra_args: -o StrictHostKeyChecking=no
|
|
|
|
containers:
|
|
hosts:
|
|
nginx:
|
|
ansible_host: 10.90.0.2
|
|
ansible_password: k3PpKHF52zgUaowB73V6ggrnMUDUcMeS
|
|
container_config:
|
|
image: nginx
|
|
custom_image: yes
|
|
nginx_config:
|
|
root:
|
|
error_log: /var/log/nginx/error.log info
|
|
load_module: /usr/local/nginx/modules/ngx_http_geoip2_module.so
|
|
http:
|
|
log_format: "custom escape=json '\"$time_iso8601\" \"$request_time\" \"$upstream_response_time\" \
|
|
\"$remote_addr\" \"$remote_user\" \"$time_local\" \"$request\" \"$status\" \
|
|
\"$body_bytes_sent\" \"$http_referer\" \"$http_user_agent\" \"$geoip_country_code\"'"
|
|
|
|
apache1:
|
|
ansible_host: 10.90.0.3
|
|
ansible_password: qUTuyFHzCFGVswGYEHv5MU2JzQGt9Tx7
|
|
host_role: apache
|
|
container_config:
|
|
image: php:8-apache
|
|
mounts: /opt/www/html:/var/www/html
|
|
|
|
apache2:
|
|
ansible_host: 10.90.0.4
|
|
ansible_password: F2a4v4LoQ5U6rwAgsrSt68SJwmHGARuP
|
|
host_role: apache
|
|
container_config:
|
|
image: php:8-apache
|
|
mounts: /opt/www/html:/var/www/html
|
|
|
|
cadvisor:
|
|
ansible_host: 10.90.0.5
|
|
ansible_password: dJpxV9gri438UbC82bYXCp4BeAGHyoZn
|
|
container_config:
|
|
image: gcr.io/cadvisor/cadvisor:latest
|
|
mounts:
|
|
- /:/rootfs:ro
|
|
- /var/run:/var/run:ro
|
|
- /sys:/sys:ro
|
|
- /var/lib/docker/:/var/lib/docker:ro
|
|
- /dev/disk/:/dev/disk:ro
|
|
privileged: yes
|
|
devices:
|
|
- /dev/kmsg
|
|
|
|
node_exporter:
|
|
ansible_host: 10.90.0.6
|
|
ansible_password: QnSKHZ5e82YnCzbS75PMHXZqhwpFbzcu
|
|
container_config:
|
|
image: prom/node-exporter:latest
|
|
extra_mounts:
|
|
- /:/host:ro,rslave
|
|
command: '--path.rootfs=/host'
|
|
|
|
nginx_exporter:
|
|
ansible_host: 10.90.0.7
|
|
ansible_password: rkeE2vHp2jmLjsyz4r9ASe63GM5t6FbA
|
|
container_config:
|
|
image: nginx/nginx-prometheus-exporter
|
|
|
|
mysql_exporter:
|
|
ansible_host: 10.61.1.7
|
|
ansible_password: VxMNsdHg6Fu5Ah9GxRTcQFVTGFRagAHD
|
|
prometheus:
|
|
ansible_host: 10.61.1.9
|
|
ansible_password: XPJEzq3ohbu3KxcqWnT65M9uX5Utxyx2
|
|
grafana:
|
|
ansible_host: 10.61.1.10
|
|
ansible_password: ZsA8if5Cm4sEr299SjoMEMgqV5kBYn4a
|
|
fluentd:
|
|
ansible_host: 10.61.1.11
|
|
ansible_password: mcLjXRpVGvxk7x4NPhuHVf9n6o8nk3cS
|
|
mysql:
|
|
ansible_host: 10.61.1.12
|
|
ansible_password: cr9GvFGoqnzAdUNRvTr2DRqwQqqKLMWV |