Skip to content

Commit

Permalink
Add docker networks
Browse files Browse the repository at this point in the history
  • Loading branch information
bsedin committed Sep 8, 2018
1 parent 5b2108d commit 1bdcb79
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ elastic_beats_kibana_host: localhost
elastic_beats_kibana_port: 5601
elastic_beats_kibana_basic_auth_username:
elastic_beats_kibana_basic_auth_password:
elastic_beats_networks: []

elastic_filebeat_version: '{{ elastic_beats_version }}'
elastic_filebeat_dir: /opt/docker/services/elastic-filebeat
elastic_filebeat_image: docker.elastic.co/beats/filebeat:{{ elastic_filebeat_version }}
elastic_filebeat_container_name: elastic-filebeat
elastic_filebeat_links: []
elastic_filebeat_networks: '{{ elastic_beats_networks }}'
elastic_filebeat_volumes:
- '{{ elastic_filebeat_dir }}/filebeat.yml:/usr/share/filebeat/filebeat.yml'
- /:/hostfs:ro
Expand All @@ -35,6 +37,7 @@ elastic_heartbeat_dir: /opt/docker/services/elastic-heartbeat
elastic_heartbeat_image: docker.elastic.co/beats/heartbeat:{{ elastic_heartbeat_version }}
elastic_heartbeat_container_name: elastic-heartbeat
elastic_heartbeat_links: []
elastic_heartbeat_networks: '{{ elastic_beats_networks }}'
elastic_heartbeat_elasticsearch_hosts: '{{ elastic_beats_elasticsearch_hosts }}'
elastic_heartbeat_kibana_setup_dashboards: '{{ elastic_beats_kibana_setup_dashboards }}'
elastic_heartbeat_kibana_enabled: '{{ elastic_beats_kibana_enabled }}'
Expand All @@ -51,6 +54,7 @@ elastic_metricbeat_dir: /opt/docker/services/elastic-metricbeat
elastic_metricbeat_image: docker.elastic.co/beats/metricbeat:{{ elastic_metricbeat_version }}
elastic_metricbeat_container_name: elastic-metricbeat
elastic_metricbeat_links: []
elastic_metricbeat_networks: '{{ elastic_beats_networks }}'
elastic_metricbeat_volumes:
- '{{ elastic_metricbeat_dir }}/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml'
- /:/hostfs:ro
Expand Down
1 change: 1 addition & 0 deletions tasks/filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@
restart_policy: always
user: root
links: '{{ elastic_filebeat_links }}'
networks: '{{ elastic_filebeat_networks }}'
volumes: '{{ elastic_filebeat_volumes }}'
1 change: 1 addition & 0 deletions tasks/heartbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
restart_policy: always
user: root
links: '{{ elastic_heartbeat_links }}'
networks: '{{ elastic_heartbeat_networks }}'
volumes:
- '{{ elastic_heartbeat_dir }}/heartbeat.yml:/usr/share/heartbeat/heartbeat.yml'
1 change: 1 addition & 0 deletions tasks/metricbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
user: root
network_mode: host
links: '{{ elastic_metricbeat_links }}'
networks: '{{ elastic_metricbeat_networks }}'
volumes: '{{ elastic_metricbeat_volumes }}'
command: -system.hostfs=/hostfs

0 comments on commit 1bdcb79

Please sign in to comment.