|
11 | 11 | # set to 'datadoghq.eu' to send data to the EU site. |
12 | 12 | # This option is only available with agent version >= 6.6.0. |
13 | 13 | # $host: |
| 14 | +# Force the hostname to whatever you want. (default: auto-detected) |
14 | 15 | # $api_key: |
15 | 16 | # Your DataDog API Key. Please replace with your key value. |
16 | 17 | # $collect_ec2_tags |
17 | 18 | # Collect AWS EC2 custom tags as agent tags. |
18 | 19 | # Boolean. Default: false |
| 20 | +# $collect_gce_tags |
| 21 | +# Collect Google Cloud Engine metadata as agent tags. |
| 22 | +# Boolean. Default: false |
19 | 23 | # $collect_instance_metadata |
20 | 24 | # The Agent will try to collect instance metadata for EC2 and GCE instances. |
21 | 25 | # Boolean. Default: true |
|
45 | 49 | # Instead of reporting the puppet nodename, use this regex to extract the named |
46 | 50 | # 'hostname' captured group to report the run in Datadog. |
47 | 51 | # ex.: '^(?<hostname>.*\.datadoghq\.com)(\.i-\w{8}\..*)?$' |
| 52 | +# $hostname_fqdn |
| 53 | +# Make the agent use "hostname -f" on unix-based systems as a last resort |
| 54 | +# way of determining the hostname instead of Golang "os.Hostname()" |
| 55 | +# This will be enabled by default in version 6.6 |
| 56 | +# More information at https://dtdg.co/flag-hostname-fqdn |
| 57 | +# Optional: Valid values here are: true or false. |
48 | 58 | # $log_to_syslog |
49 | 59 | # Set value of 'log_to_syslog' variable. Default is true -> yes as in dd-agent. |
50 | 60 | # Valid values here are: true or false. |
|
212 | 222 | $host = '', |
213 | 223 | $api_key = 'your_API_key', |
214 | 224 | $collect_ec2_tags = false, |
| 225 | + $collect_gce_tags = false, |
215 | 226 | $collect_instance_metadata = true, |
216 | 227 | $tags = [], |
217 | 228 | $integrations = {}, |
|
228 | 239 | $service_enable = true, |
229 | 240 | $manage_repo = true, |
230 | 241 | $hostname_extraction_regex = nil, |
| 242 | + $hostname_fqdn = false, |
231 | 243 | $dogstatsd_port = 8125, |
232 | 244 | $dogstatsd_socket = '', |
233 | 245 | $statsd_forward_host = '', |
|
315 | 327 | validate_legacy(String, 'validate_string', $dd_url) |
316 | 328 | validate_legacy(String, 'validate_string', $datadog_site) |
317 | 329 | validate_legacy(String, 'validate_string', $host) |
| 330 | + validate_legacy(Boolean, 'validate_bool', $hostname_fqdn) |
318 | 331 | validate_legacy(String, 'validate_string', $api_key) |
319 | 332 | validate_legacy(Array, 'validate_array', $tags) |
320 | 333 | validate_legacy(Boolean, 'validate_bool', $hiera_tags) |
|
341 | 354 | validate_legacy(Boolean, 'validate_bool', $skip_apt_key_trusting) |
342 | 355 | validate_legacy(Boolean, 'validate_bool', $use_curl_http_client) |
343 | 356 | validate_legacy(Boolean, 'validate_bool', $collect_ec2_tags) |
| 357 | + validate_legacy(Boolean, 'validate_bool', $collect_gce_tags) |
344 | 358 | validate_legacy(Boolean, 'validate_bool', $collect_instance_metadata) |
345 | 359 | validate_legacy(String, 'validate_string', $recent_point_threshold) |
346 | 360 | validate_legacy(String, 'validate_re', $_listen_port, '^\d*$') |
|
636 | 650 | 'dd_url' => $dd_url, |
637 | 651 | 'site' => $datadog_site, |
638 | 652 | 'cmd_port' => $cmd_port, |
| 653 | + 'hostname_fqdn' => $hostname_fqdn, |
639 | 654 | 'collect_ec2_tags' => $collect_ec2_tags, |
| 655 | + 'collect_gce_tags' => $collect_gce_tags, |
640 | 656 | 'conf_path' => $datadog_agent::params::conf6_dir, |
641 | 657 | 'enable_metadata_collection' => $collect_instance_metadata, |
642 | 658 | 'dogstatsd_port' => $dogstatsd_port, |
|
0 commit comments