deploy ceph on compute nodes 73/2973/2
authorgraiss <grakiss.wanglei@huawei.com>
Mon, 2 Nov 2015 07:22:14 +0000 (15:22 +0800)
committergraiss <grakiss.wanglei@huawei.com>
Tue, 3 Nov 2015 09:59:07 +0000 (17:59 +0800)
JIRA:COMPASS-124
  - deploy ceph on compute nodes

Change-Id: I27bf8eb96309ada0519c951906eb484d5c72ab2e
Signed-off-by: graiss <grakiss.wanglei@huawei.com>
deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_Debian.yml
deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_RedHat.yml

index 06c28f2..2754360 100644 (file)
 - name: copy create_osd.sh to other nodes
   shell: scp -o StrictHostKeyChecking=no ~/create_osd.sh {{ item }}:~/
   with_items:
-    - "{{ groups['controller'] }}"
+    - "{{ groups['compute'] }}"
   tags:
     - create_osd
 
 - name: create osd
   shell: ssh -o StrictHostKeyChecking=no -t {{ item }} "~/create_osd.sh"
   with_items:
-    - "{{ groups['controller'] }}"
+    - "{{ groups['compute'] }}"
   tags:
     - create_osd
 
 - name: prepare create osd
   shell: cd {{ ceph_cluster_dir[0] }} && ceph-deploy osd prepare {{ item }}:/var/local/osd
   with_items:
-    - "{{ groups['controller'] }}"
+    - "{{ groups['compute'] }}"
   tags:
     - create_osd
 
@@ -44,7 +44,7 @@
 - name: activate osd
   shell: cd {{ ceph_cluster_dir[0] }} && ceph-deploy osd activate {{ item }}:/var/local/osd && ceph-deploy osd activate {{ item }}:/var/local/osd
   with_items:
-    - "{{ groups['controller'] }}"
+    - "{{ groups['compute'] }}"
   tags:
     - create_osd
     - activate_osd
index 6ce01b8..04ab1b5 100644 (file)
 - name: copy create_osd.sh to other nodes
   shell: scp -o StrictHostKeyChecking=no ~/create_osd.sh {{ item }}:~/
   with_items:
-    - "{{ groups['controller'] }}"
+    - "{{ groups['compute'] }}"
   tags:
     - create_osd
 
 - name: create osd
   shell: ssh -o StrictHostKeyChecking=no -t {{ item }} "~/create_osd.sh"
   with_items:
-    - "{{ groups['controller'] }}"
+    - "{{ groups['compute'] }}"
   tags:
     - create_osd
 
 - name: prepare create osd
   shell: cd {{ ceph_cluster_dir[0] }} && ceph-deploy --repo-url http://10.1.0.12/cblr/repo_mirror/centos7-juno-ppa --gpg-url http://10.1.0.12/cblr/repo_mirror/centos7-juno-ppa/ceph_key_release.asc osd prepare {{ item }}:/var/local/osd
   with_items:
-    - "{{ groups['controller'] }}"
+    - "{{ groups['compute'] }}"
   tags:
     - create_osd
 
@@ -44,7 +44,7 @@
 - name: activate osd
   shell: cd {{ ceph_cluster_dir[0] }} && ceph-deploy --repo-url http://10.1.0.12/cblr/repo_mirror/centos7-juno-ppa --gpg-url http://10.1.0.12/cblr/repo_mirror/centos7-juno-ppa/ceph_key_release.asc osd activate {{ item }}:/var/local/osd
   with_items:
-    - "{{ groups['controller'] }}"
+    - "{{ groups['compute'] }}"
   tags:
     - create_osd
     - activate_osd