]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
mgr: backward compatibility for module management
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 7 Aug 2018 12:46:07 +0000 (14:46 +0200)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Mon, 13 Aug 2018 13:25:06 +0000 (13:25 +0000)
commit36942af6983d60666f3f8a1a06b352a440a6c0da
tree5c27b4e0ca839183f5ccbae52751af3f07d86a63
parent8b5e3cd999ba4fa36c62e0d50a106a19f1f15067
mgr: backward compatibility for module management

Follow up on 3abc253fecc91f29c90e23ae95e1b83f8ffd3de6

The structure had even changed within `luminous` release.
It was first:

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

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

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

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-mgr/tasks/main.yml