Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow muliple API Host for icingaweb2::module::monitoring #155

Closed
baurmatt opened this issue Aug 22, 2017 · 2 comments
Closed

Allow muliple API Host for icingaweb2::module::monitoring #155

baurmatt opened this issue Aug 22, 2017 · 2 comments

Comments

@baurmatt
Copy link
Contributor

Expected Behavior

It should be possible to define multiple API hosts

Current Behavior

You can only specify one api_host which isn't enough in a HA setup. Also you can't specify a command pipe transport.

Possible Solution

Implement parameter commandtransports which is a hash which also allows to specify the type. For example:

commandtransports:
  'master01':
    type: 'api'
    host: '10.1.1.1'
    port: 5665
    username: 'web'
    password: 'foo'
  'master02':
    type: 'api'
    host: '10.1.1.2'
    port: 5665
    username: 'web'
    password: 'foo'

Steps to Reproduce (for bugs)

Search for a option to specify muliple api_hosts

Context

In a HA setup: If api_host isn't reachable you can't send commands.

Your Environment

  • Module version (puppet module list): 29cbce1
  • Puppet version (puppet -V): 4.10.1
  • Operating System and version: Ubuntu 16.04.2
@rgevaert
Copy link
Contributor

rgevaert commented Aug 22, 2017

@baurmatt as (temporary?) workaround you can add your own ini sections. e.g.

  icingaweb2::inisection {'icinga2-local-transport':
    target       => "${::icingaweb2::params::conf_dir}/modules/monitoring/commandtransports.ini",
    section_name => 'icinga2-local',
    settings     => {
      'type' => 'local',
      'path' => '/var/run/icinga2/cmd/icinga2.cmd',
    },
  }

@baurmatt
Copy link
Contributor Author

Thanks, but we already have a dirty hack in our profile which handles modules as those where only added a couple of days ago. I'm going to implement this now and will add a PR later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants