Sha256: 7a93b8089bdfdbf0db8bbbf483b1e6b4e7e42d17ea6fd65e962d9d9bbaab6d5b

Contents?: true

Size: 821 Bytes

Versions: 2

Compression:

Stored size: 821 Bytes

Contents

# Creates the metrics dashboard
class profile::metrics::dashboard (
  Array $master_list = [$server_facts['servername']],
) {
  class { 'puppet_metrics_dashboard':
    add_dashboard_examples => true,
    consume_graphite       => true,
    influxdb_database_name => ["graphite"],
    master_list            => $master_list,
    overwrite_dashboards   => false,
  }

  include nginx

  nginx::resource::server { $facts['fqdn']:
    listen_port => 80,
    ssl         => true,
    ssl_cert    => "/etc/puppetlabs/puppet/ssl/certs/${facts['fqdn']}.pem",
    ssl_key     => "/etc/puppetlabs/puppet/ssl/private_keys/${facts['fqdn']}.pem",
    proxy       => 'http://localhost:3000',
  }

  # Remove the default config file
  file { '/etc/nginx/conf.d/default.conf':
    ensure => absent,
    notify => Service['nginx'],
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
onceover-4.0.0 spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/metrics/dashboard.pp
onceover-3.22.0 spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/metrics/dashboard.pp