- fix datadog logging for all hosts, except cubox-i
- fix jenkins reverse proxy errors
This commit is contained in:
@@ -25,11 +25,12 @@
|
|||||||
- proc
|
- proc
|
||||||
- securityfs
|
- securityfs
|
||||||
excluded_mountpoint_re: /[media/richard|run/user].*
|
excluded_mountpoint_re: /[media/richard|run/user].*
|
||||||
# docker:
|
docker:
|
||||||
# init_config:
|
init_config:
|
||||||
# instances:
|
instances:
|
||||||
# - url: "unix://var/run/docker.sock"
|
- url: "unix://var/run/docker.sock"
|
||||||
# new_tag_names: true
|
new_tag_names: true
|
||||||
|
|
||||||
dockerhost:
|
dockerhost:
|
||||||
users:
|
users:
|
||||||
- dd-agent
|
- dd-agent
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
---
|
---
|
||||||
# DOCKER_HOST=192.168.2.41:2376 docker-compose up -d
|
# DOCKER_HOST=192.168.2.41:2376 docker-compose up -d
|
||||||
|
# DOCKER_HOST=dkhost:2376 docker stack deploy -c docker-compose.yml jenkins
|
||||||
|
|
||||||
version: '2'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
restart: always
|
# restart: always
|
||||||
privileged: true
|
privileged: true
|
||||||
image: "jenkins:alpine"
|
image: "jenkins:alpine"
|
||||||
|
|
||||||
@@ -12,4 +13,16 @@ services:
|
|||||||
- /var/lib/jenkins:/var/jenkins_home
|
- /var/lib/jenkins:/var/jenkins_home
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
- "5001:5000"
|
- "50000:50000"
|
||||||
|
deploy:
|
||||||
|
mode: replicated
|
||||||
|
replicas: 1
|
||||||
|
restart_policy:
|
||||||
|
condition: any
|
||||||
|
delay: "5s"
|
||||||
|
max_attempts: 1
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
external:
|
||||||
|
name: prod-private
|
||||||
|
|||||||
@@ -56,6 +56,12 @@ server {
|
|||||||
add_header Strict-Transport-Security "max-age=600; includeSubDomains" always;
|
add_header Strict-Transport-Security "max-age=600; includeSubDomains" always;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
proxy_set_header Host $host:$server_port;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
proxy_pass http://dkhost.xai-corp.net:8080;
|
proxy_pass http://dkhost.xai-corp.net:8080;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,23 @@
|
|||||||
- users_groups:
|
- users_groups:
|
||||||
|
|
||||||
- datadog_api_key: ca0faf176c4aedd4f547ed7cf85615eb
|
- datadog_api_key: ca0faf176c4aedd4f547ed7cf85615eb
|
||||||
|
datadog_checks:
|
||||||
|
system:
|
||||||
|
init_config: []
|
||||||
|
instances: []
|
||||||
|
disk:
|
||||||
|
init_config:
|
||||||
|
instances:
|
||||||
|
- use_mount: yes
|
||||||
|
excluded_filesystems:
|
||||||
|
- sysfs
|
||||||
|
- cgroup
|
||||||
|
- tracefs
|
||||||
|
- debugfs
|
||||||
|
- proc
|
||||||
|
- securityfs
|
||||||
|
excluded_mountpoint_re: /[media/richard|run/user].*
|
||||||
|
|
||||||
|
|
||||||
- rsyslog:
|
- rsyslog:
|
||||||
user: root
|
user: root
|
||||||
|
|||||||
@@ -9,6 +9,23 @@
|
|||||||
become: True
|
become: True
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
|
datadog_api_key: ca0faf176c4aedd4f547ed7cf85615eb
|
||||||
|
datadog_checks:
|
||||||
|
system:
|
||||||
|
init_config: []
|
||||||
|
instances: []
|
||||||
|
disk:
|
||||||
|
init_config:
|
||||||
|
instances:
|
||||||
|
- use_mount: yes
|
||||||
|
excluded_filesystems:
|
||||||
|
- sysfs
|
||||||
|
- cgroup
|
||||||
|
- tracefs
|
||||||
|
- debugfs
|
||||||
|
- proc
|
||||||
|
- securityfs
|
||||||
|
excluded_mountpoint_re: /[media/richard|run/user].*
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- _install_updates
|
- _install_updates
|
||||||
|
|||||||
@@ -13,5 +13,5 @@
|
|||||||
dest: /etc/fstab
|
dest: /etc/fstab
|
||||||
insertafter: EOF
|
insertafter: EOF
|
||||||
regexp: '^#?{{ item.value.host }}'
|
regexp: '^#?{{ item.value.host }}'
|
||||||
line: '{{ item.value.host }} {{ item.value.mount }} glusterfs defaults,_netdev 0 0'
|
line: '{{ item.value.host }} {{ item.value.mount }} glusterfs direct-io-mode=disable,defaults,_netdev 0 0'
|
||||||
with_dict: gluster
|
with_dict: gluster
|
||||||
|
|||||||
Reference in New Issue
Block a user