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

    Slackbot

    08/05/2022, 4:09 PM
    This message was deleted.
    a
    s
    • 3
    • 11
  • b

    BuzzSaw Code

    08/05/2022, 4:28 PM
    Does anyone know of a pre-existing module or custom fact that lists any virtualized hosts on a given physical machine ? For example, if a Windows system is hosting clients via Hyper-V or a Linux system is using KVM, getting a list of those clients ?
  • a

    Allahshukur Ahmadzada

    08/05/2022, 4:36 PM
    message has been deleted
  • s

    Slackbot

    08/05/2022, 4:39 PM
    This message was deleted.
    c
    r
    • 3
    • 4
  • c

    csharpsteen

    08/05/2022, 4:45 PM
    When it existed,
    configtimeout
    controlled how long the agent would wait for the server to compile a catalog --- which is different from controlling how long the agent is allowed to spend applying the catalog.
  • a

    Austin

    08/05/2022, 6:23 PM
    @Austin has left the channel
  • s

    Slackbot

    08/05/2022, 8:10 PM
    This message was deleted.
    n
    j
    +2
    • 5
    • 24
  • j

    jhoblitt

    08/05/2022, 8:19 PM
    I'm after the full path to the drive. E.g.
    /dev/disk/by-id/nvme-Samsung_SSD_983_DCT_1.92TB_S48BNG0MB01685F
  • j

    jhoblitt

    08/05/2022, 8:24 PM
    the core fact seems to be looking under `/sys`https://github.com/puppetlabs/facter/blob/main/lib/facter/facts/linux/disks.rb https://github.com/puppetlabs/facter/blob/main/lib/facter/resolvers/disks.rb and I don't think sysfs even has the "unique" device name. It does have a UUID though
  • k

    kenyon

    08/05/2022, 9:34 PM
    looks like in here: https://github.com/ansible/ansible/blob/04e892757941bf77198692bbe37041d7a8cbf999/lib/ansible/module_utils/facts/hardware/linux.py#L660
  • k

    kenyon

    08/05/2022, 9:40 PM
    yep, I see some sadface regex parsing https://github.com/ansible/ansible/blob/04e892757941bf77198692bbe37041d7a8cbf999/lib/ansible/module_utils/facts/hardware/linux.py#L455
  • j

    jhoblitt

    08/05/2022, 10:02 PM
    well, I have learned something new.
    L: 0
    means link priority: https://github.com/systemd/systemd/blob/a7b2aa658f35f4b9e91915eaa72afa648d0f9119/src/udev/udevadm-info.c#L239
  • o

    ody

    08/05/2022, 10:25 PM
    @ody has left the channel
  • s

    smortex

    08/06/2022, 2:02 AM
    The version in the title in good however 🙂
  • s

    smortex

    08/06/2022, 2:05 AM
    message has been deleted
  • s

    smortex

    08/06/2022, 2:05 AM
    message has been deleted
  • s

    Slackbot

    08/06/2022, 9:28 AM
    This message was deleted.
    c
    s
    • 3
    • 2
  • v

    vchepkov

    08/06/2022, 3:40 PM
    Unfortunately, there is no fully automated way that I know of. you can use
    puppetfile-updater
    gem to update Puppetfile to latest versions of the modules. Then use
    puppet/catalog_diff
    to evaluate the effect
  • b

    bastelfreak

    08/06/2022, 3:42 PM
    https://github.com/voxpupuli/ra10ke we have some rake tasks to update a Puppetfile, check for dependencies and deprecations
    âž• 2
  • b

    bastelfreak

    08/06/2022, 3:42 PM
    https://github.com/voxpupuli/ra10ke we have some rake tasks to update a Puppetfile, check for dependencies and deprecations
  • c

    Corporate Gadfly

    08/06/2022, 5:28 PM
    https://github.com/dylanratcliffe/onceover#plugins has tasks for inspecting and updating
    Puppetfile
    .
  • s

    smortex

    08/06/2022, 5:57 PM
    That, and onceover also has a feature for compiling catalogs for your roles and profile to see what breaks on updates 😉
  • s

    Slackbot

    08/08/2022, 10:16 AM
    This message was deleted.
    f
    • 2
    • 1
  • s

    Stefan Hristovski

    08/08/2022, 10:51 AM
    Hey guys, is anyone familiar with cpanel and their themes? I would like to ask a question regarding a code.
  • b

    Brian Schonecker

    08/08/2022, 2:08 PM
    Is there any way to do simple addition in a hiera yaml file? I need to start a web server with a port plus five other ports that are based on the base port:
    ---
    base_port: 443
    secure_port: "%{lookup('base_port')}+1000"
    admin_port: "%{lookup('base_port')}+1005"
    Yeah, I know it doesn't really make any difference than just specifying the variables but now my curiosity has gotten the better of me and I can't find a definitive answer.
  • b

    Brian Schonecker

    08/08/2022, 2:09 PM
    Is there any way to do simple addition in a hiera yaml file? I need to start a web server with a port plus five other ports that are based on the base port:
    ---
    base_port: 443
    secure_port: "%{lookup('base_port')}+1000"
    admin_port: "%{lookup('base_port')}+1005"
    Yeah, I know it doesn't really make any difference than just specifying the variables but now my curiosity has gotten the better of me and I can't find a definitive answer.
  • v

    vchepkov

    08/08/2022, 2:09 PM
    the answer is no, with standard backends
  • b

    Brian Schonecker

    08/08/2022, 2:09 PM
    Danke!
  • v

    vchepkov

    08/08/2022, 2:10 PM
    1443
    with good comment works as well 🙂
  • v

    vchepkov

    08/08/2022, 2:11 PM
    or, if this relationship is fixed, have just base_port in hiera and calculate rest in manifest
1...124125126...428Latest