Skip to content

Commit 01f0ba4

Browse files
committed
Add ceph integration
1 parent 3ddb8b4 commit 01f0ba4

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

manifests/integrations/ceph.pp

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Class: datadog_agent::integrations::ceph
2+
#
3+
# This class will install the necessary configuration for the ceph integration
4+
#
5+
# Parameters:
6+
7+
# Sample Usage:
8+
#
9+
# class { 'datadog_agent::integrations::ceph' :
10+
# }
11+
#
12+
class datadog_agent::integrations::ceph(
13+
) inherits datadog_agent::params {
14+
include datadog_agent
15+
16+
file { '/etc/sudoers.d/datadog_ceph':
17+
content => "# This file is required for dd ceph \ndd-agent ALL=(ALL) NOPASSWD:/usr/bin/ceph\n"
18+
}
19+
20+
file { "${datadog_agent::params::conf_dir}/ceph.yaml":
21+
ensure => file,
22+
owner => $datadog_agent::params::dd_user,
23+
group => $datadog_agent::params::dd_group,
24+
mode => '0600',
25+
content => template('datadog_agent/agent-conf.d/ceph.yaml.erb'),
26+
require => Package[$datadog_agent::params::package_name],
27+
notify => Service[$datadog_agent::params::service_name]
28+
}
29+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
init_config:
2+
3+
instances:
4+
- tags:
5+
- name:ceph_cluster
6+
7+
ceph_cmd: /usr/bin/ceph
8+
9+
# If your environment requires sudo, please add a line like:
10+
# dd-agent ALL=(ALL) NOPASSWD:/usr/bin/ceph
11+
# to your sudoers file, and uncomment the below option.
12+
13+
use_sudo: True

0 commit comments

Comments
 (0)