mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 05:55:59 -03:30
Rename container hostname from awx_1 to awx-1
* Django and other webservers that care about proper hostnames don't like underscores in them.
This commit is contained in:
committed by
Chris Meyers
parent
c061f59f1c
commit
ae1235b223
@@ -27,7 +27,7 @@ services:
|
||||
user: "{{ ansible_user_uid }}"
|
||||
image: "{{ awx_image }}:{{ awx_image_tag }}"
|
||||
container_name: tools_awx_{{ container_postfix }}
|
||||
hostname: awx_{{ container_postfix }}
|
||||
hostname: awx-{{ container_postfix }}
|
||||
command: launch_awx.sh
|
||||
environment:
|
||||
OS: "{{ os_info.stdout }}"
|
||||
|
||||
@@ -4,12 +4,10 @@ global:
|
||||
scrape_interval: {{ scrape_interval }} # Set the scrape interval to something faster. Default is every 1 minute.
|
||||
|
||||
scrape_configs:
|
||||
- job_name: 'awx'
|
||||
- job_name: 'awx-metrics'
|
||||
static_configs:
|
||||
- targets:
|
||||
# metrics are broadcast to all nodes in the cluster,
|
||||
# so no need to track nodes individually.
|
||||
- awx1:8013
|
||||
- awx-1:8013
|
||||
metrics_path: /api/v2/metrics
|
||||
scrape_interval: {{ scrape_interval }}
|
||||
scheme: http
|
||||
@@ -18,3 +16,16 @@ scrape_configs:
|
||||
basic_auth:
|
||||
username: admin
|
||||
password: {{ admin_password }}
|
||||
|
||||
- job_name: 'awx-wsrelay'
|
||||
static_configs:
|
||||
- targets:
|
||||
{% for i in range(control_plane_node_count|int) %}
|
||||
{% set container_postfix = loop.index %}
|
||||
- awx-{{ container_postfix }}:8016
|
||||
{% endfor %}
|
||||
metrics_path: /
|
||||
scrape_interval: {{ scrape_interval }}
|
||||
scheme: http
|
||||
params:
|
||||
format: ['txt']
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
- node:
|
||||
id: awx_{{ item }}
|
||||
id: awx-{{ item }}
|
||||
firewallrules:
|
||||
- action: "reject"
|
||||
tonode: awx_{{ item }}
|
||||
tonode: awx-{{ item }}
|
||||
toservice: "control"
|
||||
|
||||
- log-level: info
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
{% for i in range(item | int + 1, control_plane_node_count | int + 1) %}
|
||||
- tcp-peer:
|
||||
address: awx_{{ i }}:2222
|
||||
address: awx-{{ i }}:2222
|
||||
redial: true
|
||||
{% endfor %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user