Skip to content

Commit

Permalink
Merge pull request #2 from Vanguard-SG/mibdirs+
Browse files Browse the repository at this point in the history
Mibdirs+
  • Loading branch information
pablodav authored Jul 23, 2020
2 parents bfa39f5 + ef1a672 commit 45bcf58
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 13 deletions.
6 changes: 6 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,9 @@ snmptt_trap_files:
- /etc/snmp/snmptt.conf.hh3c_ui-man

snmp_netdisco_mibs_repo: "https://github.com/netdisco/netdisco-mibs.git"

nagios4_snmp_mib_dir_list: []
# Optionally define mibdirs to be added to snmp.conf, example:
# nagios4_snmp_mib_dir_list:
# - /var/lib/mibs/aruba_202005
# - /var/lib/mibs/hp_202003
11 changes: 5 additions & 6 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ dependency:
role-file: requirements.yml
driver:
name: docker
lint:
name: yamllint
lint: |
set -e
yamllint .
ansible-lint
flake8
platforms:

- name: ansible_test-01
Expand Down Expand Up @@ -50,13 +53,9 @@ provisioner:
config_options:
defaults:
callback_whitelist: profile_tasks
lint:
name: ansible-lint

scenario:
name: default

verifier:
name: testinfra
lint:
name: flake8
11 changes: 5 additions & 6 deletions molecule/local/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ dependency:
role-file: requirements.yml
driver:
name: docker
lint:
name: yamllint
lint: |
set -e
yamllint .
ansible-lint
flake8
platforms:

- name: ansible_test-01
Expand Down Expand Up @@ -63,13 +66,9 @@ provisioner:
- name: client_to_remove
- name: other_client_to_remove
burp_server_port_per_operation_bool: true
lint:
name: ansible-lint

scenario:
name: local

verifier:
name: testinfra
lint:
name: flake8
6 changes: 6 additions & 0 deletions templates/snmp.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,9 @@ mibdirs +/var/lib/mibs/netdisco-mibs/rfc
#mibdirs +/var/lib/mibs/netdisco-mibs/trapeze
mibdirs +/var/lib/mibs/netdisco-mibs/vmware
#mibdirs +/var/lib/mibs/netdisco-mibs/xirrus

# Support additional mibdirs specified on nagios4_snmp_mib_dir_list
{% if nagios4_snmp_mib_dir_list %}
{% for l in nagios4_snmp_mib_dir_list %}
mibdirs +{{ l }}{% endfor %}
{% endif %}
2 changes: 1 addition & 1 deletion vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ snmptrap_dependencies:
- snmp-mibs-downloader
- snmp
- git
- python-pip
- python3-pip
- snmptrapd

snmptrap_config_supervisor: false
Expand Down

0 comments on commit 45bcf58

Please sign in to comment.