Skip to main content

A Pulumi package for creating and managing Canonical Metal-As-A-Service (MAAS) resources.

Project description

pulumi_maas

A Pulumi package for creating and managing Canonical Metal-As-A-Service (MAAS) resources.

Prerequisites

Before you begin, make sure you have the following prerequisites installed and configured:

pulumi new python
pulumi stack init dev

Install pulumi-maas Python 3 package:

pip install pulumi-maas

Export MaaS variables:

export MAAS_API_VERSION=2.0
export MAAS_API_KEY=xxxxxxxx
export MAAS_API_URL=http://maas.example.org:5240/MAAS

Examples

Create a new domain

import pulumi
import pulumi_maas as maas

test_example_domain = maas.DnsDomain(
    "test_domain",
    name="test.example.org",
    ttl=3600,
    authoritative=True,
)

pulumi.export("test_example_domain", test_example_domain.id)

Launch Pulumi commands:

pulumi preview
pulumi up
pulumi destroy

Contributing

Contributions to this project are welcome! If you find any issues or have improvements to suggest, please open an issue or submit a pull request.

Acknowledgments

  • Pulumi Documentation
  • Metal as a Service (MaaS) Documentation

Go further

Publish this project

python3 setup.py sdist bdist_wheel
twine upload --repository pypi dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pulumi_maas-1.0.3.tar.gz (32.2 kB view hashes)

Uploaded Source

Built Distribution

pulumi_maas-1.0.3-py3-none-any.whl (104.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page