voxpupuli / puppet-kibana

Kibana Puppet module by Elastic.
Apache License 2.0
16 stars 48 forks source link

Config doesn't allow to use hash #34

Closed tobymaro closed 6 years ago

tobymaro commented 6 years ago

Code:

class { 'kibana':
    ensure => $kibana_version,
    config => {
      'server.host'                        => $server_host,
      'elasticsearch.url'                  => $elasticsearch_url,
      # Sentinl Configuration
      'sentinl' => {
        'settings' => {
          'email' => {
            'active'   => true,
            'host'     => $smtp_server,
            'port'     => $smtp_server_port,
            'ssl'      => $smtp_ssl,
            'user'     => $smtp_username,
            'password' => $smtp_password
          }
        }
      }
  }

Error: Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Class[Kibana]: parameter 'config' entry 'sentinl' expects a value of type String, Integer, Boolean, or Array, got Struct (file: /modules/elk/manifests/kibana.pp, line: 31, column: 3) on node ip-192-168-1-1.ec2.internal

Feature Request

Config should accept Struct.