diff --git a/.travis.yml b/.travis.yml index 04ed636a..5a2e91fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ env: global: - COLLECTION_NAMESPACE: "networktocode" - COLLECTION_NAME: "nautobot" - - COLLECTION_VERSION: "1.0.1" + - COLLECTION_VERSION: "1.0.2" jobs: include: diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f584447c..4a6b355c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,14 @@ networktocode.nautobot Release Notes .. contents:: Topics +v1.0.2 +====== + +Bugfixes +-------- + +- Remove code related to fetching secrets due to secrets not existing in Nautobot. + v1.0.1 ====== diff --git a/docs/plugins/aggregate_module.rst b/docs/plugins/aggregate_module.rst index 5db127db..c86cf23e 100644 --- a/docs/plugins/aggregate_module.rst +++ b/docs/plugins/aggregate_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.aggregate -- Creates or removes aggregates from Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/cable_module.rst b/docs/plugins/cable_module.rst index 01ed2a1f..a71ee65e 100644 --- a/docs/plugins/cable_module.rst +++ b/docs/plugins/cable_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.cable -- Create, update or delete cables within Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/circuit_module.rst b/docs/plugins/circuit_module.rst index dfd77467..3efd62c2 100644 --- a/docs/plugins/circuit_module.rst +++ b/docs/plugins/circuit_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.circuit -- Create, update or delete circuits within Nauto .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/circuit_termination_module.rst b/docs/plugins/circuit_termination_module.rst index 82dfe6af..e7c64cd6 100644 --- a/docs/plugins/circuit_termination_module.rst +++ b/docs/plugins/circuit_termination_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.circuit_termination -- Create, update or delete circuit t .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/circuit_type_module.rst b/docs/plugins/circuit_type_module.rst index 11083d0b..07cde4c9 100644 --- a/docs/plugins/circuit_type_module.rst +++ b/docs/plugins/circuit_type_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.circuit_type -- Create, update or delete circuit types wi .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/cluster_group_module.rst b/docs/plugins/cluster_group_module.rst index 86fe3e8b..6f567739 100644 --- a/docs/plugins/cluster_group_module.rst +++ b/docs/plugins/cluster_group_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.cluster_group -- Create, update or delete cluster groups .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/cluster_module.rst b/docs/plugins/cluster_module.rst index 26131042..49ad43f9 100644 --- a/docs/plugins/cluster_module.rst +++ b/docs/plugins/cluster_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.cluster -- Create, update or delete clusters within Nauto .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/cluster_type_module.rst b/docs/plugins/cluster_type_module.rst index f9b3b91c..806cdc00 100644 --- a/docs/plugins/cluster_type_module.rst +++ b/docs/plugins/cluster_type_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.cluster_type -- Create, update or delete cluster types wi .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/console_port_module.rst b/docs/plugins/console_port_module.rst index c6be4aee..22768af3 100644 --- a/docs/plugins/console_port_module.rst +++ b/docs/plugins/console_port_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.console_port -- Create, update or delete console ports wi .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/console_port_template_module.rst b/docs/plugins/console_port_template_module.rst index 2715c5f9..e60bbc93 100644 --- a/docs/plugins/console_port_template_module.rst +++ b/docs/plugins/console_port_template_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.console_port_template -- Create, update or delete console .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/console_server_port_module.rst b/docs/plugins/console_server_port_module.rst index 1fa3c99d..cae7a2d1 100644 --- a/docs/plugins/console_server_port_module.rst +++ b/docs/plugins/console_server_port_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.console_server_port -- Create, update or delete console s .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/console_server_port_template_module.rst b/docs/plugins/console_server_port_template_module.rst index ce000d8b..87359997 100644 --- a/docs/plugins/console_server_port_template_module.rst +++ b/docs/plugins/console_server_port_template_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.console_server_port_template -- Create, update or delete .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/device_bay_module.rst b/docs/plugins/device_bay_module.rst index 3115d3b3..e4abbe1f 100644 --- a/docs/plugins/device_bay_module.rst +++ b/docs/plugins/device_bay_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.device_bay -- Create, update or delete device bays within .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/device_bay_template_module.rst b/docs/plugins/device_bay_template_module.rst index cca67266..c46913cb 100644 --- a/docs/plugins/device_bay_template_module.rst +++ b/docs/plugins/device_bay_template_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.device_bay_template -- Create, update or delete device ba .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/device_interface_module.rst b/docs/plugins/device_interface_module.rst index 19578d0a..888377a0 100644 --- a/docs/plugins/device_interface_module.rst +++ b/docs/plugins/device_interface_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.device_interface -- Creates or removes interfaces on devi .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/device_interface_template_module.rst b/docs/plugins/device_interface_template_module.rst index f6467010..b2b816f2 100644 --- a/docs/plugins/device_interface_template_module.rst +++ b/docs/plugins/device_interface_template_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.device_interface_template -- Creates or removes interface .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/device_module.rst b/docs/plugins/device_module.rst index 5a1f0182..3465bf78 100644 --- a/docs/plugins/device_module.rst +++ b/docs/plugins/device_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.device -- Create, update or delete devices within Nautobo .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/device_role_module.rst b/docs/plugins/device_role_module.rst index 586a9bd0..37c5fb3a 100644 --- a/docs/plugins/device_role_module.rst +++ b/docs/plugins/device_role_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.device_role -- Create, update or delete devices roles wit .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/device_type_module.rst b/docs/plugins/device_type_module.rst index 8024da30..bc030cb1 100644 --- a/docs/plugins/device_type_module.rst +++ b/docs/plugins/device_type_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.device_type -- Create, update or delete device types with .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/front_port_module.rst b/docs/plugins/front_port_module.rst index 8abee0ee..ac4c4bf7 100644 --- a/docs/plugins/front_port_module.rst +++ b/docs/plugins/front_port_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.front_port -- Create, update or delete front ports within .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/front_port_template_module.rst b/docs/plugins/front_port_template_module.rst index 66d56cee..c254ac09 100644 --- a/docs/plugins/front_port_template_module.rst +++ b/docs/plugins/front_port_template_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.front_port_template -- Create, update or delete front por .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/index.rst b/docs/plugins/index.rst index f7aec870..3c9014ca 100644 --- a/docs/plugins/index.rst +++ b/docs/plugins/index.rst @@ -5,7 +5,7 @@ Networktocode.Nautobot ====================== -Collection version 1.0.0 +Collection version 1.0.2 .. toctree:: :maxdepth: 1 diff --git a/docs/plugins/inventory_inventory.rst b/docs/plugins/inventory_inventory.rst index c19e9e36..5c6d8514 100644 --- a/docs/plugins/inventory_inventory.rst +++ b/docs/plugins/inventory_inventory.rst @@ -20,7 +20,7 @@ networktocode.nautobot.inventory -- Nautobot inventory source .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/inventory_item_module.rst b/docs/plugins/inventory_item_module.rst index a8f72670..a23846cb 100644 --- a/docs/plugins/inventory_item_module.rst +++ b/docs/plugins/inventory_item_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.inventory_item -- Creates or removes inventory items from .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/ip_address_module.rst b/docs/plugins/ip_address_module.rst index 2b4ac663..63632534 100644 --- a/docs/plugins/ip_address_module.rst +++ b/docs/plugins/ip_address_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.ip_address -- Creates or removes IP addresses from Nautob .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/ipam_role_module.rst b/docs/plugins/ipam_role_module.rst index f62b5005..01fd00c0 100644 --- a/docs/plugins/ipam_role_module.rst +++ b/docs/plugins/ipam_role_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.ipam_role -- Creates or removes ipam roles from Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/lookup_lookup.rst b/docs/plugins/lookup_lookup.rst index 0bfe56de..3b7facc0 100644 --- a/docs/plugins/lookup_lookup.rst +++ b/docs/plugins/lookup_lookup.rst @@ -20,7 +20,7 @@ networktocode.nautobot.lookup -- Queries and returns elements from Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. @@ -43,7 +43,6 @@ Synopsis .. Description - Queries Nautobot via its API to return virtually any information capable of being held in Nautobot. -- If wanting to obtain the plaintext attribute of a secret, key_file must be provided. .. Aliases @@ -128,23 +127,6 @@ Parameters
The api_filter to use.
- - - -
- key_file - -
- string -
- - - - - - -
The location of the private key tied to user account.
- @@ -251,7 +233,6 @@ Examples token='') }}" # This example uses an API Filter - tasks: # query a list of devices - name: Obtain list of devices from Nautobot @@ -264,12 +245,6 @@ Examples api_filter='role=management tag=Dell'), token='') }}" - # Obtain a secret for R1-device - tasks: - - name: "Obtain secrets for R1-Device" - debug: - msg: "{{ query('networktocode.nautobot.lookup', 'secrets', api_filter='device=R1-Device', api_endpoint='http://localhost/', token='', key_file='~/.ssh/id_rsa') }}" - # Fetch bgp sessions for R1-device tasks: - name: "Obtain bgp sessions for R1-Device" @@ -280,8 +255,6 @@ Examples token='', plugin='mycustomstuff') }}" - msg: "{{ query('networktocode.nautobot.lookup', 'secrets', api_filter='device=R1-Device', api_endpoint='http://localhost/', token='', key_file='~/.ssh/id_rsa') }}" - diff --git a/docs/plugins/manufacturer_module.rst b/docs/plugins/manufacturer_module.rst index c6278acf..04c73e0a 100644 --- a/docs/plugins/manufacturer_module.rst +++ b/docs/plugins/manufacturer_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.manufacturer -- Create or delete manufacturers within Nau .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/platform_module.rst b/docs/plugins/platform_module.rst index c7ba3161..4eec149f 100644 --- a/docs/plugins/platform_module.rst +++ b/docs/plugins/platform_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.platform -- Create or delete platforms within Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/power_feed_module.rst b/docs/plugins/power_feed_module.rst index 15b2c287..96456331 100644 --- a/docs/plugins/power_feed_module.rst +++ b/docs/plugins/power_feed_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.power_feed -- Create, update or delete power feeds within .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/power_outlet_module.rst b/docs/plugins/power_outlet_module.rst index b295d889..74db7d22 100644 --- a/docs/plugins/power_outlet_module.rst +++ b/docs/plugins/power_outlet_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.power_outlet -- Create, update or delete power outlets wi .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/power_outlet_template_module.rst b/docs/plugins/power_outlet_template_module.rst index a439c963..9158a8a7 100644 --- a/docs/plugins/power_outlet_template_module.rst +++ b/docs/plugins/power_outlet_template_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.power_outlet_template -- Create, update or delete power o .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/power_panel_module.rst b/docs/plugins/power_panel_module.rst index 70b0a569..bea64bf0 100644 --- a/docs/plugins/power_panel_module.rst +++ b/docs/plugins/power_panel_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.power_panel -- Create, update or delete power panels with .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/power_port_module.rst b/docs/plugins/power_port_module.rst index 7f2f5369..c325c69e 100644 --- a/docs/plugins/power_port_module.rst +++ b/docs/plugins/power_port_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.power_port -- Create, update or delete power ports within .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/power_port_template_module.rst b/docs/plugins/power_port_template_module.rst index 44a0f129..be719d5e 100644 --- a/docs/plugins/power_port_template_module.rst +++ b/docs/plugins/power_port_template_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.power_port_template -- Create, update or delete power por .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/prefix_module.rst b/docs/plugins/prefix_module.rst index ef5e7fcb..83647fa7 100644 --- a/docs/plugins/prefix_module.rst +++ b/docs/plugins/prefix_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.prefix -- Creates or removes prefixes from Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/provider_module.rst b/docs/plugins/provider_module.rst index 8a0814c5..93ef40f3 100644 --- a/docs/plugins/provider_module.rst +++ b/docs/plugins/provider_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.provider -- Create, update or delete providers within Nau .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/rack_group_module.rst b/docs/plugins/rack_group_module.rst index 47bc23cf..eeedfa3c 100644 --- a/docs/plugins/rack_group_module.rst +++ b/docs/plugins/rack_group_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.rack_group -- Create, update or delete racks groups withi .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/rack_module.rst b/docs/plugins/rack_module.rst index 408dcda7..5785b480 100644 --- a/docs/plugins/rack_module.rst +++ b/docs/plugins/rack_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.rack -- Create, update or delete racks within Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/rack_role_module.rst b/docs/plugins/rack_role_module.rst index 136c678d..35088a94 100644 --- a/docs/plugins/rack_role_module.rst +++ b/docs/plugins/rack_role_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.rack_role -- Create, update or delete racks roles within .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/rear_port_module.rst b/docs/plugins/rear_port_module.rst index bd4d1f4a..d303700e 100644 --- a/docs/plugins/rear_port_module.rst +++ b/docs/plugins/rear_port_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.rear_port -- Create, update or delete rear ports within N .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/rear_port_template_module.rst b/docs/plugins/rear_port_template_module.rst index 2d50f381..ee81c372 100644 --- a/docs/plugins/rear_port_template_module.rst +++ b/docs/plugins/rear_port_template_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.rear_port_template -- Create, update or delete rear port .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/region_module.rst b/docs/plugins/region_module.rst index 89cc295c..0dcc1842 100644 --- a/docs/plugins/region_module.rst +++ b/docs/plugins/region_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.region -- Creates or removes regions from Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/rir_module.rst b/docs/plugins/rir_module.rst index ed22b7ef..557ba5aa 100644 --- a/docs/plugins/rir_module.rst +++ b/docs/plugins/rir_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.rir -- Create, update or delete RIRs within Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/route_target_module.rst b/docs/plugins/route_target_module.rst index f4f06287..b61bdc59 100644 --- a/docs/plugins/route_target_module.rst +++ b/docs/plugins/route_target_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.route_target -- Creates or removes route targets from Nau .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/service_module.rst b/docs/plugins/service_module.rst index b3c36769..b571e55f 100644 --- a/docs/plugins/service_module.rst +++ b/docs/plugins/service_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.service -- Creates or removes service from Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/site_module.rst b/docs/plugins/site_module.rst index 56ab48d8..3c409f0a 100644 --- a/docs/plugins/site_module.rst +++ b/docs/plugins/site_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.site -- Creates or removes sites from Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/status_module.rst b/docs/plugins/status_module.rst index 4e69afe2..fc0f17c4 100644 --- a/docs/plugins/status_module.rst +++ b/docs/plugins/status_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.status -- Creates or removes status from Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/tag_module.rst b/docs/plugins/tag_module.rst index 3cc3005e..4082df0c 100644 --- a/docs/plugins/tag_module.rst +++ b/docs/plugins/tag_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.tag -- Creates or removes tags from Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/tenant_group_module.rst b/docs/plugins/tenant_group_module.rst index a488de49..bad94f04 100644 --- a/docs/plugins/tenant_group_module.rst +++ b/docs/plugins/tenant_group_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.tenant_group -- Creates or removes tenant groups from Nau .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/tenant_module.rst b/docs/plugins/tenant_module.rst index 0cfe51c8..29fc30e4 100644 --- a/docs/plugins/tenant_module.rst +++ b/docs/plugins/tenant_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.tenant -- Creates or removes tenants from Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/virtual_chassis_module.rst b/docs/plugins/virtual_chassis_module.rst index 88272ff2..a946f5e0 100644 --- a/docs/plugins/virtual_chassis_module.rst +++ b/docs/plugins/virtual_chassis_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.virtual_chassis -- Create, update or delete virtual chass .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/virtual_machine_module.rst b/docs/plugins/virtual_machine_module.rst index 8f54dd05..d5596ba1 100644 --- a/docs/plugins/virtual_machine_module.rst +++ b/docs/plugins/virtual_machine_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.virtual_machine -- Create, update or delete virtual_machi .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/vlan_group_module.rst b/docs/plugins/vlan_group_module.rst index 5cdee894..1ce75444 100644 --- a/docs/plugins/vlan_group_module.rst +++ b/docs/plugins/vlan_group_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.vlan_group -- Create, update or delete vlans groups withi .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/vlan_module.rst b/docs/plugins/vlan_module.rst index b8513543..360ddefb 100644 --- a/docs/plugins/vlan_module.rst +++ b/docs/plugins/vlan_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.vlan -- Create, update or delete vlans within Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/vm_interface_module.rst b/docs/plugins/vm_interface_module.rst index 9bff8c6e..ef538850 100644 --- a/docs/plugins/vm_interface_module.rst +++ b/docs/plugins/vm_interface_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.vm_interface -- Creates or removes interfaces from virtua .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/docs/plugins/vrf_module.rst b/docs/plugins/vrf_module.rst index d2beadbf..58bff897 100644 --- a/docs/plugins/vrf_module.rst +++ b/docs/plugins/vrf_module.rst @@ -20,7 +20,7 @@ networktocode.nautobot.vrf -- Create, update or delete vrfs within Nautobot .. Collection note .. note:: - This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.0). + This plugin is part of the `networktocode.nautobot collection `_ (version 1.0.2). To install it use: :code:`ansible-galaxy collection install networktocode.nautobot`. diff --git a/galaxy.yml b/galaxy.yml index 74272780..910e3000 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -9,7 +9,7 @@ namespace: networktocode name: nautobot # The version of the collection. Must be compatible with semantic versioning -version: 1.0.1 +version: 1.0.2 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md diff --git a/plugins/lookup/lookup.py b/plugins/lookup/lookup.py index dd090642..90b4a405 100644 --- a/plugins/lookup/lookup.py +++ b/plugins/lookup/lookup.py @@ -30,9 +30,7 @@ version_added: "1.0.0" short_description: Queries and returns elements from Nautobot description: - - Queries Nautobot via its API to return virtually any information - capable of being held in Nautobot. - - If wanting to obtain the plaintext attribute of a secret, key_file must be provided. + - Queries Nautobot via its API to return virtually any information capable of being held in Nautobot. options: _terms: description: @@ -68,10 +66,6 @@ - Whether or not to validate SSL of the Nautobot instance required: False default: True - key_file: - description: - - The location of the private key tied to user account. - required: False raw_data: description: - Whether to return raw API data with the lookup/query or whether to return a key/value dict @@ -93,7 +87,6 @@ token='') }}" # This example uses an API Filter - tasks: # query a list of devices - name: Obtain list of devices from Nautobot @@ -106,12 +99,6 @@ api_filter='role=management tag=Dell'), token='') }}" -# Obtain a secret for R1-device -tasks: - - name: "Obtain secrets for R1-Device" - debug: - msg: "{{ query('networktocode.nautobot.lookup', 'secrets', api_filter='device=R1-Device', api_endpoint='http://localhost/', token='', key_file='~/.ssh/id_rsa') }}" - # Fetch bgp sessions for R1-device tasks: - name: "Obtain bgp sessions for R1-Device" @@ -121,8 +108,6 @@ api_endpoint='http://localhost/', token='', plugin='mycustomstuff') }}" - - msg: "{{ query('networktocode.nautobot.lookup', 'secrets', api_filter='device=R1-Device', api_endpoint='http://localhost/', token='', key_file='~/.ssh/id_rsa') }}" """ RETURN = """ @@ -193,8 +178,6 @@ def get_endpoint(nautobot, term): "reports": {"endpoint": nautobot.extras.reports}, "rirs": {"endpoint": nautobot.ipam.rirs}, "roles": {"endpoint": nautobot.ipam.roles}, - "secret-roles": {"endpoint": nautobot.secrets.secret_roles}, - "secrets": {"endpoint": nautobot.secrets.secrets}, "services": {"endpoint": nautobot.ipam.services}, "sites": {"endpoint": nautobot.dcim.sites}, "tags": {"endpoint": nautobot.extras.tags}, @@ -302,7 +285,6 @@ def run(self, terms, variables=None, **kwargs): or os.getenv("NAUTOBOT_URL") ) ssl_verify = kwargs.get("validate_certs", True) - private_key_file = kwargs.get("key_file") api_filter = kwargs.get("api_filter") raw_return = kwargs.get("raw_data") plugin = kwargs.get("plugin") @@ -310,20 +292,11 @@ def run(self, terms, variables=None, **kwargs): if not isinstance(terms, list): terms = [terms] - try: - session = requests.Session() - session.verify = ssl_verify + session = requests.Session() + session.verify = ssl_verify - nautobot = pynautobot.api( - api_endpoint, - token=api_token if api_token else None, - private_key_file=private_key_file, - ) - nautobot.http_session = session - except FileNotFoundError: - raise AnsibleError( - "%s cannot be found. Please make sure file exists." % private_key_file - ) + nautobot = pynautobot.api(api_endpoint, token=api_token if api_token else None,) + nautobot.http_session = session results = [] for term in terms: diff --git a/pyproject.toml b/pyproject.toml index e7570222..2e05b157 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nautobot_ansible_modules" -version = "1.0.0" +version = "1.0.2" description = "Ansible collection to interact with Nautobot's API" authors = ["Network to Code