ceph-ansible/roles/ceph-mgr
Guillaume Abrioux 3abc253fec mgr: fix enabling of mgr module on mimic
The data structure has slightly changed on mimic.

Prior to mimic, it used to be:

```
{
    "enabled_modules": [
        "status"
    ],
    "disabled_modules": [
        "balancer",
        "dashboard",
        "influx",
        "localpool",
        "prometheus",
        "restful",
        "selftest",
        "zabbix"
    ]
}
```

From mimic it looks like this:

```
{
    "enabled_modules": [
        "status"
    ],
    "disabled_modules": [
        {
            "name": "balancer",
            "can_run": true,
            "error_string": ""
        },
        {
            "name": "dashboard",
            "can_run": true,
            "error_string": ""
        }
    ]
}
```

This means we can't simply check if `item` is in `item in
_ceph_mgr_modules.disabled_modules`

the idea here is to use filter `map(attribute='name')` to build a list
when deploying mimic.

Fixes: #2766

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2018-07-03 21:19:16 +00:00
..
defaults refactor the way we copy keys 2018-04-18 16:46:33 +02:00
meta ceph-mgr: Add support for openSUSE Leap distributions 2017-11-14 10:51:23 +00:00
tasks mgr: fix enabling of mgr module on mimic 2018-07-03 21:19:16 +00:00
templates Expose /var/run/ceph 2018-04-20 15:48:32 +02:00
LICENSE mgr: add new role for ceph-mgr 2017-04-10 15:13:09 +02:00
README.md Cleanup readme files in roles directories 2017-10-17 11:22:06 +02:00

README.md

Ansible role: ceph-mgr

Documentation is available at http://docs.ceph.com/ceph-ansible/.