---

classes:
  - roles::ndc2

# override apache parameters
apache::user: www-data
apache::group: ossec

# monitoring services
influxdb::server::collectd_enabled: true
influxdb::server::collectd_bind_address: "%{hiera('global::pubprefix')}.50:2004"
influxdb::server::collectd_database: 'collectd'
influxdb::server::collectd_typesdb: '/usr/share/collectd/types.db'
influxdb::server::data_dir: '/home/influxdb/data'
influxdb::server::wal_dir: '/home/influxdb/wal'
influxdb::server::admin_bind_address: "%{hiera('global::pubprefix')}.50:8083"
influxdb::server::http_bind_address: "%{hiera('global::pubprefix')}.50:8086"

grafana::install_dir: '/home/grafana/install'
grafana::data_dir: '/home/grafana/data'
grafana::install_method: 'package'
grafana::cfg:
  app_mode: 'production'
  server:
    http_port: 9080
  security:
    admin_user: admin
    admin_password: "%{hiera('global::adminpassword')}"
  users:
    allow_sign_up: false

---

classes:
  - roles::ndc2

# override apache parameters
apache::user: www-data
apache::group: ossec

# monitoring services
influxdb::server::collectd_options:
  enabled: true
  bind-address: "%{hiera('global::pubprefix')}.50:2004"
  database: 'collectd'
  typesdb: '/usr/share/collectd/types.db'
  batch-size: 1000
  batch-pending: 5
  batch-timeout: '1s'
  read-buffer: 0

influxdb::server::data_dir: '/home/influxdb/data'
influxdb::server::wal_dir: '/home/influxdb/wal'
influxdb::server::admin_bind_address: "%{hiera('global::pubprefix')}.50:8083"
influxdb::server::http_bind_address: "%{hiera('global::pubprefix')}.50:8086"

grafana::install_dir: '/home/grafana/install'
grafana::data_dir: '/home/grafana/data'
grafana::install_method: 'package'
grafana::cfg:
  app_mode: 'production'
  server:
    http_port: 9080
  security:
    admin_user: admin
    admin_password: "%{hiera('global::adminpassword')}"
  users:
    allow_sign_up: false

Fix issue on influxdb setting about collectd integration
Fix issue on influxdb setting about collectd integration
