Terraform: support for maas provider?

Created on 12 Aug 2015  ยท  13Comments  ยท  Source: hashicorp/terraform

Any plans to support http://maas.ubuntu.com/ as a provider?

Thanks

enhancement new-provider

Most helpful comment

/reopen
This would be a really important project for us, though I'm not sure if we're a lone reed. The POC project mentioned above never really went anywhere and it hasn't been touched in a couple of years. That might be a clue about the need for it, but we are certainly wishing something existed.

All 13 comments

API docs are here, in case anyone wants to take a swing at it: http://maas.ubuntu.com/docs1.7/api.html

I hadn't heard of this before today. Is it popular?

:+1:

This would be huge. +1

Looks like MAAS has a _lot_ of resources. Is there a small, core set that could be implemented and solve (say) 80% of cases?

Starting with the capabilities offered by https://github.com/chef-partners/knife-maas would be perfect - i.e. assume that the MAAS server already exists but use terraform to do something with it. Basically just acquiring/booting up a node and getting an SSH key onto it so that you could run a terraform chef/other provisioner.

I created a very basic maas provider for terraform here: https://github.com/negronjl/terraform-provider-maas
It doesn't cover all of the functionality of either MAAS or Terraform but, it is a start.

Nice work @negronjl! I don't know MAAS at all but I think I understood that the way you'd use it is that you give it a catalog of all of your hardware ahead of time, and then maas_instance lets you find a machine that fits some criteria, boot it up, and allocate it to a particular task. Is that right?

If you'd like to submit this to be included in official Terraform releases you can feel free to open a pull request. It looks like a great start!

Is there anything else I should be doing for this to go through ?

Hi, just to keep things clean .. we ran into some practical issues with our use of MAAS so decided not to use it any more. Specifically, the preparation of disk images was a bit awkward. So, this is no longer important for me, but you may wish to keep it for others. Thanks.

Hi all,

For now I suggest to use the terraform-provider-mass maintained by @negronjl. I'm going to close this, to be explicit that this is not something the Terraform team is planning to tackle at this time.

Thanks!

/reopen
This would be a really important project for us, though I'm not sure if we're a lone reed. The POC project mentioned above never really went anywhere and it hasn't been touched in a couple of years. That might be a clue about the need for it, but we are certainly wishing something existed.

The Terraform team at HashiCorp doesn't have the capacity to take on sole development/maintenence responsibility for a new MAAS provider right now, but if Canonical is interested in the development of a Terraform provider for MAAS they could contact the partnership team via the Provider Development Program.

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings