Skip to content

Commit

Permalink
Feat/monitors (#194)
Browse files Browse the repository at this point in the history
* feat: DTC TCP monitor

* fix: linting+sanity tests

* fix: remove test

* fix: wrongly named integration test directory

* fix: more linting fun

* fix: attempt at fixing integration test by not using cannonical name for new module

* fix: roll back previous commit

* feat: add ICMP monitor

* feat: add example playbooks for ICMP monitor

* fix: icmp unit test

* feat: DTC PDP monitor support

* fix: default for PDP port

* feat: HTTP monitor

* fix: forgot to declare constant

* fix: small copy-paste error in docs

* feat: add support for SIP DTC monitors

* feat: Add support for DTC SNMP monitors

* fix: unit test

* feat: first stab at topology support

* fix: unit test

* fix: unit test

* fix: unit test

* chore: typos

* chore: linting

* fix: topology rule transform

* feat: add new modules to README

* fix: integration tests

* fix: topology integration test
  • Loading branch information
jbisabel authored Nov 29, 2023
1 parent 0195dd8 commit 6440c52
Show file tree
Hide file tree
Showing 69 changed files with 3,408 additions and 1 deletion.
20 changes: 20 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@ Infoblox.Nios_Modules Release Notes

.. contents:: Topics

v1.6.0
======

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

This release provides plugins for NIOS DTC monitoring and topology

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

- infoblox.nios_modules.nios_dtc_monitor_http - Configure Infoblox NIOS DTC HTTP monitor
- infoblox.nios_modules.nios_dtc_monitor_icmp - Configure Infoblox NIOS DTC ICMP monitor
- infoblox.nios_modules.nios_dtc_monitor_pdp - Configure Infoblox NIOS DTC PDP monitor
- infoblox.nios_modules.nios_dtc_monitor_sip - Configure Infoblox NIOS DTC SIP monitor
- infoblox.nios_modules.nios_dtc_monitor_snmp - Configure Infoblox NIOS DTC SNMP monitor
- infoblox.nios_modules.nios_dtc_monitor_tcp - Configure Infoblox NIOS DTC TCP monitor
- infoblox.nios_modules.nios_dtc_topology - Configure Infoblox NIOS DTC Topology


v1.5.0
======

Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,24 @@ Modules

- `nios_dtc_lbdn` – Configure Infoblox NIOS DTC LBDN records

- `nios_dtc_monitor_http` – Configure Infoblox NIOS DTC HTTP monitors

- `nios_dtc_monitor_icmp` – Configure Infoblox NIOS DTC ICMP monitors

- `nios_dtc_monitor_pdp` – Configure Infoblox NIOS DTC PDP monitors

- `nios_dtc_monitor_sip` – Configure Infoblox NIOS DTC SIP monitors

- `nios_dtc_monitor_snmp` – Configure Infoblox NIOS DTC SNMP monitors

- `nios_dtc_monitor_tcp` – Configure Infoblox NIOS DTC TCP monitors

- `nios_dtc_pool` – Configure Infoblox NIOS DTC pools

- `nios_dtc_server` – Configure Infoblox NIOS DTC server records

- `nios_dtc_topology` – Configure Infoblox NIOS DTC topologies

- `nios_fixed_address` – Configure Infoblox NIOS DHCP Fixed Address

- `nios_host_record` – Configure Infoblox NIOS host records
Expand Down
35 changes: 35 additions & 0 deletions changelogs/.plugin-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,41 @@ plugins:
name: nios_dtc_server
namespace: ''
version_added: 1.1.0
nios_dtc_monitor_http:
description: Configure Infoblox NIOS DTC HTTP monitor
name: nios_dtc_monitor_http
namespace: ''
version_added: 1.6.0
nios_dtc_monitor_tcp:
description: Configure Infoblox NIOS DTC TCP monitor
name: nios_dtc_monitor_tcp
namespace: ''
version_added: 1.6.0
nios_dtc_monitor_icmp:
description: Configure Infoblox NIOS DTC ICMP monitor
name: nios_dtc_monitor_icmp
namespace: ''
version_added: 1.6.0
nios_dtc_monitor_pdp:
description: Configure Infoblox NIOS DTC PDP monitor
name: nios_dtc_monitor_pdp
namespace: ''
version_added: 1.6.0
nios_dtc_monitor_sip:
description: Configure Infoblox NIOS DTC SIP monitor
name: nios_dtc_monitor_sip
namespace: ''
version_added: 1.6.0
nios_dtc_monitor_snmp:
description: Configure Infoblox NIOS DTC SNMP monitor
name: nios_dtc_monitor_snmp
namespace: ''
version_added: 1.6.0
nios_dtc_topology:
description: Configure Infoblox NIOS DTC Topology
name: nios_dtc_topology
namespace: ''
version_added: 1.6.0
nios_fixed_address:
description: Configure Infoblox NIOS DHCP Fixed Address
name: nios_fixed_address
Expand Down
26 changes: 26 additions & 0 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,29 @@ releases:
Updates default WAPI version to `2.9`,
Added Grid Master Candidate feature'
release_date: '2023-05-11'
1.6.0:
changes:
release_summary: This release provides plugins for NIOS DTC monitoring
modules:
- description: Configure Infoblox NIOS DTC HTTP monitor
name: nios_dtc_monitor_http
namespace: ''
- description: Configure Infoblox NIOS DTC ICMP monitor
name: nios_dtc_monitor_icmp
namespace: ''
- description: Configure Infoblox NIOS DTC PDP monitor
name: nios_dtc_monitor_pdp
namespace: ''
- description: Configure Infoblox NIOS DTC SIP monitor
name: nios_dtc_monitor_sip
namespace: ''
- description: Configure Infoblox NIOS DTC SNMP monitor
name: nios_dtc_monitor_snpp
namespace: ''
- description: Configure Infoblox NIOS DTC TCP monitor
name: nios_dtc_monitor_tcp
namespace: ''
- description: Configure Infoblox NIOS DTC Topology
name: nios_dtc_topology
namespace: ''
release_date: 'tbd'
2 changes: 1 addition & 1 deletion 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.5.0
version: 1.6.0

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down
19 changes: 19 additions & 0 deletions playbooks/create_dtc_monitor_http.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---

- hosts: localhost
vars:
nios_provider:
host: 10.36.118.2
username: cloudadmin
password: admin

connection: local
tasks:
- name: Create Nios DTC HTTPS monitor Test
infoblox.nios_modules.nios_dtc_monitor_http:
name: https_monitor
port: 443
secure: true
comment: Created with Ansible
state: present
provider: "{{ nios_provider }}"
17 changes: 17 additions & 0 deletions playbooks/create_dtc_monitor_icmp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---

- hosts: localhost
vars:
nios_provider:
host: 10.36.118.2
username: cloudadmin
password: admin

connection: local
tasks:
- name: Create Nios DTC ICMP monitor Test
infoblox.nios_modules.nios_dtc_monitor_icmp:
name: icmp_monitor
comment: Created with Ansible
state: present
provider: "{{ nios_provider }}"
17 changes: 17 additions & 0 deletions playbooks/create_dtc_monitor_pdp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---

- hosts: localhost
vars:
nios_provider:
host: 10.36.118.2
username: cloudadmin
password: admin

connection: local
tasks:
- name: Create Nios DTC PDP monitor Test
infoblox.nios_modules.nios_dtc_monitor_pdp:
name: pdp_monitor
comment: Created with Ansible
state: present
provider: "{{ nios_provider }}"
17 changes: 17 additions & 0 deletions playbooks/create_dtc_monitor_sip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---

- hosts: localhost
vars:
nios_provider:
host: 10.36.118.2
username: cloudadmin
password: admin

connection: local
tasks:
- name: Create Nios DTC SIP monitor Test
infoblox.nios_modules.nios_dtc_monitor_sip:
name: sip_monitor
comment: Created with Ansible
state: present
provider: "{{ nios_provider }}"
17 changes: 17 additions & 0 deletions playbooks/create_dtc_monitor_snmp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---

- hosts: localhost
vars:
nios_provider:
host: 10.36.118.2
username: cloudadmin
password: admin

connection: local
tasks:
- name: Create Nios DTC SNMP monitor Test
infoblox.nios_modules.nios_dtc_monitor_snmp:
name: snmp_monitor
comment: Created with Ansible
state: present
provider: "{{ nios_provider }}"
18 changes: 18 additions & 0 deletions playbooks/create_dtc_monitor_tcp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---

- hosts: localhost
vars:
nios_provider:
host: 10.36.118.2
username: cloudadmin
password: admin

connection: local
tasks:
- name: Create Nios DTC TCP monitor Test
infoblox.nios_modules.nios_dtc_monitor_tcp:
name: tcp_monitor
port: 8080
comment: Created with Ansible
state: present
provider: "{{ nios_provider }}"
31 changes: 31 additions & 0 deletions playbooks/create_dtc_topology.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
- hosts: localhost
vars:
nios_provider:
host: 10.196.205.10
username: cloudadmin
password: infoblox
wapi_version: "2.12"

connection: local
tasks:
- name: Create a DTC Topology
infoblox.nios_modules.nios_dtc_topology:
name: a_topology
rules:
- dest_type: POOL
destination_link: web_pool1
return_type: REGULAR
sources:
- source_op: IS
source_type: EA0
source_value: DC1
- dest_type: POOL
destination_link: web_pool2
return_type: REGULAR
sources:
- source_op: IS
source_type: EA0
source_value: DC2
state: present
provider: "{{ nios_provider }}"
16 changes: 16 additions & 0 deletions playbooks/delete_dtc_monitor_http.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---

- hosts: localhost
vars:
nios_provider:
host: 10.36.118.2
username: cloudadmin
password: admin

connection: local
tasks:
- name: Delete Nios DTC HTTPS monitor Test
infoblox.nios_modules.nios_dtc_monitor_http:
name: https_monitor
state: absent
provider: "{{ nios_provider }}"
16 changes: 16 additions & 0 deletions playbooks/delete_dtc_monitor_icmp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---

- hosts: localhost
vars:
nios_provider:
host: 10.36.118.2
username: cloudadmin
password: admin

connection: local
tasks:
- name: Delete Nios DTC ICMP monitor Test
infoblox.nios_modules.nios_dtc_monitor_icmp:
name: icmp_monitor
state: absent
provider: "{{ nios_provider }}"
16 changes: 16 additions & 0 deletions playbooks/delete_dtc_monitor_pdp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---

- hosts: localhost
vars:
nios_provider:
host: 10.36.118.2
username: cloudadmin
password: admin

connection: local
tasks:
- name: Delete Nios DTC PDP monitor Test
infoblox.nios_modules.nios_dtc_monitor_pdp:
name: pdp_monitor
state: absent
provider: "{{ nios_provider }}"
16 changes: 16 additions & 0 deletions playbooks/delete_dtc_monitor_sip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---

- hosts: localhost
vars:
nios_provider:
host: 10.36.118.2
username: cloudadmin
password: admin

connection: local
tasks:
- name: Delete Nios DTC SIP monitor Test
infoblox.nios_modules.nios_dtc_monitor_sip:
name: sip_monitor
state: absent
provider: "{{ nios_provider }}"
16 changes: 16 additions & 0 deletions playbooks/delete_dtc_monitor_snmp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---

- hosts: localhost
vars:
nios_provider:
host: 10.36.118.2
username: cloudadmin
password: admin

connection: local
tasks:
- name: Delete Nios DTC SNMP monitor Test
infoblox.nios_modules.nios_dtc_monitor_snmp:
name: snmp_monitor
state: absent
provider: "{{ nios_provider }}"
16 changes: 16 additions & 0 deletions playbooks/delete_dtc_monitor_tcp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---

- hosts: localhost
vars:
nios_provider:
host: 10.36.118.2
username: cloudadmin
password: admin

connection: local
tasks:
- name: Delete Nios DTC TCP monitor Test
infoblox.nios_modules.nios_dtc_monitor_tcp:
name: tcp_monitor
state: absent
provider: "{{ nios_provider }}"
16 changes: 16 additions & 0 deletions playbooks/delete_dtc_topology.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
- hosts: localhost
vars:
nios_provider:
host: 10.196.205.10
username: cloudadmin
password: infoblox
wapi_version: "2.12"

connection: local
tasks:
- name: Delete a DTC Topology
nios_dtc_topology:
name: a_topology
state: absent
provider: "{{ nios_provider }}"
Loading

0 comments on commit 6440c52

Please sign in to comment.