]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
ceph-prometheus: Optionally add /etc/hosts entries 212/head
authorZack Cerza <zack@redhat.com>
Thu, 2 Aug 2018 21:24:37 +0000 (14:24 -0700)
committerZack Cerza <zack@redhat.com>
Tue, 14 Aug 2018 18:16:14 +0000 (11:16 -0700)
This only supports containerized deployments.

Signed-off-by: Zack Cerza <zack@redhat.com>
ansible/roles/ceph-prometheus/defaults/main.yml
ansible/roles/ceph-prometheus/tasks/setup_container.yml

index 72d1b510e606210a8558455e5c42e6f07216eb39..442d82722d1f61587ba4fff7ed72c41f84ea1e4f 100644 (file)
@@ -6,6 +6,9 @@ defaults:
     container_cpu_cores: 2
     # container_memory is in GB
     container_memory: 4
+    # This is passed directly to the docker_container module. It is only used
+    # for containerized deployments.
+    etc_hosts: {}
     version: latest
     data_dir: /var/lib/cephmetrics
     user_id: '65534'  # This is the UID used by the prom/prometheus docker image
index 9058c7835905b8ecd0549074b40fb5cd25dfa55a..d87c3e50a5d7d29181dcaf163c61bcf44fcc34f0 100644 (file)
@@ -18,6 +18,7 @@
       - "{{ prometheus.data_dir }}:/prometheus:Z"
     networks:
       - name: "{{ docker.network_name }}"
+    etc_hosts: "{{ prometheus.etc_hosts }}"
     user: "{{ prometheus.user_id }}"
     keep_volumes: true
     pull: true