File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# This class will install the necessary configuration for the ceph integration
44#
55# Parameters:
6+ # $tags
7+ # Optional array of tags
8+ # $ceph_cmd
9+ # Optional ceph cmd
610
711# Sample Usage:
812#
913# class { 'datadog_agent::integrations::ceph' :
1014# }
1115#
1216class datadog_agent::integrations::ceph (
17+ $tags = [ ' name:ceph_cluster' ],
18+ $ceph_cmd = ' /usr/bin/ceph' ,
1319) inherits datadog_agent::params {
1420 include datadog_agent
1521
22+ validate_array($tags )
23+
1624 file { '/etc/sudoers.d/datadog_ceph' :
1725 content => " # This file is required for dd ceph \n dd-agent ALL=(ALL) NOPASSWD:/usr/bin/ceph\n "
1826 }
Original file line number Diff line number Diff line change 11init_config:
22
33instances:
4+ <% if @tags and ! @tags.empty? -%>
45 - tags:
5- - name:ceph_cluster
6+ <%- @tags.each do |tag| -%>
7+ - <%= tag %>
8+ <%- end -%>
9+ <% end -%>
610
7- ceph_cmd: /usr/bin/ceph
11+ ceph_cmd: <%= @crm_mon_cmd %>
812
913# If your environment requires sudo, please add a line like:
1014# dd-agent ALL=(ALL) NOPASSWD:/usr/bin/ceph
You can’t perform that action at this time.
0 commit comments