sensu/sensu-puppet

Feature Request: Making dashboard-port flag available as a param to sensu::backend

amccrea opened this issue · 2 comments

Is it possible to get the --dashboard-port flag (listed here in the docs*) available to the sensu backend class? I don't want to run the UI on :3000, and I'd like to set this in puppet so I don't need to start the sensu backend up on the command line with --dashboard-port 443, for instance.

Thanks,
Alison

You have two options. Either adding the config option to backend.yml or add it to environment for sensu-backend. All backend service flags have corresponding YAML option or environment variable option, at least in most cases.

class { 'sensu::backend':
  config_hash => {
    'dashboard-port' => 443,
  },
}

Or

class { 'sensu::backend':
  service_env_vars => {
    'SENSU_BACKEND_DASHBOARD_PORT' => 443,
  },
}

Hi Trey, I am really sorry, I wasn't thinking -- I should have asked support if it was possible first (and RTFM...). Sorry for the noise, and thanks for the quick response!