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

    Lumiere

    05/17/2022, 8:49 PM
    then in a higher level of the hierarchy set mysql:serveroverride options again
  • s

    Slackbot

    05/17/2022, 8:49 PM
    This message was deleted.
    u
    l
    • 3
    • 8
  • s

    solucien

    05/17/2022, 8:56 PM
    Hello everyone ! It's been a while since I haven't touched Puppet code (since 2016) and so much has changed! Glad to see that the tooling has advanced, and the community is still vibrant. I recently started using PDK for a new side project I'm working on
  • s

    solucien

    05/17/2022, 8:56 PM
    Hello everyone ! It's been a while since I haven't touched Puppet code (since 2016) and so much has changed! Glad to see that the tooling has advanced, and the community is still vibrant. I recently started using PDK for a new side project I'm working on
  • s

    solucien

    05/17/2022, 8:58 PM
    and wanted to know whether there is an option to bundle all dependencies into a single tar.gz archive when calling pdk build. I remember there was librarian-puppet that did that before
  • s

    solucien

    05/17/2022, 8:59 PM
    but now since pdk is here, is there a command that would inspect the metadata.json and pull in all code from dependencies and including them in the archive generated by the
    pdk build
    command ?
  • s

    solucien

    05/17/2022, 9:00 PM
    an ideal workflow would be that I include all puppet code into the my-package-0.1.0.tar.gz which I then
    scp
    to the target machine
  • s

    solucien

    05/17/2022, 9:01 PM
    on the machine I would run
    puppet module install my-package-0.1.0.tar.gz
    which contains all code, including the roles and profiles
  • s

    solucien

    05/17/2022, 9:02 PM
    and then I would do
    puppet apply
    on a
    init.pp
    file within this module
  • s

    Slackbot

    05/17/2022, 9:03 PM
    This message was deleted.
    c
    • 2
    • 1
  • b

    bastelfreak

    05/17/2022, 9:04 PM
    you can use r10k to checkout all modules from a puppetfile and call tar as post command
  • s

    solucien

    05/17/2022, 9:07 PM
    so the output from the
    puppet install
    command is currently:
    Copy code
    lti@linfra:~$ puppet module install ~/code/puppet/lti-brotly_net-0.1.0.tar.gz
    Notice: Preparing to install into /home/lti/.puppet/etc/code/modules ...
    Notice: Downloading from <https://forgeapi.puppet.com> ...
    Notice: Installing -- do not interrupt ...
    /home/lti/.puppet/etc/code/modules
    └── lti-brotly_net (v0.1.0)
  • s

    solucien

    05/17/2022, 9:08 PM
    if i use your suggestion @bastelfreak would it create sub-folders under lti-brotly_net (v0.1.0) ? something like
    Copy code
    Notice: Installing -- do not interrupt ...
    /home/lti/.puppet/etc/code/modules
    └── lti-brotly_net (v0.1.0)
        └── puppet-mysql (12.0.2)
  • s

    solucien

    05/17/2022, 9:08 PM
    if i use your suggestion @bastelfreak would it create sub-folders under lti-brotly_net (v0.1.0) ?
  • s

    solucien

    05/17/2022, 9:08 PM
    if i use your suggestion @bastelfreak would it create sub-folders under lti-brotly_net (v0.1.0) ? something like
    Copy code
    Notice: Installing -- do not interrupt ...
    /home/lti/.puppet/etc/code/modules
    └── lti-brotly_net (v0.1.0)
  • s

    solucien

    05/17/2022, 9:09 PM
    if i use your suggestion @bastelfreak would it create sub-folders under lti-brotly_net (v0.1.0) ? something like
    Copy code
    Notice: Installing -- do not interrupt ...
    /home/lti/.puppet/etc/code/modules
    └── lti-brotly_net (v0.1.0)
        └── puppet-mysql (12.0.2)
  • s

    solucien

    05/17/2022, 9:11 PM
    Or would lti-brotly_net contain all the code, and
    puppet install
    would push a big lump of code into
    /home/lti/.puppet/etc/code/modules/lti-brotly_net
  • s

    solucien

    05/17/2022, 9:11 PM
    Or would lti-brotly_net contain all the code, and
    puppet install
    would push a big lump of code into
    /home/lti/.puppet/etc/code/modules/lti-brotly_net
  • c

    csharpsteen

    05/17/2022, 9:53 PM
    Might look into Bolt projects: https://puppet.com/docs/bolt/latest/projects.html Bolt can do that assembly of modules, and
    bolt apply module_name --target <ssh://node1>
    automates the
    tar
    +
    scp
    +
    puppet apply
    on one or more targets.
  • j

    Joshua Smeda

    05/18/2022, 8:56 AM
    Unfortunately, we have another issue (https://github.com/camptocamp/puppet-catalog-diff/issues/57). I suppose that since you’re not a maintainer (yet), that you can’t review and merge the PR?
  • b

    bastelfreak

    05/18/2022, 9:18 AM
    https://github.com/camptocamp/puppet-catalog-diff/pull/61 if you like you can test my PR that replaces the used http client. Should work without issues
  • j

    Joshua Smeda

    05/18/2022, 9:22 AM
    So we’ll probably fork this repo (until those PR’s that break our functionality gets merged) & we’ll pull this in as well and give it a test 🙂
  • s

    Slackbot

    05/18/2022, 1:12 PM
    This message was deleted.
    c
    b
    h
    • 4
    • 19
  • s

    Slackbot

    05/18/2022, 1:23 PM
    This message was deleted.
    b
    o
    c
    • 4
    • 4
  • c

    csharpsteen

    05/18/2022, 2:12 PM
    It’s gone, but most of the work I did was a selective
    git revert
    of the removal. However. Using the PuppetDB API and re-shaping the data is going to be the quickest and lowest-impact method for querying that data --- by far.
  • k

    krishna kant mishra

    05/18/2022, 3:59 PM
    Team, Is it mandatory to purge certificate from puppet master whenever we make any change inside csr_attribute file? Sorry to ask simple question.. I'm new to puppet
  • l

    Lumiere

    05/18/2022, 4:07 PM
    yes, you have to regenerate the certificate and resign it to use csr_attributes.yaml. that file isn't really meant to be something you change. if you want to get a dynamic variable to your puppet server from the agent you want to make a custom fact
    👏 1
  • s

    Slackbot

    05/18/2022, 4:07 PM
    This message was deleted.
    k
    l
    • 3
    • 14
  • k

    krishna kant mishra

    05/18/2022, 4:11 PM
    Thank you 🙏 🙂
  • l

    Les Shiner

    05/18/2022, 5:42 PM
    Can someone clear something up please. I'm just now researching hiera. But I'm unclear if it's what I need to be researching for my needs. I would like to send agents that check in with a specific name into a QA environment, or Prod, or Dev, etc. Do I do this through hiera?
1...454647...428Latest