helindbe
07/10/2023, 9:39 AMhelindbe
07/10/2023, 9:39 AMhelindbe
07/10/2023, 9:40 AMbastelfreak
07/10/2023, 9:40 AMhelindbe
07/10/2023, 9:43 AM# signature of a function
loaders = scope.compiler.loaders
loader = loaders.private_environment_loader
if loader && func = loader.load(:function, val)
function_instance_signature(scope, func)
else
return nil # no such function
end
... just return true or falsehelindbe
07/10/2023, 9:54 AMbastelfreak
07/10/2023, 9:54 AMhelindbe
07/10/2023, 9:57 AMvchepkov
07/10/2023, 11:36 AMPuppet::Functions.create_function(:is_classified_with) do
dispatch :is_classified_with do
param 'String', :str
end
def is_classified_with(str)
closure_scope.find_global_scope.compiler.node.classes.keys.include?(str.to_s)
end
end
vchepkov
07/10/2023, 11:37 AMdefined
function doesn't work at all on PE classes, due to some trickeryvchepkov
07/10/2023, 11:38 AMunless is_classified_with('puppet_enterprise::profile::primary_master_replica') {
helindbe
07/10/2023, 11:46 AMbinford2k
07/11/2023, 12:03 AMDr Bunsen Honeydew
07/11/2023, 12:03 AMTheodore Knab
07/12/2023, 12:27 PMpuppet_enterprise::profile::console::browser_ssl_cert:'/opt/puppetlabs/server/data/console-services/certs/public-console.cert.pem'
puppet_enterprise::profile::console::browser_ssl_private_key:'/opt/puppetlabs/server/data/console-services/certs/public-console.private_key.pem'
Theodore Knab
07/12/2023, 6:30 PMvchepkov
07/12/2023, 6:32 PMpuppet_enterprise::profile::master::code_manager_auto_configure: true
Theodore Knab
07/12/2023, 6:35 PMTheodore Knab
07/12/2023, 6:36 PMvchepkov
07/12/2023, 6:37 PMvchepkov
07/12/2023, 6:38 PMvchepkov
07/12/2023, 6:38 PM/etc/puppetlabs/enterprise/conf.d/pe.conf
vchepkov
07/12/2023, 6:40 PMSlackbot
07/12/2023, 6:51 PMRaj Parpani
07/13/2023, 1:58 AMRaj Parpani
07/13/2023, 1:58 AMRaj Parpani
07/13/2023, 2:07 AMglee
07/13/2023, 2:24 AMtfs-git
https://www.puppet.com/docs/pe/2021.7/code_mgr_webhook.html#code_manager_webhook_query_parameters
• Team Foundation Server (resource version 1.0 is supported):type=tfs-git
Raj Parpani
07/13/2023, 2:45 AMglee
07/13/2023, 2:48 AMtfs-git
per the table in the documentation