Merge pull request #852 from rootfs/doc-fix

be explicit on Atomic VirtualBox instruction
pull/853/head
Leseb 2016-06-20 11:00:52 +02:00 committed by GitHub
commit d679eacd46
4 changed files with 21 additions and 37 deletions

View File

@ -242,7 +242,7 @@ Attention, ceph-common doesn't manage backports repository, you must add it your
If you want to run containerized deployment on Atomic systems (RHEL/CentOS Atomic), please copy If you want to run containerized deployment on Atomic systems (RHEL/CentOS Atomic), please copy
[vagrant.yml.atomic](vagrant_variables.yml.atomic) to vagrant_variables.yml, and copy [group_vars/all.docker](group_vars/all.docker) to `group_vars/all`. [vagrant.yml.atomic](vagrant_variables.yml.atomic) to vagrant_variables.yml, and copy [group_vars/all.docker](group_vars/all.docker) to `group_vars/all`.
Since `centos/atomic-host` doesn't have spare storage controller to attach more disks, it is likely the first time `vagrant up --provider=virtualbox` runs, it will fail to attach to a storage controller. In such case, run the following command: Since `centos/atomic-host` VirtualBox box doesn't have spare storage controller to attach more disks, it is likely the first time `vagrant up --provider=virtualbox` runs, it will fail to attach to a storage controller. In such case, run the following command:
```console ```console
VBoxManage storagectl `VBoxManage list vms |grep ceph-ansible_osd0|awk '{print $1}'|tr \" ' '` --name "SATA" --add sata VBoxManage storagectl `VBoxManage list vms |grep ceph-ansible_osd0|awk '{print $1}'|tr \" ' '` --name "SATA" --add sata

View File

@ -91,6 +91,14 @@
tags: tags:
with_pkg with_pkg
- name: start docker service
service:
name: docker
state: started
enabled: yes
tags:
with_pkg
# NOTE (jimcurtis): need at least version 1.9.0 of six or we get: # NOTE (jimcurtis): need at least version 1.9.0 of six or we get:
# re:NameError: global name 'DEFAULT_DOCKER_API_VERSION' is not defined # re:NameError: global name 'DEFAULT_DOCKER_API_VERSION' is not defined
- name: install six - name: install six

View File

@ -8,34 +8,26 @@
owner: "root" owner: "root"
group: "root" group: "root"
mode: "0644" mode: "0644"
when: when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
is_atomic or
ansible_os_family == 'CoreOS'
- name: link systemd unit file for mds instance - name: link systemd unit file for mds instance
file: file:
src: /var/lib/ceph/ceph-mds@.service src: /var/lib/ceph/ceph-mds@.service
dest: /etc/systemd/system/multi-user.target.wants/ceph-mds@{{ ansible_hostname }}.service dest: /etc/systemd/system/multi-user.target.wants/ceph-mds@{{ ansible_hostname }}.service
state: link state: link
when: when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
is_atomic or
ansible_os_family == 'CoreOS'
- name: enable systemd unit file for mds instance - name: enable systemd unit file for mds instance
command: systemctl enable /etc/systemd/system/multi-user.target.wants/ceph-mds@{{ ansible_hostname }}.service command: systemctl enable /etc/systemd/system/multi-user.target.wants/ceph-mds@{{ ansible_hostname }}.service
failed_when: false failed_when: false
changed_when: false changed_when: false
when: when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
is_atomic or
ansible_os_family == 'CoreOS'
- name: reload systemd unit files - name: reload systemd unit files
command: systemctl daemon-reload command: systemctl daemon-reload
changed_when: false changed_when: false
failed_when: false failed_when: false
when: when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
is_atomic or
ansible_os_family == 'CoreOS'
- name: systemd start mds container - name: systemd start mds container
service: service:
@ -43,9 +35,7 @@
state: started state: started
enabled: yes enabled: yes
changed_when: false changed_when: false
when: when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
is_atomic or
ansible_os_family == 'CoreOS'
- name: run the ceph metadata docker image - name: run the ceph metadata docker image
docker: docker:
@ -55,6 +45,4 @@
state: running state: running
env: "CEPH_DAEMON=MDS,CEPHFS_CREATE=1,{{ ceph_mds_docker_extra_env }}" env: "CEPH_DAEMON=MDS,CEPHFS_CREATE=1,{{ ceph_mds_docker_extra_env }}"
volumes: "/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph" volumes: "/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph"
when: when: ansible_os_family != 'RedHat' and ansible_os_family != 'CoreOS'
not is_atomic and
ansible_os_family != 'CoreOS'

View File

@ -8,34 +8,26 @@
owner: "root" owner: "root"
group: "root" group: "root"
mode: "0644" mode: "0644"
when: when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
is_atomic or
ansible_os_family == 'CoreOS'
- name: link systemd unit file for rgw instance - name: link systemd unit file for rgw instance
file: file:
src: /var/lib/ceph/ceph-rgw@.service src: /var/lib/ceph/ceph-rgw@.service
dest: /etc/systemd/system/multi-user.target.wants/ceph-rgw@{{ ansible_hostname }}.service dest: /etc/systemd/system/multi-user.target.wants/ceph-rgw@{{ ansible_hostname }}.service
state: link state: link
when: when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
is_atomic or
ansible_os_family == 'CoreOS'
- name: enable systemd unit file for rgw instance - name: enable systemd unit file for rgw instance
shell: systemctl enable /etc/systemd/system/multi-user.target.wants/ceph-rgw@{{ ansible_hostname }}.service shell: systemctl enable /etc/systemd/system/multi-user.target.wants/ceph-rgw@{{ ansible_hostname }}.service
failed_when: false failed_when: false
changed_when: false changed_when: false
when: when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
is_atomic or
ansible_os_family == 'CoreOS'
- name: reload systemd unit files - name: reload systemd unit files
shell: systemctl daemon-reload shell: systemctl daemon-reload
changed_when: false changed_when: false
failed_when: false failed_when: false
when: when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
is_atomic or
ansible_os_family == 'CoreOS'
- name: systemd start rgw container - name: systemd start rgw container
service: service:
@ -43,9 +35,7 @@
state: started state: started
enabled: yes enabled: yes
changed_when: false changed_when: false
when: when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
is_atomic or
ansible_os_family == 'CoreOS'
- name: run the rados gateway docker image - name: run the rados gateway docker image
docker: docker:
@ -56,6 +46,4 @@
state: running state: running
env: "CEPH_DAEMON=RGW,{{ ceph_rgw_docker_extra_env }}" env: "CEPH_DAEMON=RGW,{{ ceph_rgw_docker_extra_env }}"
volumes: "/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph" volumes: "/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph"
when: when: ansible_os_family != 'RedHat' and ansible_os_family != 'CoreOS'
not is_atomic and
ansible_os_family != 'CoreOS'