2015-08-06 21:13:46 +08:00
|
|
|
# Ansible role: Ceph Common
|
2015-07-25 16:40:00 +08:00
|
|
|
|
2015-08-06 21:13:46 +08:00
|
|
|
This role does several things prior to bootstrapping your Ceph cluster:
|
2015-07-25 16:40:00 +08:00
|
|
|
|
2015-08-06 21:13:46 +08:00
|
|
|
* Checks the system and validates that Ceph can be installed
|
2015-07-25 16:40:00 +08:00
|
|
|
* Tunes the operating system if the node is an OSD server
|
|
|
|
* Installs Ceph
|
2015-08-06 21:13:46 +08:00
|
|
|
* Generates `ceph.conf`
|
2015-07-25 16:40:00 +08:00
|
|
|
|
|
|
|
# Requirements
|
|
|
|
|
2016-02-09 21:05:05 +08:00
|
|
|
Move the `plugins/actions/config_template.py` file to your top level playbook directory.
|
|
|
|
Edit your `ansible.cfg` like so:
|
|
|
|
|
|
|
|
action_plugins = plugins/actions
|
|
|
|
|
|
|
|
Depending on how you are managing your playbook, the path might be different so edit the file accordingly if necessary.
|
2015-07-25 16:40:00 +08:00
|
|
|
|
|
|
|
# Role variables
|
|
|
|
|
2015-08-06 21:13:46 +08:00
|
|
|
Have a look at `defaults/main.yml`.
|
2015-07-25 16:40:00 +08:00
|
|
|
|
|
|
|
## Mandatory variables
|
|
|
|
|
2015-08-06 22:27:52 +08:00
|
|
|
* Install source, choose one of these:
|
2015-07-25 16:40:00 +08:00
|
|
|
* `ceph_stable`
|
|
|
|
* `ceph_dev`
|
|
|
|
* `ceph_stable_ice`
|
|
|
|
* `ceph_stable_rh_storage`
|
|
|
|
* `journal_size`
|
|
|
|
* `monitor_interface`
|
2015-08-06 21:13:46 +08:00
|
|
|
* `public_network`
|
2015-07-25 16:40:00 +08:00
|
|
|
* `cluster_network`
|
|
|
|
|
|
|
|
## Handlers
|
|
|
|
|
2015-08-06 22:27:52 +08:00
|
|
|
* update apt cache
|
2015-07-25 16:40:00 +08:00
|
|
|
* restart ceph-mon
|
|
|
|
* restart ceph-osd
|
|
|
|
* restart ceph-mds
|
|
|
|
* restart ceph-rgw
|
|
|
|
* restart ceph-restapi
|
2015-08-06 22:27:52 +08:00
|
|
|
* restart apache2
|
2015-07-25 16:40:00 +08:00
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
|
2015-08-06 22:29:30 +08:00
|
|
|
None
|
2015-07-25 16:40:00 +08:00
|
|
|
|
|
|
|
# Example Playbook
|
|
|
|
|
|
|
|
```
|
|
|
|
- hosts: servers
|
|
|
|
remote_user: ubuntu
|
|
|
|
roles:
|
|
|
|
- { role: leseb.ceph-common }
|
|
|
|
```
|
|
|
|
|
|
|
|
# Misc
|
|
|
|
|
2015-08-06 22:27:52 +08:00
|
|
|
This role is a **mandatory** dependency for the following roles:
|
2015-07-25 16:40:00 +08:00
|
|
|
|
|
|
|
* ceph-mon
|
|
|
|
* ceph-osd
|
|
|
|
* ceph-mds
|
|
|
|
* ceph-rgw
|
|
|
|
* ceph-restapi
|
|
|
|
|
2015-07-25 17:10:39 +08:00
|
|
|
# Contribution
|
|
|
|
|
2015-08-06 21:13:46 +08:00
|
|
|
**THIS REPOSITORY DOES NOT ACCEPT PULL REQUESTS**.
|
2015-08-06 21:15:42 +08:00
|
|
|
**PULL REQUESTS MUST GO THROUGH [CEPH-ANSIBLE](https://github.com/ceph/ceph-ansible)**.
|
2015-07-25 17:10:39 +08:00
|
|
|
|
2015-07-25 16:40:00 +08:00
|
|
|
# License
|
|
|
|
|
|
|
|
Apache
|
|
|
|
|
|
|
|
# Author Information
|
|
|
|
|
|
|
|
This role was created by [Sébastien Han](http://sebastien-han.fr/).
|