vchepkov
07/05/2023, 8:31 PMvchepkov
07/05/2023, 8:39 PM~pe-puppet/.gitconfig
Slackbot
07/06/2023, 3:57 PMJay Iorio
07/07/2023, 3:50 PMvchepkov
07/07/2023, 4:50 PMsteveax
07/07/2023, 5:18 PMJay Iorio
07/07/2023, 5:19 PMn3snah
07/10/2023, 2:22 AMbastelfreak
07/10/2023, 8:06 AMis_function_available
function. This is used in puppetlabs/puppet_agent to determine if a PE function is available. https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/main/manifests/params.pp#L47
I am exploring options if this can be implemented in a different way. I didn't find any builtin/stdlib fact that tells me if an agent is a PEDr Bunsen Honeydew
07/10/2023, 8:06 AMpuppetlabs-stdlib
module at https://forge.puppet.com/puppetlabs/stdlib?src=slack&channel=puppet-enterprisebastelfreak
07/10/2023, 8:06 AMbastelfreak
07/10/2023, 8:07 AMis_pe
fact but that works only on primaries/compilers, not regular agentshelindbe
07/10/2023, 9:04 AMbastelfreak
07/10/2023, 9:20 AMbastelfreak
07/10/2023, 9:25 AMSlackbot
07/10/2023, 9:26 AMbastelfreak
07/10/2023, 9:26 AMbastelfreak
07/10/2023, 9:26 AMdefined()
cannot handle functions, only types/resources?bastelfreak
07/10/2023, 9:30 AMhelindbe
07/10/2023, 9:32 AMdefined()
can check for resources/classes and variables, but not functions.bastelfreak
07/10/2023, 9:32 AMhelindbe
07/10/2023, 9:34 AMis_function_available
that works for all types of functions wouldn't be very hard. Seems like a better idea than putting the old "only works for 3x API functions" back again.bastelfreak
07/10/2023, 9:35 AM$ git grep master_agent_version
CHANGELOG.md:- Base master_agent_version on pe_compiling_server_aio_build().
HISTORY.md:- Base master_agent_version on pe_compiling_server_aio_build().
acceptance/helpers.rb: master_agent_version = fact_on(master, 'aio_agent_version')
acceptance/helpers.rb: unless master_agent_version
acceptance/helpers.rb: initial_package_version_or_collection ||= master_agent_version
manifests/params.pp: $master_agent_version = pe_compiling_server_aio_build()
manifests/params.pp: $master_agent_version = undef
manifests/params.pp: $master_agent_version = undef
helindbe
07/10/2023, 9:35 AMdefined
in puppet to also find functions - for example defined("foo()")
- but that would not help with your use case as it would require a new puppet release.bastelfreak
07/10/2023, 9:35 AMhelindbe
07/10/2023, 9:36 AMbastelfreak
07/10/2023, 9:37 AMbastelfreak
07/10/2023, 9:37 AMbastelfreak
07/10/2023, 9:37 AMhelindbe
07/10/2023, 9:39 AM