https://www.puppet.com/community logo
Join SlackCommunities
Powered by
# puppet-enterprise
  • v

    vchepkov

    07/05/2023, 8:31 PM
    can it be a part of a URL? like a password or a parameter?
  • v

    vchepkov

    07/05/2023, 8:39 PM
    if not, you would need to add proper headers in
    ~pe-puppet/.gitconfig
  • s

    Slackbot

    07/06/2023, 3:57 PM
    This message was deleted.
    s
    t
    j
    • 4
    • 43
  • j

    Jay Iorio

    07/07/2023, 3:50 PM
    Is there any further information on a more specific timeline when Puppet 8 Becomes a part of PE? and if so a Version #?
  • v

    vchepkov

    07/07/2023, 4:50 PM
    August, 2023.3, but it wasn't 'official'
  • s

    steveax

    07/07/2023, 5:18 PM
    The version number is definitely subject to change
  • j

    Jay Iorio

    07/07/2023, 5:19 PM
    Thanks
  • n

    n3snah

    07/10/2023, 2:22 AM
    Is there a way to retrieve a list/info of all the task_targets in PE? Looking at the API, I can't see a GET option. https://www.puppet.com/docs/pe/2019.8/orchestrator_api_commands_endpoint.html#orchestrator_api_post_command_task_target
  • b

    bastelfreak

    07/10/2023, 8:06 AM
    good morning PE people! puppetlabs/stdlib 9 dropped the
    is_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 PE
  • d

    Dr Bunsen Honeydew

    07/10/2023, 8:06 AM
    See the
    puppetlabs-stdlib
    module at https://forge.puppet.com/puppetlabs/stdlib?src=slack&channel=puppet-enterprise
  • b

    bastelfreak

    07/10/2023, 8:06 AM
    Any ideas how we could determine this or do we need to readd the function to stdlib?
  • b

    bastelfreak

    07/10/2023, 8:07 AM
    there is a
    is_pe
    fact but that works only on primaries/compilers, not regular agents
  • h

    helindbe

    07/10/2023, 9:04 AM
    Hm, pe has some specific resource types/defines IIRC, could their presence be used (i.e call defined()).
  • b

    bastelfreak

    07/10/2023, 9:20 AM
    ah right
  • b

    bastelfreak

    07/10/2023, 9:25 AM
    @helindbe there is no native try/catch in Puppet, right?
  • s

    Slackbot

    07/10/2023, 9:26 AM
    This message was deleted.
    c
    b
    • 3
    • 7
  • b

    bastelfreak

    07/10/2023, 9:26 AM
    then we could just call the function and catch an error if the function doesn't exist
  • b

    bastelfreak

    07/10/2023, 9:26 AM
    I think
    defined()
    cannot handle functions, only types/resources?
  • b

    bastelfreak

    07/10/2023, 9:30 AM
    that's really a function that could be moved to stdlib...
  • h

    helindbe

    07/10/2023, 9:32 AM
    @bastelfreak correct, there is no try/catch function, and
    defined()
    can check for resources/classes and variables, but not functions.
  • b

    bastelfreak

    07/10/2023, 9:32 AM
    dang, okay thanks
  • h

    helindbe

    07/10/2023, 9:34 AM
    Writing a new
    is_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.
  • b

    bastelfreak

    07/10/2023, 9:35 AM
    ah aha! I think the variable isn't even used anymore:
    Copy code
    $ 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
  • h

    helindbe

    07/10/2023, 9:35 AM
    Also meaningful would be to extend the
    defined
    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.
  • b

    bastelfreak

    07/10/2023, 9:35 AM
    I agree, such a function would be helpful (and I'm still not sure if it was deleted on purpose or by accidient
  • h

    helindbe

    07/10/2023, 9:36 AM
    I think on purpose since it is useless for all 4x/modern functions IIRC.
  • b

    bastelfreak

    07/10/2023, 9:37 AM
    ahhh
  • b

    bastelfreak

    07/10/2023, 9:37 AM
    so it didn't detect all functions, just legacy?
  • b

    bastelfreak

    07/10/2023, 9:37 AM
    didn't know that
  • h

    helindbe

    07/10/2023, 9:39 AM
    yes
1...585960...73Latest