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

    bastelfreak

    10/31/2022, 7:47 PM
    call 0800-bastelfreak for more consulting tips
  • b

    bastelfreak

    10/31/2022, 7:47 PM
    control-repo + r10k is really the setup 95% of the people use
    nodding 1
    βž• 1
  • s

    Slackbot

    10/31/2022, 7:57 PM
    This message was deleted.
    y
    n
    • 3
    • 2
  • b

    bastelfreak

    10/31/2022, 7:57 PM
    πŸ˜„
  • a

    Aaron Russo

    10/31/2022, 8:03 PM
    Wondering if anyone in here has managed to get Hiera + Deferred lookups to play nicely together. Trying to figure out how to get a Deferred lookup to work within a config hash inside of hiera, so I can pull a password from Vault. Anyone managed to do this? Here's my puppet-users post with more details if it helps: https://groups.google.com/g/puppet-users/c/OVcfriYtLMg
  • a

    Aaron Russo

    10/31/2022, 8:03 PM
    Wondering if anyone in here has managed to get Hiera + Deferred lookups to play nicely together. Trying to figure out how to get a Deferred lookup to work within a config hash inside of hiera, so I can pull a password from Vault. Anyone managed to do this? Here's my puppet-users post with more details if it helps: https://groups.google.com/g/puppet-users/c/OVcfriYtLMg
  • b

    bastelfreak

    10/31/2022, 8:10 PM
    a lot of interesting things in that mailthread
  • b

    bastelfreak

    10/31/2022, 8:12 PM
    @Aaron Russo where is the vault_lookup function coming from?
  • a

    Aaron Russo

    10/31/2022, 8:12 PM
    <https://forge.puppet.com/modules/puppet/vault_lookup>
  • s

    Slackbot

    10/31/2022, 8:13 PM
    This message was deleted.
    a
    • 2
    • 1
  • b

    bastelfreak

    10/31/2022, 8:13 PM
    https://github.com/voxpupuli/puppet-vault_lookup/blob/master/lib/puppet/functions/vault_lookup/lookup.rb#L1
  • b

    bastelfreak

    10/31/2022, 8:13 PM
    https://github.com/voxpupuli/puppet-vault_lookup/blob/master/lib/puppet/functions/vault_lookup/lookup.rb#L1
  • a

    Aaron Russo

    10/31/2022, 8:13 PM
    You're right, in the puppet manifest you use
    vault_lookup
    i had to change the backend to
    vault_lookup::lookup
    to get that to work.
  • w

    William Myers

    10/31/2022, 8:14 PM
    what was the name of the utility/module that allowed you to clone down a control repo via R10k and then emulate a puppet server locally on a host for contentdev?
  • b

    bastelfreak

    10/31/2022, 8:16 PM
    @Aaron Russo do you want that hiera does the vault lookup, or do you really want a deferred functions that's executed on the agent?
  • a

    Aaron Russo

    10/31/2022, 8:16 PM
    I want deferred. I don't want to give broad access to the puppet server.
  • a

    Aaron Russo

    10/31/2022, 8:16 PM
    Otherwise I'd use the other hiera backend for talking to Vault
  • b

    bastelfreak

    10/31/2022, 8:18 PM
    my first approach would be do call
    vault_lookup::lookup()
    in the Puppet Profile and try to avoid hiera for that
  • a

    Aaron Russo

    10/31/2022, 8:19 PM
    I'm trying to use a forge module that I don't control, and I can't just pass in that value without having to pass in the rest of the hash.
  • b

    bastelfreak

    10/31/2022, 8:19 PM
    @William Myers I've a few customers that have a Vagrantfile in their controlrepo which spins a a specific role from the control-repo + puppetserver for local development
  • a

    Aaron Russo

    10/31/2022, 8:19 PM
    Which I can do, but that's sticking data into my manifests, hence the anti-pattern remark.
  • b

    bastelfreak

    10/31/2022, 8:19 PM
    you mean puppet/gitlab_ci_runner?
  • d

    Dr Bunsen Honeydew

    10/31/2022, 8:19 PM
    See the
    puppet-gitlab_ci_runner
    module at https://forge.puppet.com/puppet/gitlab_ci_runner?src=slack&amp;channel=puppet
  • a

    Aaron Russo

    10/31/2022, 8:20 PM
    Yes
  • w

    William Myers

    10/31/2022, 8:20 PM
    vagrant, that's it! thank you
  • b

    bastelfreak

    10/31/2022, 8:20 PM
    I accept patches πŸ˜„
  • a

    Aaron Russo

    10/31/2022, 8:20 PM
    Hmm. Let me see if I can get sign off and happy to produce some.
  • b

    bastelfreak

    10/31/2022, 8:20 PM
    I recommend: hiera should not define data for component modules. component modules should be wrapped in profiles. hiera has data for profiles
    πŸ’― 1
  • b

    bastelfreak

    10/31/2022, 8:21 PM
    that allows you to manipulate data in a profile, and add e.g. business logic, and then pass it to the component module
  • s

    Slackbot

    10/31/2022, 8:21 PM
    This message was deleted.
    a
    b
    • 3
    • 4
1...222223224...428Latest