Resource pools (deb/2.9/CLI)
Resource pools allow administrators to logically group resources – machines and VM hosts – into pools. Pools can help you budget machines for a particular set of functions. For example, if you’re using MAAS to manage a hospital data centre, you may want to keep a certain number of machines reserved for provider use, whether that be for the charts, documentation, or orders application. You can use resource pools to reserve those machines, regardless of which of the three applications you end up loading onto a particular machine at any given time.
Seven questions you may have:
- How can I create a resource pool?
- How can I list available resource pools?
- How can I list a single resource pool?
- How can I update a resource pool?
- How can I delete a resource pool?
- How can I add a machine to a resource pool?
- How can I get started with MAAS CLI?
Here’s an example that demonstrates how to create a new resource pool named
maas $PROFILE resource-pools create name=myresource description="A new resource pool."
description field is optional.
maas $PROFILE resource-pools read
maas $PROFILE resource-pool read $RESOURCE_POOL_ID
maas $PROFILE resource-pool update $RESOURCE_POOL_ID name=newname description="A new description."
description fields are optional.
maas $PROFILE resource-pool delete $RESOURCE_POOL_ID
maas $PROFILE machine update $SYSTEM_ID pool=$POOL_NAME