Skip to content

A Pulumi package for creating and managing Netbox resources

Notifications You must be signed in to change notification settings

juhnny5/pulumi-netbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pulumi_netbox

A Pulumi package for creating and managing Netbox resources.

Prerequisites

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

pulumi new python
pulumi stack init dev

Install pulumi-netbox Python 3 package:

pip install git+https://github.com/juhnny5/pulumi-netbox.git@3b60cf3136e158c640fa1510841df78ddfffddd5

Store Netbox login infos:

pulumi config set netbox:serverUrl <NETBOX_URL> --secret
pulumi config set netbox:apiToken <NETBOX_API_TOKEN> --secret

Examples

Create a new user

import pulumi
import pulumi_netbox as netbox

pulumi_user = netbox.User(
    "pulumi",
    username="pulumi",
    password="pulumi",
    active=True,
    staff=True
)

pulumi.export("pulumi_user", pulumi_user.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
  • Netbox Documentation

Go further

Publish this project

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

About

A Pulumi package for creating and managing Netbox resources

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages