Ansible playbooks to deploy Ceph, the distributed filesystem.
 
 
 
 
Go to file
Guillaume Abrioux deaf273b25 syntax: change local_action syntax
Use a nicer syntax for `local_action` tasks.
We used to have oneliner like this:
```
local_action: wait_for port=22 host={{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }} state=started delay=10 timeout=500 }}
```

The usual syntax:
```
    local_action:
      module: wait_for
      port: 22
      host: "{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}"
      state: started
      delay: 10
      timeout: 500
```
is nicer and kind of way to keep consistency regarding the whole
playbook.

This also fix a potential issue about missing quotation :

```
Traceback (most recent call last):
  File "/tmp/ansible_wQtWsi/ansible_module_command.py", line 213, in <module>
    main()
  File "/tmp/ansible_wQtWsi/ansible_module_command.py", line 185, in main
    rc, out, err = module.run_command(args, executable=executable, use_unsafe_shell=shell, encoding=None, data=stdin)
  File "/tmp/ansible_wQtWsi/ansible_modlib.zip/ansible/module_utils/basic.py", line 2710, in run_command
  File "/usr/lib64/python2.7/shlex.py", line 279, in split
    return list(lex)                                                                                                                                                                                                                                                                                                            File "/usr/lib64/python2.7/shlex.py", line 269, in next
    token = self.get_token()
  File "/usr/lib64/python2.7/shlex.py", line 96, in get_token
    raw = self.read_token()
  File "/usr/lib64/python2.7/shlex.py", line 172, in read_token
    raise ValueError, "No closing quotation"
ValueError: No closing quotation
```

writing `local_action: shell echo {{ fsid }} | tee {{ fetch_directory }}/ceph_cluster_uuid.conf`
can cause trouble because it's complaining with missing quotes, this fix solves this issue.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1510555

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2018-01-31 10:45:34 +01:00
contrib contrib: do not skip ci on backport 2017-12-14 17:23:02 +01:00
docker docker: add README documenting directory purpose 2016-09-21 18:21:50 -04:00
docs docs for creating encrypted OSDs with the lvm scenario 2018-01-24 14:10:08 +01:00
group_vars osd: resync group_vars file 2018-01-30 17:47:15 +01:00
infrastructure-playbooks syntax: change local_action syntax 2018-01-31 10:45:34 +01:00
library ceph-volume: adds a dmcrypt param to the ceph_volume module 2018-01-24 14:10:08 +01:00
plugins/actions ceph-defaults: fix handlers that are always triggered 2017-10-13 16:15:27 +02:00
profiles Common: Add profiles 2017-07-19 11:50:03 +02:00
roles syntax: change local_action syntax 2018-01-31 10:45:34 +01:00
tests syntax: change local_action syntax 2018-01-31 10:45:34 +01:00
.gitignore common: do not run tasks in main.yml, use include 2016-12-09 16:00:46 +01:00
LICENSE Add Ceph Playbook 2014-03-03 19:08:51 +01:00
Makefile Makefile: handle "beta" Git tags 2018-01-12 14:45:19 +01:00
README-MULTISITE.md Experimental RGW Multisite Support 2016-08-16 14:57:01 -04:00
README.rst docs: remove the old README and link to the hosted docs 2017-08-17 16:03:04 -05:00
Vagrantfile Vagrantfile: Fixed repeated OSD controller creation 2017-12-11 11:24:55 +01:00
action_plugins Adding symlink to action_plugins so this works in ansible tower 2016-12-12 10:57:51 -05:00
ansible.cfg ansible: set ssh retry option to 5 2018-01-23 16:16:20 +01:00
ceph-aio-no-vagrant.sh osd: simplify scenarios 2017-08-03 10:20:39 +02:00
ceph-ansible.spec.in ci: test on ansible 2.4.2 2018-01-11 17:27:42 +01:00
dummy-ansible-hosts Fix Travis 2015-01-21 16:33:26 +01:00
example-ansible-role-requirements.yml add a galaxy dependency file example 2016-02-12 15:55:42 +01:00
generate_group_vars_sample.sh generate_group_vars_sample: rhcs.yml.sample 2017-08-03 23:05:42 +02:00
monitor_keys_example Add Monitor Keys example 2015-01-30 16:17:46 +01:00
rhcs_edits.txt common: refactor installation method 2017-08-30 10:52:01 +02:00
rundep.sample Allow ceph-ansible to be run on a locally built/installed Ceph 2016-08-12 10:02:15 -04:00
rundep_installer.sh Allow ceph-ansible to be run on a locally built/installed Ceph 2016-08-12 10:02:15 -04:00
site-docker.yml.sample site-docker: ability to disable fact sharing 2017-12-19 17:22:11 +01:00
site.yml.sample ceph-common: Add initial support for openSUSE Leap distributions 2017-11-14 10:51:22 +00:00
test.yml remove rbd-mirror as well from testing. No packages are available yet 2016-04-12 07:38:13 -04:00
tox.ini ci: test on ansible 2.4.2 2018-01-11 17:27:42 +01:00
vagrant_variables.yml.atomic vagrantfile: Ensure `devices` variable is a list 2017-07-13 00:44:49 +02:00
vagrant_variables.yml.linode vagrant: use group_vars for ceph pkg source 2016-10-21 10:46:11 -04:00
vagrant_variables.yml.openstack vagrantfile: Ensure `devices` variable is a list 2017-07-13 00:44:49 +02:00
vagrant_variables.yml.sample vagrant_variables.yml.sample: Add openSUSE box 2017-11-14 10:51:23 +00:00

README.rst

ceph-ansible
============
Ansible playbooks for Ceph, the distributed filesystem.

Please refer to our hosted documentation here: http://docs.ceph.com/ceph-ansible/master/

You can view documentation for our ``stable-*`` branches by substituting ``master`` in the link
above for the name of the branch. For example: http://docs.ceph.com/ceph-ansible/stable-2.2/