ceph-ansible/roles/ceph-common
Andrew Schoen bcf34d539f make mandatory variable checks only apply when needed
In our use case we might only be configuring mons and not osds in the
same call, so we don't want to check variables needed for osds when they
are not needed to configure a mon.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-02-16 10:43:36 -06:00
..
defaults ceph-common: calculate vm.min_free_kbytes 2016-02-15 15:03:10 +01:00
files Use new signed key for packages 2015-09-18 08:47:05 +02:00
handlers Support infernalis for rh storage 2015-12-15 22:07:45 +01:00
meta Define dependencies in ceph-common's meta/main.yml 2015-07-28 10:48:07 +01:00
plugins/actions Merge pull request #526 from mattt416/issue_525 2016-02-10 23:54:29 +01:00
tasks make mandatory variable checks only apply when needed 2016-02-16 10:43:36 -06:00
templates Using config_template 2015-12-16 17:19:50 +01:00
LICENSE Add READMEs for each roles 2015-07-25 10:51:53 +02:00
README.md Merge pull request #526 from mattt416/issue_525 2016-02-10 23:54:29 +01:00

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_stable_ice
    • ceph_stable_rh_storage
  • 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
  • restart apache2

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.