]> git-server-git.apps.pok.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 16:18:52 +0000 (16:18 +0000)
commitc5d2eb24f3eb78b0fafb15cb778a0921e4bc7f0c
tree5a0439dc19bf94faa7ac43d7edbd6c607908d81a
parent94fb6ffdcbabb0e822c370189a25a2b3960cb0d6
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>
(cherry picked from commit 36942af6983d60666f3f8a1a06b352a440a6c0da)
roles/ceph-mgr/tasks/main.yml