-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c6fa13
commit c1c82b3
Showing
1 changed file
with
4 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,32 +3,12 @@ | |
</p> | ||
|
||
|
||
# proxbox | ||
Netbox plugin which integrates Proxmox and Netbox using proxmoxer and pynetbox. | ||
|
||
|
||
## Installation | ||
|
||
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install **proxbox**. | ||
|
||
1. Install informing GitHub self credentials (user and password) | ||
|
||
```bash | ||
pip3 install git+https://github.com/N-Multifibra/netbox-proxbox.git | ||
|
||
``` | ||
2. Install using @emerpereira token (meant to be used on scripts) | ||
|
||
```bash | ||
pip3 install git+https://[email protected]/N-Multifibra/netbox-proxbox.git | ||
``` | ||
|
||
## Usage | ||
|
||
Compare Netbox and Proxmox information and update VM on Netbox, if any difference found using the **Netbox VM ID** | ||
|
||
```python | ||
>>> import proxbox | ||
>>> from netbox_proxbox import proxbox_api | ||
|
||
>>> json_result = proxbox.update.virtual_machine(id = 1) | ||
>>> print(json_result) | ||
|
@@ -46,7 +26,7 @@ Compare Netbox and Proxmox information and update VM on Netbox, if any differenc | |
Compare Netbox and Proxmox information and update VM on Netbox, if any difference found using the **Proxmox VM ID** | ||
|
||
```python | ||
>>> import proxbox | ||
>>> from netbox_proxbox import proxbox_api | ||
|
||
>>> json_result = proxbox.update.virtual_machine(proxmox_id = 414) | ||
>>> print(json_result) | ||
|
@@ -65,7 +45,7 @@ Compare Netbox and Proxmox information and update VM on Netbox, if any differenc | |
Compare Netbox and Proxmox information and update VM on Netbox, if any difference found using the **VM Name** | ||
|
||
```python | ||
>>> import proxbox | ||
>>> from netbox_proxbox import proxbox_api | ||
|
||
>>> json_result = proxbox.update.virtual_machine(name = 'Netbox') | ||
>>> print(json_result) | ||
|
@@ -123,7 +103,7 @@ Updates all VM's at once on Netbox with the information gotten from Proxmox | |
Compare all VM's on Netbox with Proxmox and delete VM on Netbox if it doesn't exist on Proxmox. | ||
|
||
```python | ||
>>> import proxbox | ||
>>> from netbox_proxbox import proxbox_api | ||
|
||
>>> json_result = proxbox.remove.all() | ||
>>> print(json_result) | ||
|
@@ -152,7 +132,3 @@ Compare all VM's on Netbox with Proxmox and delete VM on Netbox if it doesn't ex | |
} | ||
] | ||
``` | ||
|
||
--- | ||
|
||
[Workflow do ProxBox](https://whimsical.com/proxbox-integracao-netbox-e-proxmox-XtrSijkFx2ZUKmkcAZqoUx) |