https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • 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 ?
  • b

    bastelfreak

    06/16/2025, 5:13 PM
    We don't have a CLI tool yet. We've the sig-devkit channel for that: https://voxpupuli.org/connect/. but our tooling doesn't require specific ruby versions. If you've any Ruby from the past 5 years installed, you can run out testing/releasing stuff locally, we've a CI public pipeline that other can reuse and we have modulesync to rollout boilerplate code to modules.
  • b

    bastelfreak

    06/16/2025, 5:13 PM
    and we also have voxbox, a container that bundles all the stuff for you, so you don't even need ruby locally: https://github.com/voxpupuli/container-voxbox
  • v

    vchepkov

    06/16/2025, 5:19 PM
    ah. I thought mac's puppet/bolt/pdk
  • b

    bastelfreak

    06/16/2025, 5:23 PM
    we've an openvox agent for mac, there will be a bolt package in the future
  • m

    matt

    06/17/2025, 7:44 AM
    have I read the puppetlabs-mysql grant resource correctly, in that there is no way to sent a grant at an instance level or globally to a user, because it depends on the 'table' parameter which must be $database.table format https://github.com/puppetlabs/puppetlabs-mysql/blob/main/lib/puppet/provider/mysql_grant/mysql.rb
    t
    y
    c
    • 4
    • 54
  • i

    Ian CB

    06/17/2025, 2:58 PM
    We have a process which uses exported resources to populate a ā€˜configuration’ file structure on a central host. The central host then processes the configuration files, via a script called by cron, it finds to configure resources in an application. • We have purge set on the owning directory … so if an exported resource goes away the config file is removed • We have notify on the file resource (which creates the config files) which touches a timestamp file for the script to use to check if it needs to do anything • We dont currently have anything that touches the timestamp if files are removed Can we put a notify on the file resource for the directory, and will that trigger if files are purged from the directory ?
    y
    l
    • 3
    • 2
  • v

    vchepkov

    06/17/2025, 6:20 PM
    You can add metaparameter
    audit => 'mtime'
    on the directory, that will make it to notify an exec or a service. I don't think directory itself is "notifiable"
  • v

    Vivek

    06/23/2025, 9:45 PM
    Hi there, I wanted to install some special packages from particular DNF repos (which are disabled by default) eg, wanted solution like:
    Copy code
    package { 'PACKAGE_NAME':
      ensure   => installed,
      install_options => ['--enablerepo=REPO_NAME'],
    }
    But this is not working. Anyone?
  • s

    simonhoenscheid

    06/24/2025, 5:16 AM
    @Vivek if this is a DNF module, have a look at this snippet: https://github.com/puppetlabs/puppetlabs-postgresql/blob/main/manifests/dnfmodule.pp
  • v

    vasunder K

    06/26/2025, 10:50 AM
    Hello Team, We recently upgraded our servers [Foreman + Smart Proxy servers] to 3.15. While we navigate to check the host configuration n/ the puppet metrics, here is the sample link: [https://puppetserver-foreman-npd.np.rcsvcs.aws.lllint.com/new/hosts/xxxxx#/Puppet/reports?page=1&per_page=20&search=] we keep seeing the following error message in Foreman UI: Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings. Could you please assist us what is this error about? in p in div in dd in DescriptionListDescription in div in DescriptionListGroup in dl in DescriptionList in div in CardBody in div in CardExpandableContent in div in Card in div in GridItem in u in T in div in GridItem in div in Grid in div in i in t in t in i in p in component in d in k in t in t in t in t in u in Unknown in j in t in t in c in d in a in main in div in Page in div in FlexItem in div in Flex in c in v in t in o in a in k in s in div in A in IntlProvider in I18nProviderWrapper(A) in d in StoreProvider(I18nProviderWrapper(A)) in DataProvider(StoreProvider(I18nProviderWrapper(A))) in Unknown
    b
    • 2
    • 2
  • j

    Jason St-Cyr

    06/26/2025, 5:50 PM
    Hey all, you might see the "Puppet Support Assistant" app get added to a few channels. It doesn't do anything yet, but we're trying something out with the Slack API! Hopefully it works and can be helpful!
  • b

    Bob Negri

    06/27/2025, 3:41 PM
    Could anyone retrigger this PR? It failed last time as Ubuntu 20.04 was no longer supported. define Enum on supported encryption types for postgresql_password by figless Ā· Pull Request #1611 Ā· puppetlabs/puppetlabs-postgresql
  • m

    matt

    06/28/2025, 9:15 AM
    I'm trying to map how the puppetlabs-postgresql module, takes the parameter $ipv4acls and actually outputs it into the config, I understand it's capturing a list of strings that are already in a format postgresql understands, but I can't see how that then gets output into the config file that postgresql parses, it's not in the templates and I can't see it being merged into another parameter that supersedes it any pointers of how this param actually get put into the configuration files
    b
    • 2
    • 6
  • j

    jms1

    06/30/2025, 7:22 PM
    question ... as part of an upcoming exercise, i'll be adding a parameter whose value ends up being used as a password. one of the clients involved has a set of corporate requirements for passwords (minimum length, at least one each upper/lower/digit/other, etc.) ... one of the requirements is, and i quote: "Secrets must be randomly generated for each customer or user" ... is there an existing way to test for "must be randomly generated"? i.e.
    bvy9873y,Raonf
    passes, but
    aaa111AAA!
    would not
    s
    b
    +2
    • 5
    • 13