Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On Sat, Sep 12, 2015 at 01:43:30PM +0200, Roland Kammerer wrote: > On Sat, Sep 12, 2015 at 12:31:54PM +0200, Dietmar Maurer wrote: > > { > 'nodes': [{'storage-plugin': 'drbdmanage.storage.lvm_thinlv.LvmThinLV', > 'name': 'YOURNODENAME'}], > 'globals': [{}], 'type': [{'type': 'node'}], > 'sites': [], 'plugins': [] > } > > As you can see, 'nodes' is a list of dictionaries, so you can set up all > your nodes with one API call. To be more precise on setting up multiple nodes: If you want to set up the 'storage-plugin' setting for multiple nodes, you then would have to change 'type' to: 'type': [{'type': 'global'}], Plugin settings themselves are always node specific. This is then were you would use 'type' 'node' and where you would set up plugin settings for that node in the 'plugin' list. And this is then a API call per node. But as far is I know you just want to set up the 'storage-plugin' setting and use the default values... So, 'type' 'global' to set up values for multipel nodes (like 'storage-plugin'). And then per node API calls with 'type' 'node' if you want to configure the plugin itself. Regards, rck