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

    Brian Schonecker

    06/10/2025, 6:43 PM
    Good 14:41 EDT. I have a custom fact that comes from an API call to Oracle Cloud API environment. The information from the API call that I need will never change throughout the lifetime of the virtual machine. Is there a way to cache custom facts in Puppet? I realize I could just run a cron job once a day and export to a file but I was hoping that perhaps there was some caching mechanism I could use before going the cron route. Thanks.
    t
    n
    +3
    • 6
    • 37
  • j

    Jason St-Cyr

    06/10/2025, 8:16 PM
    šŸ‘‹ Hello all! A bit delayed in introducing myself and saying hi. I joined over at Perforce a few weeks back and am looking forward to being able to be a part of the community here and see how I can help! A little about me: • I used to be a lot of things: software dev, musician, and ball hockey player. Now I mostly write and play D&D 🤣 šŸŽ² • I'm a Canadian, eh? šŸ • I am addicted to Duolingo and currently have a 2400+ day streak across 8 languages (french, german, danish, dutch, hawaiian, arabic, italian, and spanish). I can probably only speak in French, though, because Duolingo is a fun game but not a replacement for actually living a language!
    y
    t
    +2
    • 5
    • 8
  • m

    Matthew Chan

    06/11/2025, 2:27 PM
    Is there any extra config required to get filebucket backups working other than this in site.pp?
    Copy code
    filebucket { 'main':
      path   => false,
      server => 'fqdn.corp',
    }
    File { backup => main, }
    • 1
    • 1
  • y

    Yorokobi

    06/12/2025, 11:48 AM
    Anybody else with Fedora 42 who can't install/upgrade PDK 3.5.0? I've tried the Fedora 40 and EL 9 Core repositories and get GPG failures: Signature verification failed. The macOS installer is also not trusted (tested on two M2 macOS 15.5 laptops).
    b
    y
    n
    • 4
    • 15
  • a

    ahmet2mir

    06/13/2025, 12:02 PM
    Hello friends, a colleague released a module on Forge under
    worldline
    org using
    pdk release
    command, but the forge returns an empty list when tryin g https://forgeapi.puppetlabs.com/v3/modules?query=worldline-prosa&limit=100 Any idea why it's empty ?
    j
    t
    s
    • 4
    • 8
  • m

    matt

    06/13/2025, 7:16 PM
    I'm trying to understand the right way to manage puppet hiera parameter merging, I've got a successful hiera model working, my usecase is the hashicorp consul module, it has a parameter that sets which services are defined, I have a base service that is common across all nodes and it looks like this,
    consul::services:
    node-exporter:
    address: "%{facts.fqdndns_ipaddress4}"
    checks:
    - http: <http://localhost:9100/metrics>
    interval: 5s
    port: 9100
    tags:
    - "job:node-exporter"
    - "function:telemetry"
    - "source:metrics"
    - "environment:production"
    - "hardware:%{facts.virtual}"
    - "arch:%{facts.os.architecture}"
    - "osname:%{facts.os.name}"
    - "osversion:%{facts.os.release.full}"
    meta:
    SLA: 1
    I want to understand how to append (I assume merging is the right way to this) additional service definitions to it depending on their position in the hiera structure, eg: on a mariadb profile the hiera would look like
    consul::services:
    node-exporter:
    address: "%{facts.fqdndns_ipaddress4}"
    checks:
    - http: <http://localhost:9100/metrics>
    interval: 5s
    port: 9100
    tags:
    - "job:node-exporter"
    - "function:telemetry"
    - "source:metrics"
    - "environment:production"
    - "hardware:%{facts.virtual}"
    - "arch:%{facts.os.architecture}"
    - "osname:%{facts.os.name}"
    - "osversion:%{facts.os.release.full}"
    meta:
    SLA: 1
    consul::services:
    maria-exporter:
    address: "%{facts.fqdndns_ipaddress4}"
    checks:
    - http: <http://localhost:9104/metrics>
    interval: 5s
    port: 9100
    tags:
    - "job:maria-exporter"
    - "function:telemetry"
    - "source:metrics"
    - "environment:production"
    - "hardware:%{facts.virtual}"
    - "arch:%{facts.os.architecture}"
    - "osname:%{facts.os.name}"
    - "osversion:%{facts.os.release.full}"
    meta:
    SLA: 3
  • l

    Lumiere

    06/13/2025, 7:19 PM
    ok, so you want to look for the lookup_options key for hiera https://www.puppet.com/docs/puppet/5.5/hiera_merging#concept-2997
  • l

    Lumiere

    06/13/2025, 7:19 PM
    I'd give you newer docs, but they redirect to the useless new system
    m
    • 2
    • 4
  • m

    matt

    06/13/2025, 7:19 PM
    yeah, the new redirect is annoying
  • m

    matt

    06/13/2025, 7:20 PM
    that's what I was trying to find, lookup_options, thank youi
    šŸ‘ 1
  • m

    matt

    06/13/2025, 7:20 PM
    you
  • m

    matt

    06/16/2025, 8:24 AM
    I'm still playing with the puppetlabs-mysql module, there is a parameter server::users which takes a hash for it's values, I worked out that mysql_user (which this hash is passed into) is a provider the module creates, that you can see in the provider/mysql_user directory of the module, however looking at all the docs, I couldn't see how to work out what parameters/values the mysql_user provider actually expects, the param itself is documented as
    Optional hash of users to create, which are passed to [mysql_user](#mysql_user).
  • m

    matt

    06/16/2025, 8:26 AM
    this lead me to a second problem which is just a knowledge gap I fall into over and over, where is the documentation on the correct formatting for hiera I consistently think I know how to set a hash parameter in hiera (I even reference examples I've used before) to find I've done it wrong, is there a solid documentation reference somewhere on the correct way to set different types of parameters in hiera ?
  • b

    bastelfreak

    06/16/2025, 8:31 AM
    that isn't really Hiera specific, but more a general yaml formatting question? Did you take a look at yamllint?
    āœ… 1
    m
    • 2
    • 1
  • m

    matt

    06/16/2025, 8:31 AM
    I did consider just looking at yaml formatting as a guide, but before I went into it I thought I'd ask here to make sure there wasn't anything specific I needed to know/consider
  • b

    bastelfreak

    06/16/2025, 8:32 AM
    there isn't
  • m

    matt

    06/16/2025, 8:32 AM
    that;s a good enough answer for me, I'm keen to just close this gap as I make the mistake too many times
  • b

    bastelfreak

    06/16/2025, 8:34 AM
    $mysql::users
    takes a hash. The key is the resource title, the value is a hash with parameters for https://github.com/puppetlabs/puppetlabs-mysql/blob/main/lib/puppet/type/mysql_user.rb
  • m

    matt

    06/16/2025, 8:41 AM
    I'd partially worked that out, that the key would be the username, and the parameters be the option and their value, but what parameters will it accept as there are many ways to add a user in maria, eg: via a grant, or the add user command etc I couldn't work out the method it was using to create the user as that will at least give a clue to what parameters it wants
  • b

    bastelfreak

    06/16/2025, 8:42 AM
    they are all listed in https://github.com/puppetlabs/puppetlabs-mysql/blob/main/lib/puppet/type/mysql_user.rb
  • m

    matt

    06/16/2025, 8:43 AM
    let me have another look then, I gave it some time at the weekend but a review now wouldn't hurt
  • m

    matt

    06/16/2025, 8:47 AM
    ahh, are each of the newproperty lines the parameters it's taking in
  • b

    bastelfreak

    06/16/2025, 8:47 AM
    yes
  • m

    matt

    06/16/2025, 8:47 AM
    ok. I see it now, thank you
  • m

    matt

    06/16/2025, 8:48 AM
    then it loops through, I see it
  • e

    erik

    06/16/2025, 3:32 PM
    wait a second. the PDK is no longer available through Homebrew, only as a licensed download?
  • b

    bastelfreak

    06/16/2025, 3:41 PM
    yes
  • e

    erik

    06/16/2025, 3:42 PM
    🤬
    šŸ’Æ 4
  • b

    bastelfreak

    06/16/2025, 3:49 PM
    Switch to vox pupuli tooling? :)
    šŸ’Æ 2
  • v

    vchepkov

    06/16/2025, 5:00 PM
    Have I missed a memo? How do you install vox tools on mac ?
1...424425426427428Latest