https://www.puppet.com/community logo
Join Slack
Powered by
# office-hours
  • b

    bastelfreak

    08/02/2022, 5:30 PM
    (at least I did)
  • j

    josh

    08/02/2022, 5:30 PM
    Hi @bastelfreak could you provide more details about how/where the
    tier
    variable is set?
  • b

    bastelfreak

    08/02/2022, 5:32 PM
    how the heck did I miss that information
  • b

    bastelfreak

    08/02/2022, 5:32 PM
    those variables are set in PE node groups
  • b

    bastelfreak

    08/02/2022, 5:33 PM
    I think the tab is called variables
  • b

    bastelfreak

    08/02/2022, 5:36 PM
    ah I mentiones it in a comment in the related issue: https://tickets.puppetlabs.com/browse/PUP-11437?focusedCommentId=866168&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-866168 (and probably the zendesk tiket
  • j

    josh

    08/02/2022, 5:37 PM
    ah thanks!
  • j

    josh

    08/02/2022, 5:49 PM
    Ok I see. The patch you proposed in the ticket (11595) works because it causes
    puppet lookup
    to always use the configured node terminus (in PE, it's
    classifier.rb
    ) to retrieve node classes, parameters, etc.
  • j

    josh

    08/02/2022, 5:50 PM
    Currently if environment is specified explicitly, we use the builtin
    plain
    terminus, so you don't get any of the server side parameters
  • b

    bastelfreak

    08/02/2022, 5:50 PM
    I was wondering if that ever worked on purpose or by accident
  • j

    josh

    08/02/2022, 5:53 PM
    @bastelfreak I think your ticket is a dup of https://tickets.puppetlabs.com/browse/PUP-11527
  • j

    josh

    08/02/2022, 5:54 PM
    The trouble is that if an agent is not allowed to specify its environment (i.e. it's enforced in the classifier), then
    puppet lookup -E web key
    is not well defined.
  • j

    josh

    08/02/2022, 5:55 PM
    Historically it was always the value of
    key
    in the server-specified environment. We tried to fix that in https://tickets.puppetlabs.com/browse/PUP-7479
  • j

    josh

    08/02/2022, 5:56 PM
    So that
    puppet lookup -E web key
    returns the value of
    key
    in environment
    web
    no matter how the classifier is configured.
  • j

    josh

    08/02/2022, 5:58 PM
    But in doing so we "lost" classifier provided information like
    classes
    and
    parameters
  • d

    Dr Bunsen Honeydew

    08/02/2022, 6:02 PM
    the more you know Next up is 🧑‍🏫 Bolt in 164 hours
  • s

    smortex

    08/02/2022, 6:03 PM
    o/
  • s

    smortex

    08/02/2022, 6:04 PM
    I feel like there are a bunch of PR for facter and puppetlabs-puppetdb that need some love 🙂
  • d

    Dr Bunsen Honeydew

    08/02/2022, 6:04 PM
    See the
    puppetlabs-puppetdb
    module at https://forge.puppet.com/puppetlabs/puppetdb?src=slack&channel=office-hours
  • s

    smortex

    08/02/2022, 6:06 PM
    mainly puppetdb, even if I have PR with no feedback in both repos. Is there something we can help with as community members?
  • s

    smortex

    08/02/2022, 6:06 PM
    (I approved some PR by @bastelfreak but I am not sure it will help)
  • j

    josh

    08/02/2022, 6:09 PM
    Hi @smortex sorry I don't really know the status of
    puppetlabs-puppetdb
    ? I'd check with @binford2k about that.
  • d

    Dr Bunsen Honeydew

    08/02/2022, 6:09 PM
    See the
    puppetlabs-puppetdb
    module at https://forge.puppet.com/puppetlabs/puppetdb?src=slack&channel=office-hours
  • j

    josh

    08/02/2022, 6:10 PM
    We do have plans on reviewing community PRs to puppet and facter in our upcoming sprint
    ❤️ 1
    👍 1
  • s

    smortex

    08/02/2022, 6:10 PM
    Maybe I should request to be added as a collaborator to this project 🤷
  • j

    josh

    08/02/2022, 6:11 PM
    Yeah I'd be in favor of that!
  • s

    smortex

    08/02/2022, 6:12 PM
    But my feeling is that PuppetDB is managed by another group of people quite independant from the rest of Puppet
  • j

    josh

    08/02/2022, 6:17 PM
    @bastelfreak about the lookup issue, the crux of the problem is that the classifier may assign a node to an environment. So when you do
    puppet lookup -E web
    do you want to know what value the node will get when it next runs (which may not be from env
    web
    !) ?
  • j

    josh

    08/02/2022, 6:18 PM
    Or do you want to override the classifier and always get the value from
    web
    (even though the classifier may assign the agent to a different environment when it next runs)?
  • j

    josh

    08/02/2022, 6:19 PM
    Or do you want to override the classifier and always get the value from
    web
    (even though the classifier may assign the agent to a different environment when it next runs)?
1...161718...78Latest