puppetlabs / puppetlabs-puppet_agent

Module for managing Puppet-Agent
Apache License 2.0
41 stars 192 forks source link

(PA-5691) Add missing puppet settings to config_setting.pp #661

Closed AriaXLi closed 1 year ago

AriaXLi commented 1 year ago

This commit updates config_setting.pp and adds any missing puppet 7.x and 8.x settings. Some puppet 8.x specific settings, like ca_refresh_interval are being added. The agent will ignore any settings it does not understand/support.

AriaXLi commented 1 year ago
puppet on  main [$?] via 💎 v3.1.0
❯ bundle exec puppet doc -r configuration | grep '### ' > all_puppet_config_settings.txt

I edited all_puppet_config_settings a bit so it matches the formatting of config_setting.pp then compared the differences:

puppetlabs-puppet_agent on  main [?] via 💎 v3.1.0 took 3m44s
❯ diff types/config_setting.pp types/all_puppet_config_settings.pp
6a7
>   allow_pson_serialization,
15a17
>   ca_refresh_interval,
64d65
<   environment_timeout_mode,
66a68
>   exclude_unchanged_resources,
70d71
<   facterng,
77,78d77
<   func3x_check,
<   future_features,
85a85
>   hostcert_renewal_interval,
102a103
>   include_legacy_facts,
122a124
>   location_trusted,
145d146
<   node_name,
163a165
>   preprocess_deferred,
169a172
>   publicdir,
173a177
>   report_configured_environmentpath,
180c184
---
<   rest_authconfig,
193a197
>   settings_catalog,
201d204
<   ssl_client_ca_auth,
205d207
<   ssl_server_ca_auth,
216d217
<   strict_hostname_checking,
228a230
>   use_last_environment,
237c239,240
<   yamldir
---
>   write_catalog_summary,
>   yamldir,