Skip to content

Commit

Permalink
Merge pull request #55 from infobloxopen/ansible-inclusion
Browse files Browse the repository at this point in the history
Ansible 4.0.0 inclusion
  • Loading branch information
Vaishnavi-infoblox authored Apr 14, 2021
2 parents a43a079 + 2b2d6b6 commit 5d08a19
Show file tree
Hide file tree
Showing 31 changed files with 169 additions and 57 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
# Testing against `devel` may fail as new tests are added.
- stable-2.9
- stable-2.10
- stable-2.11
- devel
runs-on: ubuntu-latest
steps:
Expand Down
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,30 @@ Please refer to our Ansible [deployment
guide](https://www.infoblox.com/wp-content/uploads/infoblox-deployment-guide-infoblox-and-ansible-integration.pdf)
for more details.

Current release
Releasing
=========

1.0.2 on 27 January 2021
Next release
---------------

Dates TBD

Current release
---------------

1.1.0 on 14 April 2021

Versioning
=========

- galaxy.yml in the master branch will always contain the version of the current major or minor release. It will be updated right after a release.
- version_added needs to be used for every new feature and module/plugin, and needs to coincide with the next minor/major release version. (This will eventually be enforced by CI.)

Deprecation
===========
- Deprecations are done by version number (not by date).
- New deprecations can be added during every minor release, under the condition that they do not break backwards compatibility.

Resources
=========

Expand Down
16 changes: 16 additions & 0 deletions ansible_collections/infoblox/nios_modules/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ Infoblox.Nios_Modules Release Notes
.. contents:: Topics


v1.1.0
======

Release Summary
---------------

This release provides plugins for NIOS DTC

New Modules
-----------

- infoblox.nios_modules.nios_dtc_lbdn - Configure Infoblox NIOS DTC LBDN
- infoblox.nios_modules.nios_dtc_pool - Configure Infoblox NIOS DTC Pool
- infoblox.nios_modules.nios_dtc_server - Configure Infoblox NIOS DTC Server
- infoblox.nios_modules.nios_restartservices - Restart grid services.

v1.0.2
======

Expand Down
35 changes: 27 additions & 8 deletions ansible_collections/infoblox/nios_modules/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ Modules:

- `nios_dns_view` – Configure Infoblox NIOS DNS views

- `nios_dtc_lbdn` – Configure Infoblox NIOS DTC LBDN records

- `nios_dtc_pool` – Configure Infoblox NIOS DTC pools

- `nios_dtc_server` – Configure Infoblox NIOS DTC server records

- `nios_fixed_address` – Configure Infoblox NIOS DHCP Fixed Address

- `nios_host_record` – Configure Infoblox NIOS host records
Expand All @@ -45,6 +51,8 @@ Modules:

- `nios_ptr_record` – Configure Infoblox NIOS PTR records

- `nios_restartservices` - Controlled restart of Infoblox NIOS services

- `nios_srv_record` – Configure Infoblox NIOS SRV records

- `nios_txt_record` – Configure Infoblox NIOS txt records
Expand Down Expand Up @@ -90,7 +98,7 @@ Installation of nios\_modules Collection

The `nios_modules` collection can be installed either from Ansible Galaxy
or directly from git. It is recommended to install collections from
Ansible Galaxy are those are more stable than the ones in the git
Ansible Galaxy as those are more stable than the ones in the git
branch.

### Installation from Ansible Galaxy
Expand All @@ -112,11 +120,10 @@ To git clone and install from this repo, follow these steps:
- **Clone the repo:**

```shell
$ git clone
https://github.com/infobloxopen/infoblox-ansible.git
$ git clone https://github.com/infobloxopen/infoblox-ansible.git
```

- **Build the collection: **
- **Build the collection:**

To build a collection, run the following command from inside the
root directory of the collection:
Expand All @@ -130,25 +137,37 @@ This creates a tarball of the built collection in the current directory.
- **Install the collection:**

```shell
$ ansible-galaxy collection install <collection-name>.tar.gz -p
./collections
$ ansible-galaxy collection install <collection-name>.tar.gz -p ./collections
```

Please refer to our Ansible [deployment
guide](https://www.infoblox.com/wp-content/uploads/infoblox-deployment-guide-infoblox-and-ansible-integration.pdf)
for more details.

Current release
Releasing
=========

1.0.2 on 27 January 2021
Next release
---------------

Dates TBD

Current release
---------------

1.1.0 on 14 April 2021

Versioning
=========

- galaxy.yml in the master branch will always contain the version of the current major or minor release. It will be updated right after a release.
- version_added needs to be used for every new feature and module/plugin, and needs to coincide with the next minor/major release version. (This will eventually be enforced by CI.)

Deprecation
===========
- Deprecations are done by version number (not by date).
- New deprecations can be added during every minor release, under the condition that they do not break backwards compatibility.

Resources
=========

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,103 +9,123 @@ plugins:
nios_inventory:
description: Infoblox inventory plugin
name: nios_inventory
version_added: '2.10'
version_added: 1.0.0
lookup:
nios_lookup:
description: Query Infoblox NIOS objects
name: nios_lookup
version_added: null
version_added: 1.0.0
nios_next_ip:
description: Return the next available IP address for a network
name: nios_next_ip
version_added: null
version_added: 1.0.0
nios_next_network:
description: Return the next available network range for a network-container
name: nios_next_network
version_added: null
version_added: 1.0.0
module:
nios_a_record:
description: Configure Infoblox NIOS A records
name: nios_a_record
namespace: ''
version_added: null
version_added: 1.0.0
nios_aaaa_record:
description: Configure Infoblox NIOS AAAA records
name: nios_aaaa_record
namespace: ''
version_added: null
version_added: 1.0.0
nios_cname_record:
description: Configure Infoblox NIOS CNAME records
name: nios_cname_record
namespace: ''
version_added: null
version_added: 1.0.0
nios_dns_view:
description: Configure Infoblox NIOS DNS views
name: nios_dns_view
namespace: ''
version_added: null
version_added: 1.0.0
nios_dtc_lbdn:
description: Configure Infoblox NIOS DTC LBDN
name: nios_dtc_lbdn
namespace: ''
version_added: 1.1.0
nios_dtc_pool:
description: Configure Infoblox NIOS DTC Pool
name: nios_dtc_pool
namespace: ''
version_added: 1.1.0
nios_dtc_server:
description: Configure Infoblox NIOS DTC Server
name: nios_dtc_server
namespace: ''
version_added: 1.1.0
nios_fixed_address:
description: Configure Infoblox NIOS DHCP Fixed Address
name: nios_fixed_address
namespace: ''
version_added: null
version_added: 1.0.0
nios_host_record:
description: Configure Infoblox NIOS host records
name: nios_host_record
namespace: ''
version_added: null
version_added: 1.0.0
nios_member:
description: Configure Infoblox NIOS members
name: nios_member
namespace: ''
version_added: null
version_added: 1.0.0
nios_mx_record:
description: Configure Infoblox NIOS MX records
name: nios_mx_record
namespace: ''
version_added: null
version_added: 1.0.0
nios_naptr_record:
description: Configure Infoblox NIOS NAPTR records
name: nios_naptr_record
namespace: ''
version_added: null
version_added: 1.0.0
nios_network:
description: Configure Infoblox NIOS network object
name: nios_network
namespace: ''
version_added: null
version_added: 1.0.0
nios_network_view:
description: Configure Infoblox NIOS network views
name: nios_network_view
namespace: ''
version_added: null
version_added: 1.0.0
nios_nsgroup:
description: Configure InfoBlox DNS Nameserver Groups
name: nios_nsgroup
namespace: ''
version_added: null
version_added: 1.0.0
nios_ptr_record:
description: Configure Infoblox NIOS PTR records
name: nios_ptr_record
namespace: ''
version_added: null
version_added: 1.0.0
nios_restartservices:
description: Restart grid services.
name: nios_restartservices
namespace: ''
version_added: 1.1.0
nios_srv_record:
description: Configure Infoblox NIOS SRV records
name: nios_srv_record
namespace: ''
version_added: null
version_added: 1.0.0
nios_txt_record:
description: Configure Infoblox NIOS txt records
name: nios_txt_record
namespace: ''
version_added: null
version_added: 1.0.0
nios_zone:
description: Configure Infoblox NIOS DNS zones
name: nios_zone
namespace: ''
version_added: null
version_added: 1.0.0
netconf: {}
shell: {}
strategy: {}
vars: {}
version: 1.0.2
version: 1.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,20 @@ releases:
- Made it compatible for Ansible v3.0.0
release_summary: This release provides compatibilty for Ansible v3.0.0
release_date: '2021-01-27'
1.1.0:
changes:
release_summary: This release provides plugins for NIOS DTC
modules:
- description: Configure Infoblox NIOS DTC LBDN
name: nios_dtc_lbdn
namespace: ''
- description: Configure Infoblox NIOS DTC Pool
name: nios_dtc_pool
namespace: ''
- description: Configure Infoblox NIOS DTC Server
name: nios_dtc_server
namespace: ''
- description: Restart grid services.
name: nios_restartservices
namespace: ''
release_date: '2021-04-12'
2 changes: 1 addition & 1 deletion ansible_collections/infoblox/nios_modules/galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace: infoblox
name: nios_modules

# The version of the collection. Must be compatible with semantic versioning
version: 1.0.2
version: 1.1.0

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
author:
- Will Tome (@willtome)
short_description: Infoblox inventory plugin
version_added: "2.10"
version_added: "1.0.0"
description:
- Infoblox inventory plugin
options:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
---
lookup: nios
short_description: Query Infoblox NIOS objects
version_added: "1.0.0"
description:
- Uses the Infoblox WAPI API to fetch NIOS specified objects. This lookup
supports adding additional keywords to filter the return data and specify
Expand All @@ -32,34 +33,35 @@

EXAMPLES = """
- name: fetch all networkview objects
set_fact:
networkviews: "{{ lookup('nios', 'networkview', provider={'host': 'nios01', 'username': 'admin', 'password': 'password'}) }}"
ansible.builtin.set_fact:
networkviews: "{{ lookup('infoblox.nios_modules.nios', 'networkview', provider={'host': 'nios01', 'username': 'admin', 'password': 'password'}) }}"
- name: fetch the default dns view
set_fact:
dns_views: "{{ lookup('nios', 'view', filter={'name': 'default'}, provider={'host': 'nios01', 'username': 'admin', 'password': 'password'}) }}"
ansible.builtin.set_fact:
dns_views: "{{ lookup('infoblox.nios_modules.nios', 'view', filter={'name': 'default'},
provider={'host': 'nios01', 'username': 'admin', 'password': 'password'}) }}"
# all of the examples below use credentials that are set using env variables
# export INFOBLOX_HOST=nios01
# export INFOBLOX_USERNAME=admin
# export INFOBLOX_PASSWORD=admin
- name: fetch all host records and include extended attributes
set_fact:
host_records: "{{ lookup('nios', 'record:host', return_fields=['extattrs', 'name', 'view', 'comment']}) }}"
ansible.builtin.set_fact:
host_records: "{{ lookup('infoblox.nios_modules.nios', 'record:host', return_fields=['extattrs', 'name', 'view', 'comment']}) }}"
- name: use env variables to pass credentials
set_fact:
networkviews: "{{ lookup('nios', 'networkview') }}"
ansible.builtin.set_fact:
networkviews: "{{ lookup('infoblox.nios_modules.nios', 'networkview') }}"
- name: get a host record
set_fact:
host: "{{ lookup('nios', 'record:host', filter={'name': 'hostname.ansible.com'}) }}"
ansible.builtin.set_fact:
host: "{{ lookup('infoblox.nios_modules.nios', 'record:host', filter={'name': 'hostname.ansible.com'}) }}"
- name: get the authoritative zone from a non default dns view
set_fact:
host: "{{ lookup('nios', 'zone_auth', filter={'fqdn': 'ansible.com', 'view': 'ansible-dns'}) }}"
ansible.builtin.set_fact:
host: "{{ lookup('infoblox.nios_modules.nios', 'zone_auth', filter={'fqdn': 'ansible.com', 'view': 'ansible-dns'}) }}"
"""

RETURN = """
Expand Down
Loading

0 comments on commit 5d08a19

Please sign in to comment.