]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
Compatibility for ansible < 2.3 11/head
authorZack Cerza <zack@redhat.com>
Tue, 20 Jun 2017 22:09:04 +0000 (16:09 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 20 Jun 2017 22:19:22 +0000 (16:19 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
ansible/roles/ceph-collectd/tasks/install_collectd_plugins.yml
ansible/roles/ceph-grafana/tasks/configure_carbon.yml
ansible/roles/ceph-grafana/tasks/configure_grafana.yml
ansible/roles/ceph-grafana/tasks/configure_graphite.yml

index a9679e934d3756e74fa056e8b7757a5e4d0a78e6..6b29498a21e16b3102c42461b5fc066dcb41dd5e 100644 (file)
 
 - name: Set hostname in write_graphite.conf
   replace:
-    path: "/etc/collectd.d/write_graphite.conf"
+    dest: "/etc/collectd.d/write_graphite.conf"
     regexp: 'Host ".*"'
     replace: "Host \"{{ groups['ceph-grafana'][0] }}\""
   notify: Restart collectd
 
 - name: Set cluster name in cephmetrics.conf
   replace:
-    path: /etc/collectd.d/cephmetrics.conf
+    dest: /etc/collectd.d/cephmetrics.conf
     regexp: 'ClusterName ".*"'
     replace: 'ClusterName "{{ cluster }}"'
   notify: Restart collectd
index 0a52ac7a97803a4e5cb18a982d98876f57ea8be2..8b84c06b45accfb24d86e47b914b51ed47c731f7 100644 (file)
@@ -1,7 +1,7 @@
 ---
 - name: Configure retention for collectd stats
   blockinfile:
-    path: /etc/carbon/storage-schemas.conf
+    dest: /etc/carbon/storage-schemas.conf
     # NOTE: Retention settings are applied to metrics as they are *created*. If
     # these settings are changed after-the-fact, it's necessary to either
     # delete the whisper files (!) or run whisper-resize on them all.
index 9085cfd83ce834fad18892eeb0124beec3592771..ca516fdc5e93ecfd88bd3bd91c8f90203fcd068f 100644 (file)
@@ -54,7 +54,7 @@
 
 - name: Set domain in grafana.ini
   lineinfile:
-    path: /etc/grafana/grafana.ini
+    dest: /etc/grafana/grafana.ini
     regexp: "^domain = .*"
     insertafter: "^;domain = .*"
     line: "domain = {{ ansible_fqdn }}"
@@ -63,7 +63,7 @@
 
 - name: Set root_url in grafana.ini
   lineinfile:
-    path: /etc/grafana/grafana.ini
+    dest: /etc/grafana/grafana.ini
     regexp: "^root_url = .*"
     insertafter: "^;root_url = .*"
     line: "root_url = %(protocol)s://%(domain)s:3000"
index 8627b5c6664876d2afa5f08114272a15126a2950..30ae6d6125b5bdb4616d68fb79b362161bd24a30 100644 (file)
@@ -28,7 +28,7 @@
 
 - name: Set VirtualHost port in graphite httpd config
   replace:
-    path: /etc/httpd/conf.d/graphite-web.conf
+    dest: /etc/httpd/conf.d/graphite-web.conf
     regexp: "^<VirtualHost \\*:.+>$"
     replace: "<VirtualHost *:{{ graphite.port }}>"
   notify: Restart graphite-web