cephをインストールするための「ceph-ansible」ではありません。
単にcephパッケージのマニュアルインストールを手助けする「ansible」について記載してます

基本部分

cephに必要なパッケージを配布「ceph-package.yml」

- hosts: all
 
  tasks:
   - name: update all package
     yum: name=* state=latest
 
  tasks:
   - name: install ceph repository
     yum: name=https://download.ceph.com/rpm-octopus/el7/noarch/ceph-release-1-1.el7.noarch.rpm state=latest
 
   - name: install ceph'related pachage
     yum:
       name:
         - epel-release
         - snappy
         - gdisk
         - python-argparse
         - gperftools-libs
 
   - name: install ceph'related pachage from epel
     yum:
       name:
         - leveldb

っで

ansible-playbook -i mgr,mon1,mon2,mds,osd1,osd2,osd3,client ./tasks/ceph-package.yml

Ceph Monitor

「ceph-monitor.yml」

- hosts: all
 
  tasks:
   - name: install ceph-mon package
     yum:
      name:
        - ceph-selinux
        - ceph-mon
   - name: enable ceph-mon firewalld
     firewalld:
       service: ceph-mon
       state: enabled
       permanent: yes
       immediate: yes
ansible-playbook -i mgr,mon1,mon2, ./tasks/ceph-monitor.yml

Ceph Manager

「ceph-manager.yml」

- hosts: all
 
  tasks:
   - name: install ceph-mgr package
     yum:
      name:
        - ceph-selinux
        - ceph-mgr
   - name: enable ceph-mgr firewalld
     firewalld:
       service: ceph
       state: enabled
       permanent: yes
       immediate: yes
ansible-playbook -i mgr, ./tasks/ceph-manager.yml

Ceph OSDs

「ceph-osd.yml」

- hosts: all
 
  tasks:
   - name: install ceph-osd package
     yum:
      name:
        - ceph-selinux
        - ceph-osd
        - python36-six
        - python36-PyYAML
   - name: enable ceph-osd firewalld
     firewalld:
       service: ceph
       state: enabled
       permanent: yes
       immediate: yes
ansible-playbook -i osd1,osd2,osd3, ./tasks/ceph-osd.yml

Ceph Metadata Server

「ceph-mds.yml」

- hosts: all
 
  tasks:
   - name: install ceph-mds package
     yum:
      name:
        - ceph-selinux
        - ceph-osd
        - python36-six
        - python36-PyYAML
   - name: enable ceph-mds firewalld
     firewalld:
       service: ceph
       state: enabled
       permanent: yes
       immediate: yes
ansible-playbook -i mds, ./tasks/ceph-mds.yml

CephFS clients

「ceph-fs-client.yml」

- hosts: all
 
  tasks:
   - name: install ceph-fs-client package
     yum:
      name:
        - ceph-selinux
        - ceph-common
        - ceph-fuse
   - name: enable ceph-fs-client firewalld
     firewalld:
       service: ceph
       state: enabled
       permanent: yes
       immediate: yes
ansible-playbook -i client1, ./tasks/ceph-fs-client.yml.yml

トップ   編集 添付 複製 名前変更     ヘルプ   最終更新のRSS
Last-modified: 2021-03-06 (土) 15:58:44 (42d)