Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juhnny5/pulumi-netbox
A Pulumi package for creating and managing Netbox resources
https://github.com/juhnny5/pulumi-netbox
netbox pulumi
Last synced: about 12 hours ago
JSON representation
A Pulumi package for creating and managing Netbox resources
- Host: GitHub
- URL: https://github.com/juhnny5/pulumi-netbox
- Owner: juhnny5
- Created: 2023-10-31T15:37:31.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-31T16:57:44.000Z (about 1 year ago)
- Last Synced: 2023-11-01T16:44:43.277Z (about 1 year ago)
- Topics: netbox, pulumi
- Language: Python
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
pulumi new python
pulumi stack init dev
```Install `pulumi-netbox` Python 3 package:
```bash
pip install git+https://github.com/juhnny5/pulumi-netbox.git@3b60cf3136e158c640fa1510841df78ddfffddd5
```Store Netbox login infos:
```bash
pulumi config set netbox:serverUrl --secret
pulumi config set netbox:apiToken --secret
```## Examples
### Create a new user
```python
import pulumi
import pulumi_netbox as netboxpulumi_user = netbox.User(
"pulumi",
username="pulumi",
password="pulumi",
active=True,
staff=True
)pulumi.export("pulumi_user", pulumi_user.id)
```Launch Pulumi commands:
```bash
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
```bash
python3 setup.py sdist bdist_wheel
twine upload --repository pypi dist/*
```