]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
ansible-lint: Ignore these lines' length
authorZack Cerza <zack@redhat.com>
Tue, 4 Jun 2019 22:57:35 +0000 (16:57 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 4 Jun 2019 23:34:12 +0000 (17:34 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
ansible/playbook.yml
ansible/roles/ceph-collectd/tasks/configure_collectd.yml
ansible/roles/ceph-grafana/tasks/push_dashboards.yml
ansible/roles/ceph-graphite/handlers/main.yml
ansible/roles/cephmetrics-common/tasks/merge_vars.yml

index 3cff2919b9e8cbd522ddc60a2bc8be487d36ece8..1740ee25b7299ad7572f5df3e07b934384b0b2cf 100644 (file)
@@ -79,4 +79,4 @@
   tasks:
     - name: Print dashboard URL
       debug:
-        msg: "All done! You may access your dashboard at http://{{ groups['ceph-grafana'][0] }}:3000/ with your pre-defined user and password (admin/admin by default). Note that initially the dashboard will be incomplete; after a few minutes it should have enough data collected to function properly."
+        msg: "All done! You may access your dashboard at http://{{ groups['ceph-grafana'][0] }}:3000/ with your pre-defined user and password (admin/admin by default). Note that initially the dashboard will be incomplete; after a few minutes it should have enough data collected to function properly."  # noqa 204
index 9a295db2d58536e8b12c362a96a47a2bb10895e8..4b94b8055a30bf89101e4a215e4772ad36033879 100644 (file)
@@ -44,7 +44,7 @@
     dest: "{{ collectd_conf_d }}/cephmetrics.conf"
     regexp: 'EventURL ".*"'
     insertafter: 'ClusterName ".*"'
-    line: "        EventURL \"http://{{ groups['ceph-grafana'][0] }}:{{ graphite.web_port if graphite.service == 'graphite-web' else graphite.api_port }}/events/\""
+    line: "        EventURL \"http://{{ groups['ceph-grafana'][0] }}:{{ graphite.web_port if graphite.service == 'graphite-web' else graphite.api_port }}/events/\""  # noqa 204
   notify: Restart collectd
 
 - name: Set ModulePath in cephmetrics.conf
index a2b5f22ed1b7721e60ae5eef2743980241863943..2672066f93f476f7f04fafd67911e120216770e3 100644 (file)
@@ -28,7 +28,7 @@
 #   ... and so on
 - name: Set dashboards var keys
   set_fact:
-    dashboards: "{% for item in dashboard_files.results %}{{ dashboards.update({item.stat.path.split('/')[-1].split('.')[:-1]|join('.'): {'body': lookup('file', item.stat.path)|from_json }}) }}{% endfor %}{{ dashboards }}"
+    dashboards: "{% for item in dashboard_files.results %}{{ dashboards.update({item.stat.path.split('/')[-1].split('.')[:-1]|join('.'): {'body': lookup('file', item.stat.path)|from_json }}) }}{% endfor %}{{ dashboards }}"  # noqa 204
   no_log: true
 
 # If the dashboards have been previously deployed, we need the ID so that we
index 16fc5c6f3ebd3cc9755992b99f58825e886cbfcb..02b77b4139f22cc799acc37c5a6dec4b89fd7ef0 100644 (file)
@@ -1,7 +1,7 @@
 ---
 - name: Resize whisper databases
   # xargs -P parallelizes execution; scale it to the number of cores on the system
-  shell: "find /var/lib/carbon/whisper -name '*.wsp' -print0 | xargs -n1 -0 -P {{ ansible_processor_vcpus }} -I {} whisper-resize {} {{ whisper_retention.replace(',', ' ') }}"
+  shell: "find /var/lib/carbon/whisper -name '*.wsp' -print0 | xargs -n1 -0 -P {{ ansible_processor_vcpus }} -I {} whisper-resize {} {{ whisper_retention.replace(',', ' ') }}"  # noqa 204
   register: whisper_resize
   failed_when: "'Traceback' in whisper_resize.stdout"
   no_log: true
index f8dbcd0abaaeafc8fbaa013cf76136fc430f566f..acfdde0f46350b693e6f53d934182e765aa3283d 100644 (file)
@@ -1,5 +1,5 @@
 ---
 - name: Combine default settings and user-defined variables
-  set_fact: {"{{ item }}": "{% if vars[item] is not defined %}{{ defaults[item] }}{% elif vars[item] is mapping %}{{ defaults[item]|combine(vars[item]|default({})) }}{% else %}{{ vars[item] }}{% endif %}"}
+  set_fact: {"{{ item }}": "{% if vars[item] is not defined %}{{ defaults[item] }}{% elif vars[item] is mapping %}{{ defaults[item]|combine(vars[item]|default({})) }}{% else %}{{ vars[item] }}{% endif %}"}  # noqa 204
   with_items: "{{ defaults.keys() }}"
   no_log: true