Skip to content

Commit 86249f0

Browse files
authored
Merge pull request #831 from netbox-community/devel
Release 3.8.0
2 parents 1601b15 + 1a0da30 commit 86249f0

File tree

89 files changed

+2305
-2207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+2305
-2207
lines changed

.github/ISSUE_TEMPLATE/feature_request.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: ✨ Feature Request
33
description: Propose a new NetBox Ansible modules feature or enhancement
44
title: "[Feature]: "
5-
labels: ["enhancement"]
5+
labels: ["Enhancement"]
66
body:
77
- type: markdown
88
attributes:

CHANGELOG.rst

+14
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ NetBox.NetBox Release Notes
55
.. contents:: Topics
66

77

8+
v3.8.0
9+
======
10+
11+
Minor Changes
12+
-------------
13+
14+
- Add action_group to enable module defaults groups [#800](https://github.com/netbox-community/ansible_modules/pull/800)
15+
- Expand on query_filter for site [#824](https://github.com/netbox-community/ansible_modules/pull/824)
16+
- nb_inventory - Allow API token to be templated [#806](https://github.com/netbox-community/ansible_modules/pull/806)
17+
- netbox_cable - Change length to float from int [#828](https://github.com/netbox-community/ansible_modules/pull/828)
18+
- netbox_device_interface - Add PoE attribute [#820](https://github.com/netbox-community/ansible_modules/pull/820)
19+
- netbox_location - Add tenant to module [#829](https://github.com/netbox-community/ansible_modules/pull/829)
20+
- netbox_prefix - Add mark_utilized to module [#827](https://github.com/netbox-community/ansible_modules/pull/827)
21+
822
v3.7.1
923
======
1024

changelogs/changelog.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -695,3 +695,14 @@ releases:
695695
- nb_inventory - Fix netbox_inventory site_group group_by @ryanmerolle in [#780](https://github.com/netbox-community/ansible_modules/pull/780)
696696
- nb_inventory - Ensure inventory works on NetBox versions without the site group model [#781](https://github.com/netbox-community/ansible_modules/pull/781)
697697
release_date: '2022-04-26'
698+
3.8.0:
699+
changes:
700+
minor_changes:
701+
- Add action_group to enable module defaults groups [#800](https://github.com/netbox-community/ansible_modules/pull/800)
702+
- netbox_device_interface - Add PoE attribute [#820](https://github.com/netbox-community/ansible_modules/pull/820)
703+
- Expand on query_filter for site [#824](https://github.com/netbox-community/ansible_modules/pull/824)
704+
- nb_inventory - Allow API token to be templated [#806](https://github.com/netbox-community/ansible_modules/pull/806)
705+
- netbox_prefix - Add mark_utilized to module [#827](https://github.com/netbox-community/ansible_modules/pull/827)
706+
- netbox_cable - Change length to float from int [#828](https://github.com/netbox-community/ansible_modules/pull/828)
707+
- netbox_location - Add tenant to module [#829](https://github.com/netbox-community/ansible_modules/pull/829)
708+
release_date: '2022-09-19'

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
author = "Mikhail Yohman <@FragmentedPacket>"
2828

2929
# The full version, including alpha/beta/rc tags
30-
release = "3.7.1"
30+
release = "3.8.0"
3131

3232

3333
# -- General configuration ---------------------------------------------------

docs/getting_started/how-to-use/advanced.rst

+33-1
Original file line numberDiff line numberDiff line change
@@ -298,4 +298,36 @@ IP address to be within **Test VRF 2**.
298298
299299
We can now see that the IP address is now within VRF with ID 2.
300300

301-
Hopefully this shines some light on this useful feature to allow you, as the user, to define your specific needs for finding a unique object within your NetBox instance.
301+
Hopefully this shines some light on this useful feature to allow you, as the user, to define your specific needs for finding a unique object within your NetBox instance.
302+
303+
304+
Using Module defaults groups
305+
--------------------------------------------
306+
307+
Ansible-core >= 2.12 provide a useful feature called [Module defaults groups](https://docs.ansible.com/ansible/latest/user_guide/playbooks_module_defaults.html#module-defaults-groups) that lets us specify default parameters for a group of modules in a single place. We can use the action_group ``netbox`` that contains all modules from this collection to avoid setting e.g. ``token`` and ``url`` on each task and thus reduce boilerplate code.
308+
309+
.. code-block:: yaml
310+
311+
---
312+
- hosts: "localhost"
313+
314+
module_defaults:
315+
group/netbox.netbox.netbox:
316+
netbox_url: "http://netbox.local"
317+
netbox_token: "thisIsMyToken"
318+
319+
tasks:
320+
- name: "Create device type"
321+
netbox.netbox.netbox_device_type:
322+
data:
323+
model: "test-device-type"
324+
slug: "c9410r"
325+
326+
- name: "Create device"
327+
netbox.netbox.netbox_device:
328+
data:
329+
name: "Test Device"
330+
device_type: "C9410R"
331+
device_role: "Core Switch"
332+
site: "Main"
333+

docs/plugins/index.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11

22

3+
34
.. _plugins_in_netbox.netbox:
45

56
Netbox.Netbox
67
=============
78

8-
Collection version 3.7.1
9+
Collection version 3.8.0
910

1011
.. contents::
1112
:local:
@@ -101,7 +102,7 @@ Modules
101102
* :ref:`netbox_tenant module <ansible_collections.netbox.netbox.netbox_tenant_module>` -- Creates or removes tenants from NetBox
102103
* :ref:`netbox_tenant_group module <ansible_collections.netbox.netbox.netbox_tenant_group_module>` -- Creates or removes tenant groups from NetBox
103104
* :ref:`netbox_virtual_chassis module <ansible_collections.netbox.netbox.netbox_virtual_chassis_module>` -- Create, update or delete virtual chassis within NetBox
104-
* :ref:`netbox_virtual_machine module <ansible_collections.netbox.netbox.netbox_virtual_machine_module>` -- Create, update or delete virtual_machines within NetBox
105+
* :ref:`netbox_virtual_machine module <ansible_collections.netbox.netbox.netbox_virtual_machine_module>` -- Create, update or delete virtual\_machines within NetBox
105106
* :ref:`netbox_vlan module <ansible_collections.netbox.netbox.netbox_vlan_module>` -- Create, update or delete vlans within NetBox
106107
* :ref:`netbox_vlan_group module <ansible_collections.netbox.netbox.netbox_vlan_group_module>` -- Create, update or delete vlans groups within NetBox
107108
* :ref:`netbox_vm_interface module <ansible_collections.netbox.netbox.netbox_vm_interface_module>` -- Creates or removes interfaces from virtual machines in NetBox

0 commit comments

Comments
 (0)