From e0cbf2b760a042b8fa6f95c3d07f82ee630796bc Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Tue, 17 Sep 2019 10:15:26 +0200 Subject: [PATCH] common: remove snmpd --- group_vars/all/vars.yml | 4 ---- roles/common/files/snmpd | 3 --- roles/common/handlers/main.yml | 6 ------ roles/common/templates/snmpd.conf.j2 | 29 ---------------------------- 4 files changed, 42 deletions(-) delete mode 100644 roles/common/files/snmpd delete mode 100644 roles/common/templates/snmpd.conf.j2 diff --git a/group_vars/all/vars.yml b/group_vars/all/vars.yml index fbdab22..137c8c4 100644 --- a/group_vars/all/vars.yml +++ b/group_vars/all/vars.yml @@ -88,10 +88,6 @@ root_keys: slapd_san: ldap.binary.kitchen -snmp_allowed: -- 172.23.2.5 -- 172.23.2.6 - zammad_domain: zammad.binary-kitchen.de zammad_dbname: zammad zammad_dbuser: zammad diff --git a/roles/common/files/snmpd b/roles/common/files/snmpd deleted file mode 100644 index b60b481..0000000 --- a/roles/common/files/snmpd +++ /dev/null @@ -1,3 +0,0 @@ -[Service] -ExecStart= -ExecStart=/usr/sbin/snmpd -LSed -Lf /dev/null -u Debian-snmp -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf -f diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml index 041e8eb..41faca2 100644 --- a/roles/common/handlers/main.yml +++ b/roles/common/handlers/main.yml @@ -1,10 +1,4 @@ --- -- name: Reload systemd - command: systemctl daemon-reload - -- name: Restart snmpd - service: name=snmpd state=restarted - - name: update-initramfs command: update-initramfs -u -k all diff --git a/roles/common/templates/snmpd.conf.j2 b/roles/common/templates/snmpd.conf.j2 deleted file mode 100644 index 4d212b3..0000000 --- a/roles/common/templates/snmpd.conf.j2 +++ /dev/null @@ -1,29 +0,0 @@ -############################################################################### -# -# AGENT BEHAVIOUR -# - -# Listen for connections on all interfaces, IPv4 only -agentAddress udp:161 - - -############################################################################### -# -# ACCESS CONTROL -# - - -rocommunity public 127.0.0.1 - -{% for srv in snmp_allowed %} -rocommunity public {{ srv }} -{% endfor %} - - -############################################################################### -# -# SYSTEM INFORMATION -# - -sysLocation Binary Kitchen e.V., Regensburg, Germany -syscontact Markus Hauschild