Skip to content

Commit bff6368

Browse files
authored
Merge pull request #2 from StackStorm-Exchange/LH/metadata
updated readme, metadata
2 parents 4da694f + d7cbb4a commit bff6368

11 files changed

+43
-21
lines changed

README.md

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,36 @@
11
# stackstorm-netbox
2-
Stackstorm pack for netbox integration
2+
3+
[NetBox](https://github.com/digitalocean/netbox) is an Open Source IPAM and DCIM tool
4+
maintained by Digital Ocean.
5+
6+
## Configuration
7+
8+
Copy the example configuration in [netbox.yaml.example](./netbox.yaml.example)
9+
to `/opt/stackstorm/configs/netbox.yaml` and edit as required.
10+
11+
It should look like this:
12+
13+
```yaml
14+
---
15+
hostname: "netbox.corp.lan"
16+
api_token: "aaabbbccc111222333"
17+
use_https: true
18+
ssl_verify: true
19+
```
20+
21+
After editing, run `sudo st2ctl reload --register-configs` to ensure your configuration
22+
is loaded.
323

424
## Actions
525

626
### DCIM
7-
- **dcim_get_devices**: Get device(s) via optional parameters
8-
- **dcim_get_interfaces**: Get interface(s) via optional parameters
9-
- **dcim_get_sites**: Get site(s) via optional parameters
27+
- **dcim\_get\_devices**: Get device(s) via optional parameters
28+
- **dcim\_get\_interfaces**: Get interface(s) via optional parameters
29+
- **dcim\_get\_sites**: Get site(s) via optional parameters
1030

1131
### IPAM
12-
- **ipam_get_ip_addresses**: Get IP Address(es) via optional parameters
13-
- **ipam_get_vlan_groups**: Get VLAN Group(s) via optional parameters
14-
- **ipam_get_vlans**: Get VLAN(s) via optional parameters
15-
- **ipam_get_vrfs**: Get VRF(s) via optional parameters
16-
- **ipam_get_prefixes**: Get Prefix(es) via optional parameters
32+
- **ipam\_get\_ip\_addresses**: Get IP Address(es) via optional parameters
33+
- **ipam\_get\_vlan\_groups**: Get VLAN Group(s) via optional parameters
34+
- **ipam\_get\_vlans**: Get VLAN(s) via optional parameters
35+
- **ipam\_get\_vrfs**: Get VRF(s) via optional parameters
36+
- **ipam\_get\_prefixes**: Get Prefix(es) via optional parameters

actions/dcim_get_devices.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: dcim_get_devices
33
pack: netbox
44
runner_type: "python-script"
5-
description: Get device(s) from netbox
5+
description: Get device(s) from NetBox
66
enabled: true
77
entry_point: base_get_action.py
88
parameters:

actions/dcim_get_interfaces.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: dcim_get_interfaces
33
pack: netbox
44
runner_type: "python-script"
5-
description: Get interface(s) from netbox
5+
description: Get interface(s) from NetBox
66
enabled: true
77
entry_point: base_get_action.py
88
parameters:

actions/dcim_get_sites.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: dcim_get_sites
33
pack: netbox
44
runner_type: "python-script"
5-
description: Get site(s) from netbox
5+
description: Get site(s) from NetBox
66
enabled: true
77
entry_point: base_get_action.py
88
parameters:

actions/ipam_get_ip_addresses.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: ipam_get_ip_addresses
33
pack: netbox
44
runner_type: "python-script"
5-
description: Get ip addresses from netbox
5+
description: Get IP addresses from NetBox
66
enabled: true
77
entry_point: base_get_action.py
88
parameters:
@@ -20,7 +20,7 @@ parameters:
2020
description: IP Address parent prefix
2121
mask_length:
2222
type: integer
23-
description: Subnet mask length (CIRD bits)
23+
description: Subnet mask length (CIDR bits)
2424
vrf_id:
2525
type: integer
2626
description: ID of the VRF

actions/ipam_get_prefixes.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: ipam_get_prefixes
33
pack: netbox
44
runner_type: "python-script"
5-
description: Get prefixes from netbox
5+
description: Get prefixes from NetBox
66
enabled: true
77
entry_point: base_get_action.py
88
parameters:
@@ -20,7 +20,7 @@ parameters:
2020
description: Parent prefix
2121
mask_length:
2222
type: integer
23-
description: Subnet mask length (CIRD bits)
23+
description: Subnet mask length (CIDR bits)
2424
vrf_id:
2525
type: integer
2626
description: ID of the VRF

actions/ipam_get_vlan_groups.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: ipam_get_vlan_groups
33
pack: netbox
44
runner_type: "python-script"
5-
description: Get VLAN Group(s) from netbox
5+
description: Get VLAN Group(s) from NetBox
66
enabled: true
77
entry_point: base_get_action.py
88
parameters:

actions/ipam_get_vlans.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: ipam_get_vlans
33
pack: netbox
44
runner_type: "python-script"
5-
description: Get VLAN(s) from netbox
5+
description: Get VLAN(s) from NetBox
66
enabled: true
77
entry_point: base_get_action.py
88
parameters:

actions/ipam_get_vrfs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: ipam_get_vrfs
33
pack: netbox
44
runner_type: "python-script"
5-
description: Get VRF(s) from netbox
5+
description: Get VRF(s) from NetBox
66
enabled: true
77
entry_point: base_get_action.py
88
parameters:

config.schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
hostname:
3-
description: "Hostname for the netbox server"
3+
description: "Hostname for the NetBox server"
44
type: "string"
55
required: true
66

0 commit comments

Comments
 (0)