Skip to content

Commit 35511a1

Browse files
Updated Changelog to have proper format, added changelog to Sphinx docs, and updated docs. (#309)
1 parent e98a0d7 commit 35511a1

File tree

61 files changed

+647
-469
lines changed

Some content is hidden

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

61 files changed

+647
-469
lines changed

CHANGELOG.md

Lines changed: 0 additions & 370 deletions
This file was deleted.

CHANGELOG.rst

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ Breaking Changes / Porting Guide
4545

4646
::
4747

48-
tasks:
49-
- name: Create device within NetBox with only required information
50-
netbox_device:
51-
netbox_url: http://netbox-demo.org:32768
52-
netbox_token: 0123456789abcdef0123456789abcdef01234567
53-
data:
54-
name: Test66
55-
device_type:
56-
id: "{{ some_jinja_variable }}"
57-
device_role: Core Switch
58-
site: Test Site
59-
status: Staged
60-
state: present
48+
tasks:
49+
- name: Create device within NetBox with only required information
50+
netbox_device:
51+
netbox_url: http://netbox-demo.org:32768
52+
netbox_token: 0123456789abcdef0123456789abcdef01234567
53+
data:
54+
name: Test66
55+
device_type:
56+
id: "{{ some_jinja_variable }}"
57+
device_role: Core Switch
58+
site: Test Site
59+
status: Staged
60+
state: present
6161
- ``pynetbox`` changed to using ``requests.Session()`` to manage the HTTP session
6262
which broke passing in ``ssl_verify`` when building the NetBox API client.
6363
This PR makes ``pynetbox 5.0.4+`` the new required version of `pynetbox` for
@@ -90,9 +90,9 @@ Minor Changes
9090

9191
- Adds ``discovered`` field to ``netbox_inventory_item`` (https://github.com/netbox-community/ansible_modules/issues/187)
9292
- Adds ``query_params`` to all modules to allow users to define the ``query_params`` (https://github.com/netbox-community/ansible_modules/issues/215)
93-
- Adds ``tenant`` field to `netbox_cluster` (https://github.com/netbox-community/ansible_modules/pull/219)
93+
- Adds ``tenant`` field to ``netbox_cluster`` (https://github.com/netbox-community/ansible_modules/pull/219)
9494
- Allows private key to be passed in to ``validate_certs`` within modules (https://github.com/netbox-community/ansible_modules/issues/216)
95-
- Better error handling if read-only token is provided for modules. Updated README as well to say that a `write-enabled` token is required (https://github.com/netbox-community/ansible_modules/pull/238)
95+
- Better error handling if read-only token is provided for modules. Updated README as well to say that a ``write-enabled`` token is required (https://github.com/netbox-community/ansible_modules/pull/238)
9696

9797
Bugfixes
9898
--------
@@ -125,14 +125,14 @@ v0.2.2
125125
Minor Changes
126126
-------------
127127

128-
- Changed ``validate_certs`` to ``raw1` to allow private keys to be passed in (https://github.com/netbox-community/ansible_modules/issues/211)
128+
- Changed ``validate_certs`` to ``raw`` to allow private keys to be passed in (https://github.com/netbox-community/ansible_modules/issues/211)
129129

130130
Bugfixes
131131
--------
132132

133+
- Added ``interfaces`` to ``ALLOWED_QUERY_PARAMS`` for ip addresses searches (https://github.com/netbox-community/ansible_modules/issues/201)
133134
- Added ``type`` to ``ALLOWED_QUERY_PARAMS`` for interface searches (https://github.com/netbox-community/ansible_modules/issues/208)
134-
- Added `interfaces` to `ALLOWED_QUERY_PARAMS` for ip addresses searches (https://github.com/netbox-community/ansible_modules/issues/201)
135-
- Remove `rack` as a choice when createing virtual machines (https://github.com/netbox-community/ansible_modules/pull/221)
135+
- Remove ``rack`` as a choice when creating virtual machines (https://github.com/netbox-community/ansible_modules/pull/221)
136136

137137
v0.2.1
138138
======
@@ -196,13 +196,13 @@ Breaking Changes / Porting Guide
196196

197197
- This version has a few breaking changes due to new namespace and collection name. I felt it necessary to change the name of the lookup plugin and inventory plugin just not to have a non descriptive namespace call to use them. Below is an example:
198198
``netbox.netbox.netbox`` would be used for both inventory plugin and lookup plugin, but in different contexts so no collision will arise, but confusion will.
199-
I renamed the lookup plugin to `nb_lookup` so it will be used with the FQCN ``netbox.netbox.nb_lookup``.
199+
I renamed the lookup plugin to ``nb_lookup`` so it will be used with the FQCN ``netbox.netbox.nb_lookup``.
200200
The inventory plugin will now be called within an inventory file by ``netbox.netbox.nb_inventory``
201201

202202
Bugfixes
203203
--------
204204

205-
- Update netbox_tenant and netbox_tenant_group to use slugs for searching (available since NetBox 2.6). Added slug options to netbox_site, netbox_tenant, netbox_tenant_group (https://github.com/netbox-community/ansible_modules/pull/120)
205+
- Update ``netbox_tenant`` and ``netbox_tenant_group`` to use slugs for searching (available since NetBox 2.6). Added slug options to netbox_site, netbox_tenant, netbox_tenant_group (https://github.com/netbox-community/ansible_modules/pull/120)
206206

207207
v0.1.8
208208
======

changelogs/changelog.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,14 @@ releases:
174174
plugin, but in different contexts so no collision will arise, but confusion
175175
will.
176176
177-
I renamed the lookup plugin to `nb_lookup` so it will be used with the FQCN
177+
I renamed the lookup plugin to ``nb_lookup`` so it will be used with the FQCN
178178
``netbox.netbox.nb_lookup``.
179179
180180
The inventory plugin will now be called within an inventory file by ``netbox.netbox.nb_inventory``
181181
182182
"
183183
bugfixes:
184-
- Update netbox_tenant and netbox_tenant_group to use slugs for searching (available
184+
- Update ``netbox_tenant`` and ``netbox_tenant_group`` to use slugs for searching (available
185185
since NetBox 2.6). Added slug options to netbox_site, netbox_tenant, netbox_tenant_group
186186
(https://github.com/netbox-community/ansible_modules/pull/120)
187187
0.2.0:
@@ -235,10 +235,10 @@ releases:
235235
changes:
236236
bugfixes:
237237
- Added ``type`` to ``ALLOWED_QUERY_PARAMS`` for interface searches (https://github.com/netbox-community/ansible_modules/issues/208)
238-
- Added `interfaces` to `ALLOWED_QUERY_PARAMS` for ip addresses searches (https://github.com/netbox-community/ansible_modules/issues/201)
239-
- Remove `rack` as a choice when createing virtual machines (https://github.com/netbox-community/ansible_modules/pull/221)
238+
- Added ``interfaces`` to ``ALLOWED_QUERY_PARAMS`` for ip addresses searches (https://github.com/netbox-community/ansible_modules/issues/201)
239+
- Remove ``rack`` as a choice when creating virtual machines (https://github.com/netbox-community/ansible_modules/pull/221)
240240
minor_changes:
241-
- Changed ``validate_certs`` to ``raw1` to allow private keys to be passed in
241+
- Changed ``validate_certs`` to ``raw`` to allow private keys to be passed in
242242
(https://github.com/netbox-community/ansible_modules/issues/211)
243243
0.2.3:
244244
changes:
@@ -253,10 +253,10 @@ releases:
253253
- Adds ``discovered`` field to ``netbox_inventory_item`` (https://github.com/netbox-community/ansible_modules/issues/187)
254254
- Adds ``query_params`` to all modules to allow users to define the ``query_params``
255255
(https://github.com/netbox-community/ansible_modules/issues/215)
256-
- Adds ``tenant`` field to `netbox_cluster` (https://github.com/netbox-community/ansible_modules/pull/219)
256+
- Adds ``tenant`` field to ``netbox_cluster`` (https://github.com/netbox-community/ansible_modules/pull/219)
257257
- Allows private key to be passed in to ``validate_certs`` within modules (https://github.com/netbox-community/ansible_modules/issues/216)
258258
- Better error handling if read-only token is provided for modules. Updated
259-
README as well to say that a `write-enabled` token is required (https://github.com/netbox-community/ansible_modules/pull/238)
259+
README as well to say that a ``write-enabled`` token is required (https://github.com/netbox-community/ansible_modules/pull/238)
260260
modules:
261261
- description: Create, update or delete console ports within Netbox
262262
name: netbox_console_port
@@ -314,19 +314,19 @@ releases:
314314
315315
::
316316
317-
tasks:
318-
- name: Create device within NetBox with only required information
319-
netbox_device:
320-
netbox_url: http://netbox-demo.org:32768
321-
netbox_token: 0123456789abcdef0123456789abcdef01234567
322-
data:
323-
name: Test66
324-
device_type:
325-
id: "{{ some_jinja_variable }}"
326-
device_role: Core Switch
327-
site: Test Site
328-
status: Staged
329-
state: present
317+
tasks:
318+
- name: Create device within NetBox with only required information
319+
netbox_device:
320+
netbox_url: http://netbox-demo.org:32768
321+
netbox_token: 0123456789abcdef0123456789abcdef01234567
322+
data:
323+
name: Test66
324+
device_type:
325+
id: "{{ some_jinja_variable }}"
326+
device_role: Core Switch
327+
site: Test Site
328+
status: Staged
329+
state: present
330330
331331
- |
332332
``pynetbox`` changed to using ``requests.Session()`` to manage the HTTP session

docs/advanced/index.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ Advanced Topics
33

44
This will be updated in the future to document advanced features such as passing in ``query_params`` to modules.
55

6-
.. toctree::
7-
:maxdepth: 4
8-
:glob:
96

10-
*/index
7+
.. toctree::
8+
:maxdepth: 4

docs/changelog/changelog_include.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. include:: ../../CHANGELOG.rst

docs/changelog/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
.. toctree::
3+
:maxdepth: 4
4+
5+
changelog_include

docs/getting_started/index.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,7 @@ This will cover the basic usage of the NetBox inventory plugin within this colle
7777
5. Create inventory and select ``source from project``.
7878
6. Select the AWX/Tower project from Step 2
7979
7. Select the ``inventory.yml`` file in the project from Step 3
80-
8. Click ``Save`` and sync source.
80+
8. Click ``Save`` and sync source.
81+
82+
.. toctree::
83+
:maxdepth: 4

docs/index.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ netbox.netbox Ansible Collection's documentation!
55
Overview
66
========
77

8-
This is the documentation home of the `netbox.netbox` Ansible Collection. We will provide some examples of using all the different plugins included with this collection.
8+
This is the documentation home of the **netbox.netbox** Ansible Collection. We will provide some examples of using all the different plugins included with this collection.
99

1010
Contents
1111
========
12+
1213
.. toctree::
13-
:maxdepth: 1
14+
:maxdepth: 4
1415

1516
Home <self>
1617
Getting Started <getting_started/index>
1718
Advanced Usage <advanced/index>
1819
Plugins <plugins/index>
20+
Changelog <changelog/index>

docs/plugins/lookup/nb_lookup/netbox.netbox.nb_lookup_lookup.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.nb_lookup -- Queries and returns elements from Netbox
2828

2929
.. version_added
3030
31-
.. versionadded:: 2.9 of netbox.netbox
31+
.. versionadded:: 2.9 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_aggregate/netbox.netbox.netbox_aggregate_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_aggregate -- Creates or removes aggregates from Netbox
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.1.0 of netbox.netbox
31+
.. versionadded:: 0.1.0 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_cable/netbox.netbox.netbox_cable_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_cable -- Create, update or delete cables within Netbox
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.3.0 of netbox.netbox
31+
.. versionadded:: 0.3.0 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_circuit/netbox.netbox.netbox_circuit_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_circuit -- Create, update or delete circuits within Netbox
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.1.0 of netbox.netbox
31+
.. versionadded:: 0.1.0 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_circuit_termination/netbox.netbox.netbox_circuit_termination_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_circuit_termination -- Create, update or delete circuit ter
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.1.0 of netbox.netbox
31+
.. versionadded:: 0.1.0 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_circuit_type/netbox.netbox.netbox_circuit_type_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_circuit_type -- Create, update or delete circuit types with
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.1.0 of netbox.netbox
31+
.. versionadded:: 0.1.0 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_cluster/netbox.netbox.netbox_cluster_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_cluster -- Create, update or delete clusters within Netbox
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.1.0 of netbox.netbox
31+
.. versionadded:: 0.1.0 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_cluster_group/netbox.netbox.netbox_cluster_group_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_cluster_group -- Create, update or delete cluster groups wi
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.1.0 of netbox.netbox
31+
.. versionadded:: 0.1.0 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_cluster_type/netbox.netbox.netbox_cluster_type_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_cluster_type -- Create, update or delete cluster types with
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.1.0 of netbox.netbox
31+
.. versionadded:: 0.1.0 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_console_port/netbox.netbox.netbox_console_port_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_console_port -- Create, update or delete console ports with
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.2.3 of netbox.netbox
31+
.. versionadded:: 0.2.3 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_console_port_template/netbox.netbox.netbox_console_port_template_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_console_port_template -- Create, update or delete console p
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.2.3 of netbox.netbox
31+
.. versionadded:: 0.2.3 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_console_server_port/netbox.netbox.netbox_console_server_port_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_console_server_port -- Create, update or delete console ser
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.2.3 of netbox.netbox
31+
.. versionadded:: 0.2.3 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_console_server_port_template/netbox.netbox.netbox_console_server_port_template_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_console_server_port_template -- Create, update or delete co
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.2.3 of netbox.netbox
31+
.. versionadded:: 0.2.3 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_device/netbox.netbox.netbox_device_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_device -- Create, update or delete devices within Netbox
2828

2929
.. version_added
3030
31-
.. versionadded:: 2.8 of netbox.netbox
31+
.. versionadded:: 2.8 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_device_bay/netbox.netbox.netbox_device_bay_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_device_bay -- Create, update or delete device bays within N
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.1.0 of netbox.netbox
31+
.. versionadded:: 0.1.0 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_device_bay_template/netbox.netbox.netbox_device_bay_template_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_device_bay_template -- Create, update or delete device bay
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.3.0 of netbox.netbox
31+
.. versionadded:: 0.3.0 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_device_interface/netbox.netbox.netbox_device_interface_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_device_interface -- Creates or removes interfaces on device
2828

2929
.. version_added
3030
31-
.. versionadded:: 2.8 of netbox.netbox
31+
.. versionadded:: 2.8 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_device_interface_template/netbox.netbox.netbox_device_interface_template_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_device_interface_template -- Creates or removes interfaces
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.3.0 of netbox.netbox
31+
.. versionadded:: 0.3.0 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_device_role/netbox.netbox.netbox_device_role_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_device_role -- Create, update or delete devices roles withi
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.1.0 of netbox.netbox
31+
.. versionadded:: 0.1.0 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_device_type/netbox.netbox.netbox_device_type_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_device_type -- Create, update or delete device types within
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.1.0 of netbox.netbox
31+
.. versionadded:: 0.1.0 of
3232

3333
.. contents::
3434
:local:

docs/plugins/modules/netbox_front_port/netbox.netbox.netbox_front_port_module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ netbox.netbox.netbox_front_port -- Create, update or delete front ports within N
2828

2929
.. version_added
3030
31-
.. versionadded:: 0.2.3 of netbox.netbox
31+
.. versionadded:: 0.2.3 of
3232

3333
.. contents::
3434
:local:

0 commit comments

Comments
 (0)