Ansible playbooks to deploy Ceph, the distributed filesystem.
 
 
 
 
Go to file
Guillaume Abrioux ba6c3a8e6b config: look up for monitor_address_block in hostvars
`monitor_address_block` should be read from hostvars[host] instead of
current node being played.

eg:

Let's assume we have:

```
[mons]
ceph-mon0 monitor_address=192.168.1.10
ceph-mon1 monitor_interface=eth1
ceph-mon2 monitor_address_block=192.168.1.0/24
```

the ceph.conf generation task will end up with:

```
fatal: [ceph-mon0]: FAILED! => {}

MSG:

'ansible.vars.hostvars.HostVarsVars object' has no attribute u'ansible_interface'
```

the reason is that it will assume `monitor_address_block` isn't defined even on
ceph-mon2 because looking for `monitor_address_block` instead of
`hostvars[host]['monitor_address_block']`, therefore it enters in the condition as default value:

```
    {%- else -%}
      {% set interface = 'ansible_' + (monitor_interface | replace('-', '_')) %}
      {% if ip_version == 'ipv4' -%}
        {{ hostvars[host][interface][ip_version]['address'] }}
      {%- elif ip_version == 'ipv6' -%}
        [{{ hostvars[host][interface][ip_version][0]['address'] }}]
      {%- endif %}
    {%- endif %}
```

`monitor_interface` is set with default value `'interface'` so the `interface`
variable is built with 'ansible_' + 'interface'. It makes ansible throwing a
confusing message about `'ansible_interface'`.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1635303

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 6130bc841d)
2018-10-02 21:54:09 +00: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 tests: pin sphinx version to 1.7.9 2018-09-13 13:24:40 +02:00
group_vars remove warning for unsupported variables 2018-08-28 22:47:50 +00:00
infrastructure-playbooks purge: actually remove of /var/lib/ceph/* 2018-09-27 21:42:43 +02:00
library igw: fix image removal during purge 2018-07-31 10:09:08 +02:00
plugins config_template: resync with upstream 2018-04-23 10:17:24 +02:00
profiles Common: Add profiles 2017-07-19 11:50:03 +02:00
roles config: look up for monitor_address_block in hostvars 2018-10-02 21:54:09 +00:00
tests tests: followup on b89cc1746f 2018-09-14 18:22:12 +00:00
.gitignore Revert "add .vscode/ to gitignore" 2018-04-27 13:20:04 +02:00
LICENSE Add Ceph Playbook 2014-03-03 19:08:51 +01:00
Makefile Makefile: followup on #2585 2018-06-01 12:51:53 +02:00
README-MULTISITE.md Experimental RGW Multisite Support 2016-08-16 14:57:01 -04:00
README.rst Update Documentation example link to 3.0 2018-02-07 16:34:45 +01:00
RELEASE-NOTE.md release-note: stable-3.1 2018-08-23 13:16:29 +02:00
Vagrantfile tests: resync iscsigw group name with master 2018-08-13 12:24:59 +02:00
ansible.cfg Tune ansible.cfg 2018-03-14 13:51:13 +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 contrib: fix generate group_vars samples 2018-08-14 17:51:41 +00:00
monitor_keys_example Add Monitor Keys example 2015-01-30 16:17:46 +01:00
rhcs_edits.txt Resync rhcs_edits.txt 2018-08-08 15:54:32 +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.yml: remove useless condition 2018-08-23 15:31:28 +00:00
site.yml.sample sites: fix conditonnal 2018-08-27 21:29:32 +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 tests: do not upgrade ceph release for switch_to_containers scenario 2018-09-09 14:20:10 +02:00
vagrant_variables.yml.atomic vagrantfile: Ensure `devices` variable is a list 2017-07-13 00:44:49 +02:00
vagrant_variables.yml.linode remove kernel.pid_max 2018-02-23 13:57:57 +01:00
vagrant_variables.yml.openstack vagrantfile: Ensure `devices` variable is a list 2017-07-13 00:44:49 +02:00
vagrant_variables.yml.sample remove kernel.pid_max 2018-02-23 13:57:57 +01: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-3.0/