| # Class: datadog_agent::integrations::ceph |
| # |
| # This class will install the necessary configuration for the ceph integration |
| # |
| # Parameters: |
| |
| # Sample Usage: |
| # |
| # class { 'datadog_agent::integrations::ceph' : |
| # } |
| # |
| class datadog_agent::integrations::ceph( |
| ) inherits datadog_agent::params { |
| include datadog_agent |
| |
| file { '/etc/sudoers.d/datadog_ceph': |
| content => "# This file is required for dd ceph \ndd-agent ALL=(ALL) NOPASSWD:/usr/bin/ceph\n" |
| } |
| |
| file { "${datadog_agent::params::conf_dir}/ceph.yaml": |
| ensure => file, |
| owner => $datadog_agent::params::dd_user, |
| group => $datadog_agent::params::dd_group, |
| mode => '0600', |
| content => template('datadog_agent/agent-conf.d/ceph.yaml.erb'), |
| require => Package[$datadog_agent::params::package_name], |
| notify => Service[$datadog_agent::params::service_name] |
| } |
| } |