Allow to configure snmpd_config
authorEmilien Macchi <emilien@redhat.com>
Mon, 2 Oct 2017 20:47:10 +0000 (13:47 -0700)
committerEmilien Macchi <emilien@redhat.com>
Fri, 6 Oct 2017 19:01:36 +0000 (19:01 +0000)
commit7f1a21a378341fe3908e5efb17ca080360b6b606
treef4da2261a8b05343dfe3d7037699cb4bb41cfc68
parent67e1e603a6b81e7532eb2cac2e27eec1ea413d32
Allow to configure snmpd_config

Expose a new Puppet parameter to snmp profile, ``snmpd_config`` which
is an array definded to undef by default.
It can be used to override all snmpd configuration for advanced
deployments.
If used, all parameters have to be configured included users and
passwords, which should be the same as given to snmpd_password
and snmpd_user. There is no logic that will verify the content
of ``snmpd_config``.

Example of hieradata which configures snmpd_config:
  snmpd_config:
    - 'createUser ro_snmp_user MD5 "secrete"',
    - 'rouser ro_snmp_user'
    - 'proc neutron-server'
    - 'proc nova-api'

Change-Id: Ief2518d5e47137215a34e9ae3b35c27c87fa6e08
Closes-Bug: #1720868
(cherry picked from commit c211ba78cabde54be2e3a6672f6e1d33d1d580f0)
Puppetfile_extras
manifests/profile/base/snmp.pp
releasenotes/notes/snmdd_config-db21f3175967be4a.yaml [new file with mode: 0644]
spec/classes/tripleo_profile_base_snmp_spec.rb [new file with mode: 0644]