diff options
author | grakiss <grakiss.wanglei@huawei.com> | 2016-02-02 01:51:48 -0500 |
---|---|---|
committer | grakiss <grakiss.wanglei@huawei.com> | 2016-02-02 01:51:48 -0500 |
commit | ab99a7ee4e93b3a34f7a600461f7761a97b2c715 (patch) | |
tree | cb0ed964c1a0782da64cf895af9501c0630ca500 /deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_RedHat.yml | |
parent | 1f6a0b442d6081811f90557cb7d56b16e211079d (diff) |
Remove redundant files of ceph-deploy
JIRA:COMPASS-300
- remove the task of ceph-deploy
Change-Id: Iec4a3e4185abe3da9ceedac5be38aa7de490fde8
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_RedHat.yml')
-rw-r--r-- | deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_RedHat.yml | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_RedHat.yml b/deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_RedHat.yml deleted file mode 100644 index f648a9ea..00000000 --- a/deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_RedHat.yml +++ /dev/null @@ -1,73 +0,0 @@ -############################################################################## -# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD 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 -############################################################################## ---- -- name: create ceph cluster - shell: cd {{ ceph_cluster_dir[0] }} && ceph-deploy new {{ mon_nodes.stdout_lines[0] }} - tags: - - create_ceph_cluster - -- name: default config for ceph - ini_file: - dest: "{{ ceph_cluster_dir[0] }}/ceph.conf" - section: "{{ item.section }}" - option: "{{ item.option }}" - value: "{{ item.value }}" - with_items: - - { section: "global", option: "osd_journal_size", value: "1024" } - - { section: "global", option: "osd_pool_default_size", value: "2" } - - { section: "global", option: "public_network", value: "{{ mgmt_cidr }}" } - - { section: "global", option: "cluster_network", value: "{{ storage_cidr }}" } - -- name: install ceph for every nodes includes jumpserver - shell: cd {{ ceph_cluster_dir[0] }} && ceph-deploy install --no-adjust-repos --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 {{ ceph_cluster_hosts.stdout_lines[0]}} - -- name: create monitor node in controller group - shell: cd {{ ceph_cluster_dir[0] }} && ceph-deploy --overwrite-conf mon create-initial - -- name: gather keys - shell: sleep 5 && cd {{ ceph_cluster_dir[0] }} && ceph-deploy gatherkeys {{ inventory_hostname }} - ignore_errors: True - -- name: copy create_osd.sh to host1 - copy: src=create_osd.sh dest=~/create_osd.sh mode=0777 - tags: - - create_osd - -- name: copy create_osd.sh to other nodes - shell: scp -o StrictHostKeyChecking=no ~/create_osd.sh {{ item }}:~/ - with_items: - - "{{ groups['ceph_osd'] }}" - tags: - - create_osd - -- name: create osd - shell: ssh -o StrictHostKeyChecking=no -t {{ item }} "~/create_osd.sh" - with_items: - - "{{ groups['ceph_osd'] }}" - tags: - - create_osd - -- name: prepare create osd - shell: cd {{ ceph_cluster_dir[0] }} && ceph-deploy osd prepare {{ item }}:/var/local/osd - with_items: - - "{{ groups['ceph_osd'] }}" - tags: - - create_osd - - -- name: activate osd - shell: cd {{ ceph_cluster_dir[0] }} && ceph-deploy osd activate {{ item }}:/var/local/osd - with_items: - - "{{ groups['ceph_osd'] }}" - tags: - - create_osd - - activate_osd - -- name: create admin node - shell: cd {{ ceph_cluster_dir[0] }} && ceph-deploy admin {{ ceph_cluster_hosts.stdout_lines[0] }} |