mirror of https://github.com/ceph/ceph-ansible.git
c2f1dca823
We changed the way we declare image. Prior to this patch we must have a "user/image:tag" format, which is incompatible with non docker-hub registry where you usually don't have a "user". On the docker hub a "user" is also identified as a namespace, so for Ceph the user was "ceph". Variables have been simplified with only: * ceph_docker_image * ceph_docker_image_tag 1. For docker hub images: ceph_docker_name: "ceph/daemon" will give you the 'daemon' image of the 'ceph' user. 2. For non docker hub images: ceph_docker_name: "daemon" will simply give you the "daemon" image. Infrastructure playbooks have been modified as well. The file group_vars/all.docker.yml.sample has been removed as well. It is hard to maintain since we have to generate it manually. If you want to configure specific variables for a specific daemon simply edit group_vars/$DAEMON.yml Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1420207 Signed-off-by: Sébastien Han <seb@redhat.com> |
||
---|---|---|
.. | ||
defaults | ||
files | ||
handlers | ||
meta | ||
plugins/actions | ||
tasks | ||
templates | ||
LICENSE | ||
README.md |
README.md
Ansible role: Ceph Common
This role does several things prior to bootstrapping your Ceph cluster:
- Checks the system and validates that Ceph can be installed
- Tunes the operating system if the node is an OSD server
- Installs Ceph
- Generates
ceph.conf
Requirements
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.
Role variables
Have a look at defaults/main.yml
.
Mandatory variables
- Install source, choose one of these:
ceph_stable
ceph_dev
ceph_rhcs
ceph_custom
journal_size
monitor_interface
public_network
cluster_network
Handlers
- update apt cache
- restart ceph-mon
- restart ceph-osd
- restart ceph-mds
- restart ceph-rgw
- restart ceph-restapi
Dependencies
None
Example Playbook
- hosts: servers
remote_user: ubuntu
roles:
- { role: leseb.ceph-common }
Misc
This role is a mandatory dependency for the following roles:
- ceph-mon
- ceph-osd
- ceph-mds
- ceph-rgw
- ceph-restapi
Contribution
THIS REPOSITORY DOES NOT ACCEPT PULL REQUESTS. PULL REQUESTS MUST GO THROUGH CEPH-ANSIBLE.
License
Apache
Author Information
This role was created by Sébastien Han.