aboutsummaryrefslogtreecommitdiffstats
path: root/resources/ansible_roles/ceph-cache-info
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-08-22 15:52:21 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-08-22 15:55:16 +0800
commitc6d9fcbffa0146ef968be0594b4c1afe98c3ee57 (patch)
tree6d079198db602435658c5188148ab15163673a28 /resources/ansible_roles/ceph-cache-info
parent5041eb2f128eb2c9bb3c1715a4442fa5605eee6e (diff)
Merge ceph info roles
Change-Id: I83be70cf24be2a9da0a0f82e44810b1e9ff2b3b8 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/ansible_roles/ceph-cache-info')
-rw-r--r--resources/ansible_roles/ceph-cache-info/meta/main.yml14
-rw-r--r--resources/ansible_roles/ceph-cache-info/tasks/main.yml34
2 files changed, 0 insertions, 48 deletions
diff --git a/resources/ansible_roles/ceph-cache-info/meta/main.yml b/resources/ansible_roles/ceph-cache-info/meta/main.yml
deleted file mode 100644
index 29b2992e..00000000
--- a/resources/ansible_roles/ceph-cache-info/meta/main.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-##############################################################################
-# Copyright (c) 2017 ZTE Corporation and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
----
-
-allow_duplicates: yes
-dependencies:
-- { role: qtip-common, basename: ceph-cache-info }
diff --git a/resources/ansible_roles/ceph-cache-info/tasks/main.yml b/resources/ansible_roles/ceph-cache-info/tasks/main.yml
deleted file mode 100644
index 7e29a325..00000000
--- a/resources/ansible_roles/ceph-cache-info/tasks/main.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-##############################################################################
-# Copyright (c) 2017 ZTE Corporation and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-- fetch:
- src: /etc/ceph/ceph.conf
- dest: "{{ qtip_results }}/sysinfo-{{ inventory_hostname }}/"
- flat: yes
-
-- name: collect ceph catch info from ceph.conf
- set_fact: {"{{ item }}":"{{ lookup('ini', '{{ item }} section=client default='' file={{ qtip_results }}/sysinfo-{{ inventory_hostname }}/ceph.conf') }}"}
- with_items:
- - rbd_cache
- - rbd_cache_max_dirty
- - rdb_cache_size
- delegate_to: localhost
- ignore_errors: True
- register: result
-
-- name: saving output to log
- copy:
- content: "{{ item }} {{ item.stdout }}"
- dest: "{{ logfile }}"
- when: result|succeeded
- delegate_to: localhost
- with_items:
- - rbd_cache
- - rbd_cache_max_dirty
- - rdb_cache_size