Merge ceph info roles 45/39845/2
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Tue, 22 Aug 2017 07:52:21 +0000 (15:52 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Tue, 22 Aug 2017 07:55:16 +0000 (15:55 +0800)
Change-Id: I83be70cf24be2a9da0a0f82e44810b1e9ff2b3b8
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
resources/ansible_roles/ceph-disk-info/meta/main.yml [deleted file]
resources/ansible_roles/ceph-info/meta/main.yml [moved from resources/ansible_roles/ceph-cache-info/meta/main.yml with 90% similarity]
resources/ansible_roles/ceph-info/tasks/cache.yml [moved from resources/ansible_roles/ceph-cache-info/tasks/main.yml with 100% similarity]
resources/ansible_roles/ceph-info/tasks/disk.yml [moved from resources/ansible_roles/ceph-disk-info/tasks/main.yml with 100% similarity]
resources/ansible_roles/ceph-info/tasks/main.yml [moved from resources/ansible_roles/ceph-network-info/meta/main.yml with 83% similarity]
resources/ansible_roles/ceph-info/tasks/network.yml [moved from resources/ansible_roles/ceph-network-info/tasks/main.yml with 96% similarity]

diff --git a/resources/ansible_roles/ceph-disk-info/meta/main.yml b/resources/ansible_roles/ceph-disk-info/meta/main.yml
deleted file mode 100644 (file)
index dbfbfb3..0000000
+++ /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-disk-info }
@@ -11,4 +11,4 @@
 
 allow_duplicates: yes
 dependencies:
-- { role: qtip-common, basename: ceph-cache-info }
+- { role: qtip-common, basename: ceph-info }
@@ -9,6 +9,6 @@
 
 ---
 
-allow_duplicates: yes
-dependencies:
-  - { role: qtip-common, basename: ceph-network-info }
+- include: cache.yml
+- include: disk.yml
+- include: network.yml
@@ -9,7 +9,7 @@
 
 
 - name: get system network info
-  shell: netstat -nr |grep  "U" | awk '{printf "interface %s network %s mask  %s \n",$8,$1, $3 }' 
+  shell: netstat -nr |grep  "U" | awk '{printf "interface %s network %s mask  %s \n",$8,$1, $3 }'
   register: ceph_network_out
 
 - name: saving output to log
@@ -29,7 +29,7 @@
       - cluster_network
   delegate_to: localhost
 
-- name: append 
+- name: append
   lineinfile:
       dest: "{{ logfile }}"
       line: "cluster_network {{ cluster_network }}"