File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 157157# $apm_env
158158# String defining the environment for the APM traces
159159# String. Default: empty
160+ # $process_agent_enabled
161+ # Boolean to enable the process/container agent
162+ # Boolean. Default: false
160163#
161164# Actions:
162165#
248251 $dd_group = $datadog_agent::params::dd_group ,
249252 $apm_enabled = false ,
250253 $apm_env = ' ' ,
254+ $process_agent_enabled = false ,
251255) inherits datadog_agent::params {
252256
253257 # Allow ports to be passed as integers or strings.
321325 validate_string($consul_token )
322326 validate_bool($apm_enabled )
323327 validate_string($apm_env )
328+ validate_bool($process_agent_enabled )
324329
325330 if $hiera_tags {
326331 $local_tags = hiera_array(' datadog_agent::tags' , [])
Original file line number Diff line number Diff line change 210210 'content' => /^apm_enabled: false\n / ,
211211 ) }
212212 end
213+
213214 end
214215
215216 context 'with user provided paramaters' do
610611 'order' => '07' ,
611612 ) }
612613 end
614+ context 'with process_agent enabled' do
615+ let ( :params ) {
616+ { :process_agent_enabled => true ,
617+ } }
618+ it { should contain_concat__fragment ( 'datadog footer' ) . with (
619+ 'content' => /^process_agent_enabled: true\n / ,
620+ ) }
621+ end
622+
613623 end
614624 end
615625
Original file line number Diff line number Diff line change @@ -336,6 +336,10 @@ sd_jmx_enable: <%= @sd_jmx_enable %>
336336consul_token: <%= @consul_token %>
337337<% end -%>
338338
339+ <% if @process_agent_enabled -%>
340+ process_agent_enabled: <%= @process_agent_enabled %>
341+ <% end -%>
342+
339343# ========================================================================== #
340344# Trace #
341345# ========================================================================== #
You can’t perform that action at this time.
0 commit comments