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

    Allahshukur Ahmadzada

    07/05/2022, 11:17 AM
    honestly not sure If I did right or not but I created a profile for main project and included main project module there, then created a second profile called docker and added docker component module with some modifications like version and so. On role seperately added project profile and docker profile. Also used relationship arrows like Class['profile::docker'] ~> Class['profile::project']
  • b

    bastelfreak

    07/05/2022, 11:29 AM
    hey Puppet, can I get a review for https://github.com/puppetlabs/puppetlabs-satellite_pe_tools/pull/180 ?
  • b

    bastelfreak

    07/05/2022, 11:29 AM
    hey Puppet, can I get a review for https://github.com/puppetlabs/puppetlabs-satellite_pe_tools/pull/180 ?
  • d

    Dr Bunsen Honeydew

    07/05/2022, 4:45 PM
    meeting 🧑‍🏫Puppet Core Team is about to start up in #CFD8Z9A4T
  • r

    rismoney

    07/05/2022, 5:50 PM
    message has been deleted
  • r

    rismoney

    07/05/2022, 5:53 PM
    I can't recall the proper syntax for performing lookups within hiera
    mypackage1_version: 5.4.3.2
    ^ this key is elsewhere in hierarcy
    package_list:
    mypackage1:
    ensure: %lookup mypackage1_version%  #
    ^ how do i get it to lookup the key above
  • r

    rismoney

    07/05/2022, 5:54 PM
    maybe %{lookup(mypackage1_version} or something like that
  • g

    Greg Bristol

    07/05/2022, 5:58 PM
    "%{hiera('mypackage1_version')}"
    is how i usually do it
  • g

    Greg Bristol

    07/05/2022, 5:59 PM
    hiera()
    will change the value of the key to a string, if you want to keep the datatype of the value you have to use
    alias()
  • c

    CVQuesty

    07/05/2022, 6:00 PM
    depending on your version of Puppet,
    puppet lookup
    has replaced
    hiera()
  • r

    rismoney

    07/05/2022, 6:02 PM
    so it should be
    ensure: "%{lookup('mypackage1_version')}"
    as I am on 7
    💯 2
  • r

    rismoney

    07/05/2022, 6:02 PM
    ?
  • r

    rismoney

    07/05/2022, 6:05 PM
    cool. will test it out, thanks!
  • n

    natemccurdy

    07/05/2022, 6:15 PM
    That’s called a Hiera Interpolation Function, and its docs are here: https://puppet.com/docs/puppet/7/hiera_merging.html#interpolation_functions
  • n

    natemccurdy

    07/05/2022, 6:15 PM
    That’s called a Hiera Interpolation Function, and its docs are here: https://puppet.com/docs/puppet/7/hiera_merging.html#interpolation_functions
  • r

    rismoney

    07/05/2022, 6:19 PM
    appreciate that link. totally makes sense. i def have used it, but long time at a previous org. i know many of the functions were renamed away from "hiera"., so i figured i double check before wasting a lot of syntactical tries.
  • e

    EWill

    07/05/2022, 6:47 PM
    Hi guys, I have a puppet module managing the "/etc/resolv.conf" and for some reason the file is being created as windows format and the resolution only works when I convert the file using dos2unix .. Does someone knows how to tell puppet module to create the file as Unix format and not as windows ?
  • s

    Slackbot

    07/05/2022, 6:53 PM
    This message was deleted.
    e
    n
    • 3
    • 3
  • e

    EWill

    07/05/2022, 7:17 PM
    hi @natemccurdy the file is created using the
    file content
    as this was affecting the whole environment I decided to convert all the template files.. .I think the problem is with VSCODE As I am updating the code using vscode thought pull-request and so for the file is coming wrong from my pull-request .. so I converted the whole three of file inside this module and the problem looks fixed.
  • r

    romil surti

    07/06/2022, 3:47 PM
    👋 Hello, team!
  • s

    Slackbot

    07/06/2022, 4:07 PM
    This message was deleted.
    r
    g
    • 3
    • 2
  • r

    romil surti

    07/06/2022, 4:07 PM
    Team, we are facing issue with puppet_os_patching module where rhel is incorrectly indicating no packages to update, there was issue opened in Feb on the same, anyone know when they have fix for this. https://github.com/albatrossflavour/puppet_os_patching/issues/212
  • s

    Slackbot

    07/07/2022, 3:59 AM
    This message was deleted.
    c
    • 2
    • 1
  • y

    Yehuda Katz

    07/07/2022, 3:59 AM
    Can I get a review of https://github.com/puppetlabs/facter/pull/2501?
  • y

    Yehuda Katz

    07/07/2022, 4:00 AM
    Can I get a review/test run approval of https://github.com/puppetlabs/facter/pull/2501?
  • s

    Slackbot

    07/07/2022, 1:41 PM
    This message was deleted.
    b
    • 2
    • 1
  • s

    Slackbot

    07/07/2022, 3:26 PM
    This message was deleted.
    w
    c
    +2
    • 5
    • 14
  • b

    Brian Schonecker

    07/07/2022, 3:58 PM
    Yeah, cloud-init was something I considered but cloud-init isn't terribly useful in VMWare because it forces you to use the CDROM or floppy to mount an ISO on boot. I don't have the 169. network at my disposal like AWS/Google/Oracle cloud environments present.
  • s

    Slackbot

    07/07/2022, 5:01 PM
    This message was deleted.
    n
    v
    +2
    • 5
    • 108
  • v

    vchepkov

    07/07/2022, 5:03 PM
    And as I said, it's random, doesn't happen all the time
1...899091...428Latest